chore: optimize startup performance (#6952)

This commit is contained in:
Konv Suu 2023-09-15 14:18:44 +08:00 committed by GitHub
parent 83d6c93765
commit 0f1ffc99cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 10 deletions

View File

@ -30,14 +30,14 @@
"locale" "locale"
], ],
"scripts": { "scripts": {
"collect-token-statistic": "ts-node --project tsconfig.node.json scripts/collect-token-statistic.js", "collect-token-statistic": "tsx scripts/collect-token-statistic.js",
"token-meta": "node scripts/generate-token-meta.js", "token-meta": "node scripts/generate-token-meta.js",
"predev": "npm run version & npm run collect-token-statistic & npm run token-meta && node node_modules/esbuild/install.js", "predev": "npm run version & npm run collect-token-statistic & npm run token-meta && node node_modules/esbuild/install.js",
"precompile": "npm run version & npm run collect-token-statistic & npm run token-meta", "precompile": "npm run version & npm run collect-token-statistic & npm run token-meta",
"pretest": "npm run version", "pretest": "npm run version",
"predist": "npm run version", "predist": "npm run version",
"presite": "npm run version & npm run routes & npm run collect-token-statistic & npm run token-meta", "presite": "npm run version & npm run routes & npm run collect-token-statistic & npm run token-meta",
"dev": "npm run predev && npm run routes && vite serve site", "dev": "npm run routes && vite serve site",
"fast-dev": "npm run routes && vite serve site", "fast-dev": "npm run routes && vite serve site",
"test": "cross-env NODE_ENV=test jest --config .jest.js", "test": "cross-env NODE_ENV=test jest --config .jest.js",
"compile": "node antd-tools/cli/run.js compile", "compile": "node antd-tools/cli/run.js compile",
@ -250,7 +250,7 @@
"tinycolor2": "^1.6.0", "tinycolor2": "^1.6.0",
"ts-jest": "^28.0.5", "ts-jest": "^28.0.5",
"ts-loader": "^9.1.0", "ts-loader": "^9.1.0",
"ts-node": "^10.8.2", "tsx": "^3.12.10",
"typedoc": "^0.23.25", "typedoc": "^0.23.25",
"typescript": "~4.9.3", "typescript": "~4.9.3",
"umi-request": "^1.3.5", "umi-request": "^1.3.5",

View File

@ -39,6 +39,7 @@ function main() {
app.bootstrap({ app.bootstrap({
// typedoc options here // typedoc options here
entryPoints: ['components/theme/interface/index.ts'], entryPoints: ['components/theme/interface/index.ts'],
skipErrorChecking: true,
}); });
const project = app.convert(); const project = app.convert();

View File

@ -1,7 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"types": ["node"]
}
}