Use composite build

Make TypeScript build faster for a multi package setup by allowing the
compiller to quickly determine if a package is already built.
This commit is contained in:
Hornwitser committed 2023-08-12 02:31:17 +02:00
1 parent a66e930997
commit 954bc9b314
2 files changed
+2 -3

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@
"repository": "https://github.com/clusterio/clusterio", "repository": "https://github.com/clusterio/clusterio",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"prepare": "tsc && pnpm run compile_validator", "prepare": "tsc --build && pnpm run compile_validator",
"compile_validator": "node scripts/compile_validator.js" "compile_validator": "node scripts/compile_validator.js"
}, },
"main": "dist/index.js", "main": "dist/index.js",
+1 -2
View File
@@ -6,12 +6,11 @@
"target": "es2022", "target": "es2022",
"rootDir": ".", "rootDir": ".",
"outDir": "dist", "outDir": "dist",
"composite": false, "composite": true,
"strict": true, "strict": true,
"alwaysStrict": true, "alwaysStrict": true,
"allowJs": true, "allowJs": true,
"checkJs": false, "checkJs": false,
"noEmitOnError": false,
"esModuleInterop": true, "esModuleInterop": true,
"skipLibCheck": true "skipLibCheck": true
} }