Skip to content

Commit 0f1ffc9

Browse files
authored
chore: optimize startup performance (#6952)
1 parent 83d6c93 commit 0f1ffc9

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

Diff for: package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@
3030
"locale"
3131
],
3232
"scripts": {
33-
"collect-token-statistic": "ts-node --project tsconfig.node.json scripts/collect-token-statistic.js",
33+
"collect-token-statistic": "tsx scripts/collect-token-statistic.js",
3434
"token-meta": "node scripts/generate-token-meta.js",
3535
"predev": "npm run version & npm run collect-token-statistic & npm run token-meta && node node_modules/esbuild/install.js",
3636
"precompile": "npm run version & npm run collect-token-statistic & npm run token-meta",
3737
"pretest": "npm run version",
3838
"predist": "npm run version",
3939
"presite": "npm run version & npm run routes & npm run collect-token-statistic & npm run token-meta",
40-
"dev": "npm run predev && npm run routes && vite serve site",
40+
"dev": "npm run routes && vite serve site",
4141
"fast-dev": "npm run routes && vite serve site",
4242
"test": "cross-env NODE_ENV=test jest --config .jest.js",
4343
"compile": "node antd-tools/cli/run.js compile",
@@ -250,7 +250,7 @@
250250
"tinycolor2": "^1.6.0",
251251
"ts-jest": "^28.0.5",
252252
"ts-loader": "^9.1.0",
253-
"ts-node": "^10.8.2",
253+
"tsx": "^3.12.10",
254254
"typedoc": "^0.23.25",
255255
"typescript": "~4.9.3",
256256
"umi-request": "^1.3.5",

Diff for: scripts/generate-token-meta.js

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ function main() {
3939
app.bootstrap({
4040
// typedoc options here
4141
entryPoints: ['components/theme/interface/index.ts'],
42+
skipErrorChecking: true,
4243
});
4344

4445
const project = app.convert();

Diff for: tsconfig.node.json

-7
This file was deleted.

0 commit comments

Comments
 (0)