mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-19 23:33:13 +09:00
Merge pull request #504 from Hornwitser/tsconfig-cleanup
TSConfig cleanup
This commit is contained in:
15 files changed
+113
-128
No files matched your search
+4
-2
@@ -2,7 +2,8 @@
|
|||||||
"name": "root",
|
"name": "root",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "mocha --check-leaks -R spec --recursive test \"plugins/*/test/**\"",
|
"build": "tsc --build",
|
||||||
|
"test": "pnpm run build && mocha --check-leaks -R spec --recursive test \"plugins/*/test/**\"",
|
||||||
"fast-test": "FAST_TEST=y pnpm test",
|
"fast-test": "FAST_TEST=y pnpm test",
|
||||||
"cover": "nyc pnpm test",
|
"cover": "nyc pnpm test",
|
||||||
"fast-cover": "FAST_TEST=y nyc pnpm test",
|
"fast-cover": "FAST_TEST=y nyc pnpm test",
|
||||||
@@ -36,6 +37,7 @@
|
|||||||
"mocha": "^10.2.0",
|
"mocha": "^10.2.0",
|
||||||
"nyc": "^15.1.0",
|
"nyc": "^15.1.0",
|
||||||
"phin": "^3.7.0",
|
"phin": "^3.7.0",
|
||||||
"typedoc": "^0.24.8"
|
"typedoc": "^0.24.8",
|
||||||
|
"typescript": "^5.1.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,17 +1,10 @@
|
|||||||
{
|
{
|
||||||
"include": ["controller.ts", "package.json", "src/**/*.ts"],
|
"extends": "../../tsconfig.node.json",
|
||||||
"compilerOptions": {
|
"references": [
|
||||||
"lib": ["es2023"],
|
{ "path": "../lib" },
|
||||||
"module": "commonjs",
|
],
|
||||||
"target": "es2022",
|
"include": ["controller.ts", "package.json", "src/**/*.ts"],
|
||||||
"rootDir": ".",
|
"compilerOptions": {
|
||||||
"outDir": "dist/controller",
|
"outDir": "dist/controller",
|
||||||
"composite": true,
|
},
|
||||||
"sourceMap": true,
|
|
||||||
"strict": true,
|
|
||||||
"alwaysStrict": true,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"skipLibCheck": true,
|
|
||||||
"resolveJsonModule": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,19 +1,10 @@
|
|||||||
{
|
{
|
||||||
"include": ["package.json", "ctl.ts", "src/**/*.ts"],
|
"extends": "../../tsconfig.node.json",
|
||||||
"compilerOptions": {
|
"references": [
|
||||||
"lib": ["es2023"],
|
{ "path": "../lib" },
|
||||||
"module": "commonjs",
|
],
|
||||||
"target": "es2022",
|
"include": ["package.json", "ctl.ts", "src/**/*.ts"],
|
||||||
"rootDir": ".",
|
"compilerOptions": {
|
||||||
"outDir": "dist",
|
"outDir": "dist",
|
||||||
"composite": true,
|
},
|
||||||
"sourceMap": true,
|
|
||||||
"strict": true,
|
|
||||||
"alwaysStrict": true,
|
|
||||||
"allowJs": true,
|
|
||||||
"checkJs": false,
|
|
||||||
"resolveJsonModule": true,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"skipLibCheck": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,19 +1,10 @@
|
|||||||
{
|
{
|
||||||
"include": ["host.ts", "package.json", "src/**/*.ts", "src/**/*.js"],
|
"extends": "../../tsconfig.node.json",
|
||||||
"compilerOptions": {
|
"references": [
|
||||||
"lib": ["es2023"],
|
{ "path": "../lib" },
|
||||||
"module": "commonjs",
|
],
|
||||||
"target": "es2022",
|
"include": ["host.ts", "package.json", "src/**/*.ts", "src/**/*.js"],
|
||||||
"rootDir": ".",
|
"compilerOptions": {
|
||||||
"outDir": "dist",
|
"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,11 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "../../tsconfig.node.json",
|
||||||
|
"references": [
|
||||||
|
{ "path": "../../packages/lib" },
|
||||||
|
],
|
||||||
"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,11 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "../../tsconfig.node.json",
|
||||||
|
"references": [
|
||||||
|
{ "path": "../../packages/lib" },
|
||||||
|
],
|
||||||
"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,11 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "../../tsconfig.node.json",
|
||||||
|
"references": [
|
||||||
|
{ "path": "../../packages/lib" },
|
||||||
|
],
|
||||||
"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,11 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "../../tsconfig.node.json",
|
||||||
|
"references": [
|
||||||
|
{ "path": "../../packages/lib" },
|
||||||
|
],
|
||||||
"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,11 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "../../tsconfig.node.json",
|
||||||
|
"references": [
|
||||||
|
{ "path": "../../packages/lib" },
|
||||||
|
],
|
||||||
"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,11 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "../../tsconfig.node.json",
|
||||||
|
"references": [
|
||||||
|
{ "path": "../../packages/lib" },
|
||||||
|
],
|
||||||
"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,15 @@
|
|||||||
|
{
|
||||||
|
"files": [],
|
||||||
|
"references": [
|
||||||
|
{ "path": "./packages/lib" },
|
||||||
|
{ "path": "./packages/controller" },
|
||||||
|
{ "path": "./packages/host" },
|
||||||
|
{ "path": "./packages/ctl" },
|
||||||
|
{ "path": "./plugins/global_chat" },
|
||||||
|
{ "path": "./plugins/inventory_sync" },
|
||||||
|
{ "path": "./plugins/player_auth" },
|
||||||
|
{ "path": "./plugins/research_sync" },
|
||||||
|
{ "path": "./plugins/statistics_exporter" },
|
||||||
|
{ "path": "./plugins/subspace_storage" },
|
||||||
|
],
|
||||||
|
}
|
||||||
@@ -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