Skip to content

Commit ae313bf

Browse files
committedNov 9, 2023
Refactor package.json
1 parent 16bf9dc commit ae313bf

File tree

1 file changed

+20
-22
lines changed

1 file changed

+20
-22
lines changed
 

‎package.json

+20-22
Original file line numberDiff line numberDiff line change
@@ -136,28 +136,28 @@
136136
"xo": "^0.56.0"
137137
},
138138
"scripts": {
139-
"prepack": "npm run build && npm run format",
140-
"build-packages": "node script/build-presets && node script/build-rules",
141-
"build-monorepo": "tsc --build --clean && tsc --build && type-coverage",
142-
"build": "npm run build-packages && npm run build-monorepo",
143-
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
139+
"generate": "node --conditions development script/build-presets.js && node --conditions development script/build-rules.js",
140+
"build": "tsc --build --clean && tsc --build && type-coverage",
141+
"format": "remark . --frail --output --quiet && prettier . --log-level warn --write && xo --fix",
142+
"test": "npm run build && npm run generate && npm run format && npm run test-coverage",
144143
"test-api": "node --conditions development test.js",
145-
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api",
146-
"test": "npm run build && npm run format && npm run test-coverage"
144+
"test-coverage": "c8 --100 --check-coverage --reporter lcov npm run test-api"
147145
},
148146
"prettier": {
149-
"tabWidth": 2,
150-
"useTabs": false,
151-
"singleQuote": true,
152147
"bracketSpacing": false,
148+
"singleQuote": true,
153149
"semi": false,
154-
"trailingComma": "none"
150+
"tabWidth": 2,
151+
"trailingComma": "none",
152+
"useTabs": false
153+
},
154+
"typeCoverage": {
155+
"atLeast": 100,
156+
"detail": true,
157+
"ignoreCatch": true,
158+
"strict": true
155159
},
156160
"xo": {
157-
"prettier": true,
158-
"rules": {
159-
"unicorn/prefer-string-replace-all": "off"
160-
},
161161
"overrides": [
162162
{
163163
"files": [
@@ -169,12 +169,10 @@
169169
"no-await-in-loop": "off"
170170
}
171171
}
172-
]
173-
},
174-
"typeCoverage": {
175-
"atLeast": 100,
176-
"detail": true,
177-
"strict": true,
178-
"ignoreCatch": true
172+
],
173+
"prettier": true,
174+
"rules": {
175+
"unicorn/prefer-string-replace-all": "off"
176+
}
179177
}
180178
}

0 commit comments

Comments
 (0)
Please sign in to comment.