mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 15:04:52 +09:00
Clean up the configuration for compiling TypeScript for the Web interface to us its own tsconfig.web.json config files and reference the TypeScript source files directly in the configuration and imports instead of files compiled to dist. To properly support recompliation with TypeScript's projects feature each package's tsconfig.web.json file is set to output the build to dist/web_build which is then ignored in .npmignore. Webpack is still used to create the proper build in dist/web, so this is mainly to make TypeScipt's compiler happy but it also allows the root tsconfig.json file to include the web interface code, meaning running the build script now also checks the typing of the web interface. Final part of #491.
13 lines
270 B
JSON
13 lines
270 B
JSON
{
|
|
"extends": "../../tsconfig.web.json",
|
|
"references": [
|
|
{ "path": "../lib" },
|
|
{ "path": "../web_ui/tsconfig.web.json" },
|
|
],
|
|
"include": [ "web/**/*.tsx", "web/**/*.ts", "package.json" ],
|
|
"compilerOptions": {
|
|
"rootDir": "..",
|
|
"outDir": "dist/web_build",
|
|
}
|
|
}
|