Skip to content

Commit 842393c

Browse files
committed
Check types during npm test, run in parallel
This change should have no user impact. It: - Checks types when running tests. - Runs all test scripts, such as linting and type checking, in parallel.
1 parent 77fbe3a commit 842393c

File tree

3 files changed

+275
-12
lines changed

3 files changed

+275
-12
lines changed

package-lock.json

+268-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"globals": "^15.9.0",
1515
"jest": "^29.7.0",
1616
"node-zopfli": "^2.1.4",
17+
"npm-run-all2": "^7.0.2",
1718
"prettier": "^3.3.3",
1819
"rollup": "^4.22.5",
1920
"rollup-plugin-dts": "^6.1.1",
@@ -24,14 +25,14 @@
2425
"typescript-eslint": "^8.7.0"
2526
},
2627
"scripts": {
27-
"pretest": "npm run lint",
28-
"lint": "npm run lint:eslint && npm run lint:prettier",
29-
"lint:eslint": "eslint --cache .",
30-
"lint:prettier": "prettier --check .",
28+
"test:eslint": "eslint --cache .",
29+
"test:jest": "jest",
30+
"test:prettier": "prettier --check .",
31+
"test:typescript": "tsc --noEmit",
3132
"format": "prettier --write .",
3233
"clean": "node ./bin/clean.mjs",
3334
"build": "tsx ./build/build-package.ts",
34-
"test": "jest"
35+
"test": "run-p --aggregate-output test:*"
3536
},
3637
"type": "module",
3738
"engines": {

0 commit comments

Comments
 (0)