-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
118 lines (118 loc) · 3.24 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
{
"name": "bem-ts",
"version": "0.14.0",
"description": "BEM class names generator for TypeScript",
"author": "Masafumi Koba <[email protected]>",
"repository": "ybiquitous/bem-ts",
"keywords": [
"BEM",
"classname",
"utility",
"TypeScript"
],
"license": "MIT",
"type": "module",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"module": "./dist/index.js",
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"files": [
"dist/",
"!*test*"
],
"engines": {
"node": ">=16.0.0"
},
"publishConfig": {
"provenance": true
},
"scripts": {
"pretest": "npm run lint",
"test": "vitest",
"posttest": "npm-run-all --print-label --silent --parallel build build:*",
"test:watch": "npm --ignore-scripts test -- --watch",
"test:coverage": "npm --ignore-scripts test -- --coverage --watch=false",
"posttest:coverage": "npm run posttest",
"build": "tsc",
"build:cjs": "tsc --project tsconfig.cjs.json && mv dist/cjs/index.js dist/index.cjs && rm -rf dist/cjs/",
"lint:js": "eslint --cache --ext=js,jsx,cjs,mjs,ts,tsx .",
"lint:js:fix": "npm run lint:js -- --fix",
"lint:md": "remark . --frail",
"lint:md:fix": "remark . --output",
"lint:types": "tsc --noEmit",
"lint:types:watch": "npm run lint:types -- --watch",
"lint:styles": "npm run prettier -- --check",
"lint:styles:fix": "npm run prettier -- --write",
"lint:commit": "commitlint --from HEAD~10",
"lint": "npm-run-all --print-label --silent --parallel lint:*",
"format": "npm-run-all --print-label --silent --parallel lint:*:fix",
"prettier": "prettier --cache .",
"prerelease": "git switch main && git pull && npm ci && npm run clean && npm test && npm run clean",
"release": "standard-version",
"release:dry-run": "standard-version --dry-run",
"clean": "git clean -dx --force --exclude=node_modules --exclude=.husky",
"prepare": "husky",
"prepublishOnly": "npm run posttest"
},
"devDependencies": {
"@tsconfig/node16": "^16.1.3",
"@tsconfig/strictest": "^2.0.5",
"@types/node": "^22.10.1",
"@typescript-eslint/eslint-plugin": "^8.17.0",
"@vitest/coverage-v8": "^2.1.8",
"eslint": "^8.52.0",
"eslint-config-ybiquitous": "^21.1.0",
"remark-preset-ybiquitous": "^0.4.4",
"typescript": "^5.7.2",
"vitest": "^2.0.5",
"ybiq": "^17.4.0"
},
"lint-staged": {
"*.{js,jsx,cjs,mjs,ts,tsx}": "eslint --cache --fix",
"!(**/*.snap|.husky/**)": "prettier --cache --write",
"!(CHANGELOG).md": "remark --frail"
},
"standard-version": {
"sign": true,
"scripts": {
"postchangelog": "prettier --write CHANGELOG.md"
}
},
"remarkConfig": {
"plugins": [
"remark-preset-ybiquitous"
]
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"body-max-line-length": [
1,
"always",
300
],
"scope-enum": [
2,
"always",
[
"actions",
"deps",
"deps-dev",
"readme",
"demo",
"release",
"travis",
"sideci",
"coverage",
"security",
"lint"
]
]
}
}
}