mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 08:23:12 +09:00
Organise TSConfig files using inheritance
Removed duplicated TSConfig options by using a shared base config which all plugins inherit shared settings from.
This commit is contained in:
1 parent
1afbbe04e1
commit
c3d78a8cb8
13 files changed
+67
-126
No files matched your search
@@ -1,17 +1,7 @@
|
|||||||
{
|
{
|
||||||
"include": ["controller.ts", "package.json", "src/**/*.ts"],
|
"extends": "../../tsconfig.node.json",
|
||||||
"compilerOptions": {
|
"include": ["controller.ts", "package.json", "src/**/*.ts"],
|
||||||
"lib": ["es2023"],
|
"compilerOptions": {
|
||||||
"module": "commonjs",
|
"outDir": "dist/controller",
|
||||||
"target": "es2022",
|
},
|
||||||
"rootDir": ".",
|
|
||||||
"outDir": "dist/controller",
|
|
||||||
"composite": true,
|
|
||||||
"sourceMap": true,
|
|
||||||
"strict": true,
|
|
||||||
"alwaysStrict": true,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"skipLibCheck": true,
|
|
||||||
"resolveJsonModule": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,19 +1,7 @@
|
|||||||
{
|
{
|
||||||
"include": ["package.json", "ctl.ts", "src/**/*.ts"],
|
"extends": "../../tsconfig.node.json",
|
||||||
"compilerOptions": {
|
"include": ["package.json", "ctl.ts", "src/**/*.ts"],
|
||||||
"lib": ["es2023"],
|
"compilerOptions": {
|
||||||
"module": "commonjs",
|
"outDir": "dist",
|
||||||
"target": "es2022",
|
},
|
||||||
"rootDir": ".",
|
|
||||||
"outDir": "dist",
|
|
||||||
"composite": true,
|
|
||||||
"sourceMap": true,
|
|
||||||
"strict": true,
|
|
||||||
"alwaysStrict": true,
|
|
||||||
"allowJs": true,
|
|
||||||
"checkJs": false,
|
|
||||||
"resolveJsonModule": true,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"skipLibCheck": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,19 +1,7 @@
|
|||||||
{
|
{
|
||||||
"include": ["host.ts", "package.json", "src/**/*.ts", "src/**/*.js"],
|
"extends": "../../tsconfig.node.json",
|
||||||
"compilerOptions": {
|
"include": ["host.ts", "package.json", "src/**/*.ts", "src/**/*.js"],
|
||||||
"lib": ["es2023"],
|
"compilerOptions": {
|
||||||
"module": "commonjs",
|
"outDir": "dist",
|
||||||
"target": "es2022",
|
},
|
||||||
"rootDir": ".",
|
|
||||||
"outDir": "dist",
|
|
||||||
"composite": true,
|
|
||||||
"sourceMap": true,
|
|
||||||
"strict": true,
|
|
||||||
"alwaysStrict": true,
|
|
||||||
"allowJs": true,
|
|
||||||
"checkJs": false,
|
|
||||||
"resolveJsonModule": true,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"skipLibCheck": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Vendored
+10
@@ -0,0 +1,10 @@
|
|||||||
|
export interface BuildArgs {
|
||||||
|
factorioVersion?: string;
|
||||||
|
dependencies?: Record<string, string>;
|
||||||
|
clean?: boolean;
|
||||||
|
pack?: boolean;
|
||||||
|
build?: boolean;
|
||||||
|
outputDir: string;
|
||||||
|
sourceDir: string;
|
||||||
|
};
|
||||||
|
export function build(args: BuildArgs): Promise<void>;
|
||||||
@@ -1,18 +1,8 @@
|
|||||||
{
|
{
|
||||||
"include": ["index.ts", "build_mod.js", "src/**/*.ts", "src/**/*.js"],
|
"extends": "../../tsconfig.node.json",
|
||||||
"compilerOptions": {
|
"include": ["index.ts", "build_mod.js", "src/**/*.ts", "src/**/*.js"],
|
||||||
"lib": ["es2023"],
|
"compilerOptions": {
|
||||||
"module": "commonjs",
|
"outDir": "dist",
|
||||||
"target": "es2022",
|
"allowJs": true,
|
||||||
"rootDir": ".",
|
},
|
||||||
"outDir": "dist",
|
|
||||||
"composite": true,
|
|
||||||
"sourceMap": true,
|
|
||||||
"strict": true,
|
|
||||||
"alwaysStrict": true,
|
|
||||||
"allowJs": true,
|
|
||||||
"checkJs": false,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"skipLibCheck": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,16 +1,8 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "../../tsconfig.node.json",
|
||||||
"include": ["./**/*.ts"],
|
"include": ["./**/*.ts"],
|
||||||
"exclude": ["test/*", "./dist/*"],
|
"exclude": ["test/*", "./dist/*"],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"lib": ["es2023"],
|
|
||||||
"module": "commonjs",
|
|
||||||
"target": "es2022",
|
|
||||||
"rootDir": ".",
|
|
||||||
"outDir": "dist/plugin",
|
"outDir": "dist/plugin",
|
||||||
"sourceMap": true,
|
},
|
||||||
"strict": true,
|
|
||||||
"alwaysStrict": true,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"skipLibCheck": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,17 +1,8 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "../../tsconfig.node.json",
|
||||||
"include": ["./**/*.ts"],
|
"include": ["./**/*.ts"],
|
||||||
"exclude": ["test/*", "./dist/*"],
|
"exclude": ["test/*", "./dist/*"],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"lib": ["es2023"],
|
|
||||||
"module": "commonjs",
|
|
||||||
"target": "es2022",
|
|
||||||
"rootDir": ".",
|
|
||||||
"outDir": "dist/plugin",
|
"outDir": "dist/plugin",
|
||||||
"sourceMap": true,
|
},
|
||||||
"strict": true,
|
|
||||||
"alwaysStrict": true,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"resolveJsonModule": true,
|
|
||||||
"skipLibCheck": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,16 +1,8 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "../../tsconfig.node.json",
|
||||||
"include": ["./**/*.ts"],
|
"include": ["./**/*.ts"],
|
||||||
"exclude": ["test/*", "./dist/*"],
|
"exclude": ["test/*", "./dist/*"],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"lib": ["es2023"],
|
|
||||||
"module": "commonjs",
|
|
||||||
"target": "es2022",
|
|
||||||
"rootDir": ".",
|
|
||||||
"outDir": "dist/plugin",
|
"outDir": "dist/plugin",
|
||||||
"sourceMap": true,
|
},
|
||||||
"strict": true,
|
|
||||||
"alwaysStrict": true,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"skipLibCheck": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,16 +1,8 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "../../tsconfig.node.json",
|
||||||
"include": ["./**/*.ts"],
|
"include": ["./**/*.ts"],
|
||||||
"exclude": ["test/*", "./dist/*"],
|
"exclude": ["test/*", "./dist/*"],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"lib": ["es2023"],
|
|
||||||
"module": "commonjs",
|
|
||||||
"target": "es2022",
|
|
||||||
"rootDir": ".",
|
|
||||||
"outDir": "dist/plugin",
|
"outDir": "dist/plugin",
|
||||||
"sourceMap": true,
|
},
|
||||||
"strict": true,
|
|
||||||
"alwaysStrict": true,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"skipLibCheck": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,16 +1,8 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "../../tsconfig.node.json",
|
||||||
"include": ["./**/*.ts"],
|
"include": ["./**/*.ts"],
|
||||||
"exclude": ["test/*", "./dist/*"],
|
"exclude": ["test/*", "./dist/*"],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"lib": ["es2023"],
|
|
||||||
"module": "commonjs",
|
|
||||||
"target": "es2022",
|
|
||||||
"rootDir": ".",
|
|
||||||
"outDir": "dist/plugin",
|
"outDir": "dist/plugin",
|
||||||
"sourceMap": true,
|
},
|
||||||
"strict": true,
|
|
||||||
"alwaysStrict": true,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"skipLibCheck": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,16 +1,8 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "../../tsconfig.node.json",
|
||||||
"include": ["./**/*.ts"],
|
"include": ["./**/*.ts"],
|
||||||
"exclude": ["test/*", "./dist/*"],
|
"exclude": ["test/*", "./dist/*"],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"lib": ["es2023"],
|
|
||||||
"module": "commonjs",
|
|
||||||
"target": "es2022",
|
|
||||||
"rootDir": ".",
|
|
||||||
"outDir": "dist/plugin",
|
"outDir": "dist/plugin",
|
||||||
"sourceMap": true,
|
},
|
||||||
"strict": true,
|
|
||||||
"alwaysStrict": true,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"skipLibCheck": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"composite": true,
|
||||||
|
"declaration": true,
|
||||||
|
"declarationMap": true,
|
||||||
|
"incremental": true,
|
||||||
|
"sourceMap": true,
|
||||||
|
"strict": true,
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"extends": "./tsconfig.base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"lib": ["es2023"],
|
||||||
|
"module": "node16",
|
||||||
|
"moduleResolution": "node16",
|
||||||
|
"target": "es2022",
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"alwaysStrict": true,
|
||||||
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
},
|
||||||
|
}
|
||||||
Reference in new issue
Block a user