tsconfig: Enable composite.

This allows TypeScript to use incremental compilation by default.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-06-09 11:08:44 -07:00 committed by Anders Kaseorg
parent f03c56d9da
commit 1a8d8411a7
4 changed files with 8 additions and 1 deletions

1
.gitignore vendored
View File

@ -27,6 +27,7 @@
## Byproducts of setting up and using the dev environment
*.pyc
*.tsbuildinfo
package-lock.json
/.vagrant

View File

@ -28,6 +28,9 @@
/* Language and Environment */
"target": "ESNext",
/* Projects */
"composite": true,
},
"exclude": [
// Type stubs are not part of the top-level project.

View File

@ -3,7 +3,7 @@
"version": "0.0.18",
"license": "Apache-2.0",
"scripts": {
"prepare": "rm -rf lib && tsc && cp src/*.flow lib",
"prepare": "tsc --build --clean && rm -rf lib && tsc && cp src/*.flow lib",
"version": "tools/npm-version",
"postversion": "tools/npm-postversion"
},

View File

@ -29,6 +29,9 @@
/* Language and Environment */
"target": "esnext",
/* Projects */
"composite": true,
},
"include": ["src"],
}