-
-
Notifications
You must be signed in to change notification settings - Fork 63
/
package.json
145 lines (145 loc) · 4.11 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
"name": "tslog",
"version": "4.9.3",
"description": "Extensible TypeScript Logger for Node.js and Browser.",
"author": "Eugene <[email protected]> (https://fullstack.build)",
"license": "MIT",
"funding": "https://github.com/fullstack-build/tslog?sponsor=1",
"homepage": "https://tslog.js.org",
"repository": {
"type": "git",
"url": "git+https://github.com/fullstack-build/tslog.git"
},
"bugs": {
"url": "https://github.com/fullstack-build/tslog/issues"
},
"type": "module",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts",
"browser": {
"tslog": "./dist/browser/index.js",
"./dist/esm/runtime/nodejs/index.js": "./dist/esm/runtime/browser/index.js",
"./dist/cjs/runtime/nodejs/index.js": "./dist/cjs/runtime/browser/index.js",
"./src/runtime/nodejs/index.js": "./src/runtime/browser/index.js",
"util": false
},
"react-native": "./dist/cjs/index.js",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js",
"default": "./dist/esm/index.js"
}
},
"scripts": {
"prepare": "husky install",
"build": "npm run build-types && npm run build-server && npm run build-browser",
"build-browser": "node build.js",
"build-types": "tsc -b tsconfig.types.json",
"build-server": "tsc -b tsconfig.esm.json tsconfig.cjs.json && cp ./src/package-cjs.json ./dist/cjs/package.json",
"build-example": "tsc -b tsconfig.example.json",
"dev-ts": "nodemon examples/nodejs/index2.ts",
"dev-ts-old-example": "nodemon examples/nodejs/index.ts",
"lint": "eslint --ext .js,.ts .",
"format": "prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\"",
"test": "JEST_PUPPETEER_CONFIG=jest-puppeteer.config.cjs jest",
"test-puppeteer-serve": "npm run build-browser && node tests/Browser/server/index.cjs -p 4444",
"coverage": "JEST_PUPPETEER_CONFIG=jest-puppeteer.config.cjs jest --coverage",
"docsify-init": "docsify init ./docs",
"docsify-serve": "cd docs && docsify serve",
"pre-publish": "npm run build",
"release": "np --any-branch"
},
"engines": {
"node": ">=16"
},
"jest": {
"verbose": true,
"preset": "./jest-preset",
"resolver": "ts-jest-resolver",
"testTimeout": 100000,
"testEnvironment": "node",
"collectCoverage": true,
"clearMocks": true,
"testMatch": [
"**/tests/**/*.test.ts",
"**/tests/**/*.test.js"
],
"coveragePathIgnorePatterns": [
"<rootDir>/node-modules/",
"<rootDir>/tests/",
"<rootDir>/src/runtime/browser/"
]
},
"np": {
"yarn": false,
"contents": "."
},
"publishConfig": {
"access": "public"
},
"nodemonConfig": {
"watch": [
"./**/*.ts"
],
"exec": "node --experimental-specifier-resolution=node --enable-source-maps --no-warnings --loader ts-node/esm"
},
"devDependencies": {
"@jest/types": "^28.1.3",
"@types/expect-puppeteer": "^5.0.1",
"@types/jest-environment-puppeteer": "^5.0.2",
"@types/node": "^17.0.29",
"@types/puppeteer": "^5.4.6",
"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
"docsify": "^4.11.4",
"esbuild": "^0.15.15",
"eslint": "^8.23.0",
"eslint-config-prettier": "^8.5.0",
"husky": "^8.0.1",
"jest": "^28.1.3",
"jest-puppeteer": "^10.0.1",
"nodemon": "^2.0.19",
"np": "^7.6.2",
"prettier": "^2.7.1",
"puppeteer": "^21.0.1",
"ts-jest": "^28.0.8",
"ts-jest-resolver": "^2.0.0",
"ts-node": "^10.9.1",
"typescript": "^5.1.6"
},
"sideEffects": false,
"keywords": [
"logger",
"typescript",
"log level",
"json",
"stacktrace",
"Error.stack",
"call location",
"debug",
"pretty",
"log",
"log4j",
"log4js",
"log4ts",
"print",
"logging",
"stack",
"trace",
"pretty print",
"prettify",
"format",
"human",
"callsites",
"callsite",
"show error",
"handling exceptions",
"pretty log",
"pretty json",
"pretty-error",
"sourcemap"
]
}