-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpackage.json
109 lines (109 loc) · 2.63 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
{
"name": "loglevelnext",
"version": "6.0.0",
"description": "A modern logging library for Node.js and modern browsers that provides log level mapping to the console",
"license": "MPL-2.0",
"repository": "shellscape/loglevelnext",
"author": "Andrew Powell <[email protected]>",
"homepage": "https://github.com/shellscape/loglevelnext",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"engines": {
"node": ">= 18"
},
"scripts": {
"build": "tsup src/index.ts --format esm,cjs --dts",
"ci:coverage": "nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov",
"commitlint": "commitlint",
"commitmsg": "commitlint -e $GIT_PARAMS",
"lint": "pnpm lint:docs && pnpm lint:json && pnpm lint:package && pnpm lint:js",
"lint-staged": "lint-staged",
"lint:docs": "prettier --write .github/**/*.md **/README.md",
"lint:js": "eslint --fix --cache src test",
"lint:json": "prettier --write tsconfig.*.json",
"lint:package": "prettier --write **/package.json --plugin=prettier-plugin-package",
"prebuild": "tsc --project tsconfig.json",
"prepublishOnly": "pnpm build",
"security": "pnpm audit --audit-level high",
"test": "FORCE_COLOR=3 ava"
},
"files": [
"dist",
"README.md"
],
"keywords": [
"browser",
"console",
"debug",
"error",
"level",
"levels",
"log",
"logger",
"logging",
"loglevel",
"persist",
"persistent",
"plugins",
"prefix",
"trace",
"warn"
],
"devDependencies": {
"@commitlint/cli": "17.8.0",
"@commitlint/config-conventional": "17.8.0",
"@types/node": "^20.8.6",
"@types/sinon": "^10.0.2",
"ava": "^5.3.1",
"chalk": "^4.0.0",
"eslint-config-shellscape": "^6.0.1",
"husky": "^8.0.3",
"lint-staged": "15.0.1",
"nyc": "^15.0.1",
"pre-commit": "^1.2.2",
"sinon": "11.1.1",
"ts-node": "^10.0.0",
"tsup": "^7.2.0",
"typescript": "^5.2.2"
},
"types": "./dist/index.d.ts",
"ava": {
"extensions": [
"ts"
],
"require": [
"ts-node/register"
],
"files": [
"test/*.ts"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,js}": [
"eslint --fix"
],
"*.{json,md,yml,yaml}": [
"prettier --write"
],
"*package.json": [
"prettier --write --plugin=prettier-plugin-package"
]
}
}