Implemented configDir for outDir

This commit is contained in:
Cooldude2606 authored and Daniel committed 2024-08-16 07:00:08 +02:00
1 parent 02df956f6c
commit 08c522429b
36 files changed
+17 -71

No files matched your search

+1
View File
@@ -29,6 +29,7 @@ Many thanks to the following for contributing to this release:
- Fixed IPC errors reporting undefined when no stack trace was present [#624](https://github.com/clusterio/clusterio/pull/624). - Fixed IPC errors reporting undefined when no stack trace was present [#624](https://github.com/clusterio/clusterio/pull/624).
- Fixed loopback routing for instances reporting the wrong error message [#625](https://github.com/clusterio/clusterio/pull/625). - Fixed loopback routing for instances reporting the wrong error message [#625](https://github.com/clusterio/clusterio/pull/625).
- Bumped Typescript version to 5.5 and implemented `${configDir}` in base configs for "outDir" [#648](https://github.com/clusterio/clusterio/pull/648).
### Breaking Changes ### Breaking Changes
+3 -3
View File
@@ -36,8 +36,8 @@
"@clusterio/controller": "workspace:*", "@clusterio/controller": "workspace:*",
"@clusterio/ctl": "workspace:*", "@clusterio/ctl": "workspace:*",
"@clusterio/host": "workspace:*", "@clusterio/host": "workspace:*",
"@clusterio/web_ui": "workspace:*",
"@clusterio/lib": "workspace:*", "@clusterio/lib": "workspace:*",
"@clusterio/web_ui": "workspace:*",
"@swc/core": "^1.4.0", "@swc/core": "^1.4.0",
"@typescript-eslint/eslint-plugin": "^6.4.1", "@typescript-eslint/eslint-plugin": "^6.4.1",
"@typescript-eslint/parser": "^6.4.1", "@typescript-eslint/parser": "^6.4.1",
@@ -51,8 +51,8 @@
"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.26.3",
"typescript": "^5.1.6", "typescript": "^5.5.3",
"yargs": "^17.7.2" "yargs": "^17.7.2"
} }
} }
+1 -1
View File
@@ -51,7 +51,7 @@
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"react-router-dom": "^6.4.14", "react-router-dom": "^6.4.14",
"typescript": "^5.1.6", "typescript": "^5.5.3",
"webpack": "^5.88.2", "webpack": "^5.88.2",
"webpack-dev-middleware": "^6.1.1", "webpack-dev-middleware": "^6.1.1",
"webpack-merge": "^5.9.0" "webpack-merge": "^5.9.0"
@@ -7,6 +7,5 @@
"include": [ "web/**/*.tsx", "web/**/*.ts", "package.json" ], "include": [ "web/**/*.tsx", "web/**/*.ts", "package.json" ],
"compilerOptions": { "compilerOptions": {
"rootDir": "..", "rootDir": "..",
"outDir": "dist/browser",
} }
} }
-3
View File
@@ -4,7 +4,4 @@
{ "path": "../lib/tsconfig.node.json" }, { "path": "../lib/tsconfig.node.json" },
], ],
"include": ["index.ts", "controller.ts", "package.json", "src/**/*.ts"], "include": ["index.ts", "controller.ts", "package.json", "src/**/*.ts"],
"compilerOptions": {
"outDir": "dist/node",
},
} }
@@ -5,7 +5,4 @@
{ "path": "../../packages/web_ui/tsconfig.browser.json" }, { "path": "../../packages/web_ui/tsconfig.browser.json" },
], ],
"include": [ "web/**/*.tsx", "web/**/*.ts", "messages.ts", "package.json" ], "include": [ "web/**/*.tsx", "web/**/*.ts", "messages.ts", "package.json" ],
"compilerOptions": {
"outDir": "dist/browser",
}
} }
@@ -5,7 +5,4 @@
], ],
"include": ["./**/*.ts"], "include": ["./**/*.ts"],
"exclude": ["test/*", "./dist/*"], "exclude": ["test/*", "./dist/*"],
"compilerOptions": {
"outDir": "dist/node",
},
} }
+1 -1
View File
@@ -35,6 +35,6 @@
"@types/node": "^20.4.5", "@types/node": "^20.4.5",
"@types/set-blocking": "^2.0.0", "@types/set-blocking": "^2.0.0",
"@types/yargs": "^17.0.24", "@types/yargs": "^17.0.24",
"typescript": "^5.1.6" "typescript": "^5.5.3"
} }
} }
-3
View File
@@ -4,7 +4,4 @@
{ "path": "../lib/tsconfig.node.json" }, { "path": "../lib/tsconfig.node.json" },
], ],
"include": ["index.ts", "package.json", "ctl.ts", "src/**/*.ts"], "include": ["index.ts", "package.json", "ctl.ts", "src/**/*.ts"],
"compilerOptions": {
"outDir": "dist/node",
},
} }
+1 -1
View File
@@ -43,6 +43,6 @@
"@types/semver": "^7.5.0", "@types/semver": "^7.5.0",
"@types/set-blocking": "^2.0.0", "@types/set-blocking": "^2.0.0",
"@types/yargs": "^17.0.24", "@types/yargs": "^17.0.24",
"typescript": "^5.1.6" "typescript": "^5.5.3"
} }
} }
-3
View File
@@ -4,7 +4,4 @@
{ "path": "../lib/tsconfig.node.json" }, { "path": "../lib/tsconfig.node.json" },
], ],
"include": ["index.ts", "host.ts", "package.json", "src/**/*.ts", "src/**/*.js"], "include": ["index.ts", "host.ts", "package.json", "src/**/*.ts", "src/**/*.js"],
"compilerOptions": {
"outDir": "dist/node",
},
} }
+1 -1
View File
@@ -41,6 +41,6 @@
"@types/triple-beam": "^1.3.2", "@types/triple-beam": "^1.3.2",
"@types/ws": "^8.5.5", "@types/ws": "^8.5.5",
"@types/yargs": "^17.0.24", "@types/yargs": "^17.0.24",
"typescript": "^5.1.6" "typescript": "^5.5.3"
} }
} }
-1
View File
@@ -26,6 +26,5 @@
], ],
"compilerOptions": { "compilerOptions": {
"rootDir": ".", "rootDir": ".",
"outDir": "dist/browser",
} }
} }
-1
View File
@@ -2,7 +2,6 @@
"extends": "../../tsconfig.node.json", "extends": "../../tsconfig.node.json",
"include": ["index.ts", "browser.ts", "build_mod.js", "src/**/*.ts", "src/**/*.js"], "include": ["index.ts", "browser.ts", "build_mod.js", "src/**/*.ts", "src/**/*.js"],
"compilerOptions": { "compilerOptions": {
"outDir": "dist/node",
"allowJs": true, "allowJs": true,
}, },
} }
+1 -1
View File
@@ -40,7 +40,7 @@
"style-loader": "^3.3.3", "style-loader": "^3.3.3",
"swc-loader": "^0.2.6", "swc-loader": "^0.2.6",
"terser-webpack-plugin": "^5.3.9", "terser-webpack-plugin": "^5.3.9",
"typescript": "^5.1.6", "typescript": "^5.5.3",
"util": "^0.12.5", "util": "^0.12.5",
"webpack": "^5.88.2", "webpack": "^5.88.2",
"webpack-cli": "^5.1.4", "webpack-cli": "^5.1.4",
-3
View File
@@ -4,7 +4,4 @@
{ "path": "../lib/tsconfig.browser.json" }, { "path": "../lib/tsconfig.browser.json" },
], ],
"include": [ "src/**/*.tsx", "src/**/*.ts", "package.json", "global.d.ts" ], "include": [ "src/**/*.tsx", "src/**/*.ts", "package.json", "global.d.ts" ],
"compilerOptions": {
"outDir": "dist/browser",
}
} }
+1 -1
View File
@@ -25,7 +25,7 @@
"@clusterio/web_ui": "workspace:*", "@clusterio/web_ui": "workspace:*",
"@types/node": "^20.4.5", "@types/node": "^20.4.5",
"@types/react": "^18.2.21", "@types/react": "^18.2.21",
"typescript": "^5.1.6", "typescript": "^5.5.3",
"webpack": "^5.88.2", "webpack": "^5.88.2",
"webpack-cli": "^5.1.4", "webpack-cli": "^5.1.4",
"webpack-merge": "^5.9.0" "webpack-merge": "^5.9.0"
@@ -5,7 +5,4 @@
{ "path": "../../packages/web_ui/tsconfig.browser.json" }, { "path": "../../packages/web_ui/tsconfig.browser.json" },
], ],
"include": [ "web/**/*.tsx", "web/**/*.ts", "messages.ts", "package.json" ], "include": [ "web/**/*.tsx", "web/**/*.ts", "messages.ts", "package.json" ],
"compilerOptions": {
"outDir": "dist/browser",
}
} }
-3
View File
@@ -5,7 +5,4 @@
], ],
"include": ["./**/*.ts"], "include": ["./**/*.ts"],
"exclude": ["test/*", "./dist/*"], "exclude": ["test/*", "./dist/*"],
"compilerOptions": {
"outDir": "dist/node",
},
} }
+1 -1
View File
@@ -33,7 +33,7 @@
"antd": "^5.13.0", "antd": "^5.13.0",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"typescript": "^5.1.6", "typescript": "^5.5.3",
"webpack": "^5.88.2", "webpack": "^5.88.2",
"webpack-cli": "^5.1.4", "webpack-cli": "^5.1.4",
"webpack-merge": "^5.9.0" "webpack-merge": "^5.9.0"
@@ -5,7 +5,4 @@
{ "path": "../../packages/web_ui/tsconfig.browser.json" }, { "path": "../../packages/web_ui/tsconfig.browser.json" },
], ],
"include": [ "web/**/*.tsx", "web/**/*.ts", "messages.ts", "package.json" ], "include": [ "web/**/*.tsx", "web/**/*.ts", "messages.ts", "package.json" ],
"compilerOptions": {
"outDir": "dist/browser",
}
} }
@@ -5,7 +5,4 @@
], ],
"include": ["./**/*.ts"], "include": ["./**/*.ts"],
"exclude": ["test/*", "./dist/*"], "exclude": ["test/*", "./dist/*"],
"compilerOptions": {
"outDir": "dist/node",
},
} }
+1 -1
View File
@@ -36,7 +36,7 @@
"phin": "^3.7.0", "phin": "^3.7.0",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"typescript": "^5.1.6", "typescript": "^5.5.3",
"webpack": "^5.88.2", "webpack": "^5.88.2",
"webpack-cli": "^5.1.4", "webpack-cli": "^5.1.4",
"webpack-merge": "^5.9.0" "webpack-merge": "^5.9.0"
@@ -5,7 +5,4 @@
{ "path": "../../packages/web_ui/tsconfig.browser.json" }, { "path": "../../packages/web_ui/tsconfig.browser.json" },
], ],
"include": [ "web/**/*.tsx", "web/**/*.ts", "messages.ts", "package.json" ], "include": [ "web/**/*.tsx", "web/**/*.ts", "messages.ts", "package.json" ],
"compilerOptions": {
"outDir": "dist/browser",
}
} }
-3
View File
@@ -5,7 +5,4 @@
], ],
"include": ["./**/*.ts"], "include": ["./**/*.ts"],
"exclude": ["test/*", "./dist/*"], "exclude": ["test/*", "./dist/*"],
"compilerOptions": {
"outDir": "dist/node",
},
} }
+1 -1
View File
@@ -30,7 +30,7 @@
"@types/fs-extra": "^11.0.1", "@types/fs-extra": "^11.0.1",
"@types/node": "^20.4.5", "@types/node": "^20.4.5",
"@types/react": "^18.2.21", "@types/react": "^18.2.21",
"typescript": "^5.1.6", "typescript": "^5.5.3",
"webpack": "^5.88.2", "webpack": "^5.88.2",
"webpack-cli": "^5.1.4", "webpack-cli": "^5.1.4",
"webpack-merge": "^5.9.0" "webpack-merge": "^5.9.0"
@@ -5,7 +5,4 @@
{ "path": "../../packages/web_ui/tsconfig.browser.json" }, { "path": "../../packages/web_ui/tsconfig.browser.json" },
], ],
"include": [ "web/**/*.tsx", "web/**/*.ts", "messages.ts", "package.json" ], "include": [ "web/**/*.tsx", "web/**/*.ts", "messages.ts", "package.json" ],
"compilerOptions": {
"outDir": "dist/browser",
}
} }
-3
View File
@@ -5,7 +5,4 @@
], ],
"include": ["./**/*.ts"], "include": ["./**/*.ts"],
"exclude": ["test/*", "./dist/*"], "exclude": ["test/*", "./dist/*"],
"compilerOptions": {
"outDir": "dist/node",
},
} }
+1 -1
View File
@@ -25,7 +25,7 @@
"@clusterio/web_ui": "workspace:*", "@clusterio/web_ui": "workspace:*",
"@types/node": "^20.4.5", "@types/node": "^20.4.5",
"@types/react": "^18.2.21", "@types/react": "^18.2.21",
"typescript": "^5.1.6", "typescript": "^5.5.3",
"webpack": "^5.88.2", "webpack": "^5.88.2",
"webpack-cli": "^5.1.4", "webpack-cli": "^5.1.4",
"webpack-merge": "^5.9.0" "webpack-merge": "^5.9.0"
@@ -5,7 +5,4 @@
{ "path": "../../packages/web_ui/tsconfig.browser.json" }, { "path": "../../packages/web_ui/tsconfig.browser.json" },
], ],
"include": [ "web/**/*.tsx", "web/**/*.ts", "package.json" ], "include": [ "web/**/*.tsx", "web/**/*.ts", "package.json" ],
"compilerOptions": {
"outDir": "dist/browser",
}
} }
@@ -5,7 +5,4 @@
], ],
"include": ["./**/*.ts"], "include": ["./**/*.ts"],
"exclude": ["test/*", "./dist/*"], "exclude": ["test/*", "./dist/*"],
"compilerOptions": {
"outDir": "dist/node",
},
} }
+1 -1
View File
@@ -34,7 +34,7 @@
"antd": "^5.13.0", "antd": "^5.13.0",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"typescript": "^5.1.6", "typescript": "^5.5.3",
"webpack": "^5.88.2", "webpack": "^5.88.2",
"webpack-cli": "^5.1.4", "webpack-cli": "^5.1.4",
"webpack-merge": "^5.9.0" "webpack-merge": "^5.9.0"
@@ -5,7 +5,4 @@
{ "path": "../../packages/web_ui/tsconfig.browser.json" }, { "path": "../../packages/web_ui/tsconfig.browser.json" },
], ],
"include": [ "web/**/*.tsx", "web/**/*.ts", "messages.ts", "package.json" ], "include": [ "web/**/*.tsx", "web/**/*.ts", "messages.ts", "package.json" ],
"compilerOptions": {
"outDir": "dist/browser",
}
} }
@@ -5,7 +5,4 @@
], ],
"include": ["./**/*.ts"], "include": ["./**/*.ts"],
"exclude": ["test/*", "./dist/*"], "exclude": ["test/*", "./dist/*"],
"compilerOptions": {
"outDir": "dist/node",
},
} }
+1
View File
@@ -7,5 +7,6 @@
"target": "es2022", "target": "es2022",
"jsx": "react-jsx", "jsx": "react-jsx",
"noEmitOnError": true, "noEmitOnError": true,
"outDir": "${configDir}/dist/browser",
}, },
} }
+1
View File
@@ -6,5 +6,6 @@
"moduleResolution": "node16", "moduleResolution": "node16",
"target": "es2022", "target": "es2022",
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"outDir": "${configDir}/dist/node",
}, },
} }