|
85 | 85 | ], |
86 | 86 | "scripts": { |
87 | 87 | "install": "node ./script/install.js", |
88 | | - "prepare": "pnpm run build.js", |
89 | 88 | "clean": "shx rm -rf ./build ./prebuilds && run-p clean.lib clean.temp", |
90 | 89 | "clean.lib": "shx rm -rf ./lib/", |
91 | 90 | "clean.release": "shx rm -rf ./build/Release", |
|
99 | 98 | "build": "run-p build.js build.native", |
100 | 99 | "build.debug": "run-s build.js build.native.debug", |
101 | 100 | "test": "run-s clean.temp build && mocha", |
| 101 | + "test.smoke": "bash ./script/smoke-test.bash", |
102 | 102 | "test.skip_gc_tests": "run-s clean.temp build.debug && cross-env SKIP_GC_TESTS=true mocha", |
103 | 103 | "test.electron.main": "run-s clean.temp build && electron-mocha", |
104 | 104 | "format": "run-s format.prettier format.clang-format", |
105 | | - "format.prettier": "prettier --write .", |
| 105 | + "format.prettier": "prettier -l --cache --cache-location ./.cache/prettier --write .", |
106 | 106 | "format.clang-format": "clang-format -i -style=file ./src/*.cc ./src/*.h ./src/util/*.h", |
107 | 107 | "test.electron.renderer": "run-s build && electron-mocha --renderer", |
108 | 108 | "lint-test.eslint": "eslint ./**/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/", |
109 | 109 | "lint.eslint": "pnpm run lint-test.eslint --fix", |
| 110 | + "lint.tsc": "tsc --noEmit -p ./src/tsconfig.json", |
| 111 | + "lint.tsc-test": "tsc --noEmit -p ./test/tsconfig.json", |
110 | 112 | "lint.clang-tidy": "git ls-files --exclude-standard | grep -E '\\.(cpp|hpp|c|cc|cxx|hxx|h|ixx)$' | xargs -n 1 -P $(nproc) clang-tidy", |
111 | | - "lint": "run-p format lint.eslint format", |
| 113 | + "lint": "run-p lint.tsc-test lint.tsc lint.eslint format", |
112 | 114 | "lint-test": "run-s lint-test.eslint", |
113 | 115 | "bench": "node --expose-gc test/bench", |
114 | | - "prepublishOnly": "pnpm run build.js", |
| 116 | + "prepare": "pnpm run build.js", |
115 | 117 | "bump": "pnpx npm-check-updates -u -x typescript,eslint,chai && pnpx typesync && pnpm update" |
116 | 118 | }, |
117 | 119 | "cmake-ts": { |
|
0 commit comments