mirror of
https://github.com/cockpit-project/cockpit.git
synced 2026-11-03 21:49:50 -09:00
37 lines
970 B
JSON
37 lines
970 B
JSON
/*
|
|
* Config for `tsc` and `tsserver`, currently only used for typechecking.
|
|
|
|
* Our main build is via `esbuild` which can handle `.ts`, but doesn't do any
|
|
* checking on its own. To typecheck, run `tsc`.
|
|
*
|
|
* Extended JSON — comments and trailing commas are good here.
|
|
*/
|
|
|
|
{
|
|
"compilerOptions": {
|
|
"allowJs": true,
|
|
"checkJs": true,
|
|
"baseUrl": "./pkg/lib",
|
|
"esModuleInterop": true,
|
|
"exactOptionalPropertyTypes": true,
|
|
"incremental": true,
|
|
"jsx": "react",
|
|
"lib": [
|
|
"dom",
|
|
"es2021"
|
|
],
|
|
"moduleResolution": "node",
|
|
"noEmit": true, // we only use `tsc` for type checking
|
|
"strict": true,
|
|
"target": "es2021",
|
|
},
|
|
"include": [
|
|
"pkg/**/*"
|
|
],
|
|
"exclude": [
|
|
// these are part of the build system, not the app
|
|
"pkg/lib/esbuild-*.js",
|
|
"pkg/lib/cockpit-*-plugin.js",
|
|
"pkg/lib/*2po.js"
|
|
],
|
|
}
|