Move tsconfig.json to tsconfig.node.json

Distinguish the Node.js build in the same way the browser build is with
the .node suffix to the tsconfig files it uses.  This means
tsconfig.node outputs to dist/node and tsconfig.browser outputs to
dist/browser.
This commit is contained in:
Hornwitser committed 2024-02-08 03:20:26 +01:00
1 parent 8c4d2db192
commit e4f90b3480
13 files changed
+39 -39

No files matched your search

@@ -1,7 +1,7 @@
{ {
"extends": "../../tsconfig.node.json", "extends": "../../tsconfig.node.json",
"references": [ "references": [
{ "path": "../lib" }, { "path": "../lib/tsconfig.node.json" },
], ],
"include": ["index.ts", "controller.ts", "package.json", "src/**/*.ts"], "include": ["index.ts", "controller.ts", "package.json", "src/**/*.ts"],
"compilerOptions": { "compilerOptions": {
@@ -1,7 +1,7 @@
{ {
"extends": "../../tsconfig.node.json", "extends": "../../tsconfig.node.json",
"references": [ "references": [
{ "path": "../lib" }, { "path": "../lib/tsconfig.node.json" },
], ],
"include": ["index.ts", "package.json", "ctl.ts", "src/**/*.ts"], "include": ["index.ts", "package.json", "ctl.ts", "src/**/*.ts"],
"compilerOptions": { "compilerOptions": {
@@ -1,7 +1,7 @@
{ {
"extends": "../../tsconfig.node.json", "extends": "../../tsconfig.node.json",
"references": [ "references": [
{ "path": "../lib" }, { "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": { "compilerOptions": {
File renamed without changes.
@@ -1,7 +1,7 @@
{ {
"extends": "../../tsconfig.node.json", "extends": "../../tsconfig.node.json",
"references": [ "references": [
{ "path": "../../packages/lib" }, { "path": "../../packages/lib/tsconfig.node.json" },
], ],
"include": ["./**/*.ts"], "include": ["./**/*.ts"],
"exclude": ["test/*", "./dist/*"], "exclude": ["test/*", "./dist/*"],
@@ -1,7 +1,7 @@
{ {
"extends": "../../tsconfig.node.json", "extends": "../../tsconfig.node.json",
"references": [ "references": [
{ "path": "../../packages/lib" }, { "path": "../../packages/lib/tsconfig.node.json" },
], ],
"include": ["./**/*.ts"], "include": ["./**/*.ts"],
"exclude": ["test/*", "./dist/*"], "exclude": ["test/*", "./dist/*"],
@@ -1,7 +1,7 @@
{ {
"extends": "../../tsconfig.node.json", "extends": "../../tsconfig.node.json",
"references": [ "references": [
{ "path": "../../packages/lib" }, { "path": "../../packages/lib/tsconfig.node.json" },
], ],
"include": ["./**/*.ts"], "include": ["./**/*.ts"],
"exclude": ["test/*", "./dist/*"], "exclude": ["test/*", "./dist/*"],
@@ -1,7 +1,7 @@
{ {
"extends": "../../tsconfig.node.json", "extends": "../../tsconfig.node.json",
"references": [ "references": [
{ "path": "../../packages/lib" }, { "path": "../../packages/lib/tsconfig.node.json" },
], ],
"include": ["./**/*.ts"], "include": ["./**/*.ts"],
"exclude": ["test/*", "./dist/*"], "exclude": ["test/*", "./dist/*"],
-11
View File
@@ -1,11 +0,0 @@
{
"extends": "../../tsconfig.node.json",
"references": [
{ "path": "../../packages/lib" },
],
"include": ["./**/*.ts"],
"exclude": ["test/*", "./dist/*"],
"compilerOptions": {
"outDir": "dist/node",
},
}
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.node.json",
"references": [
{ "path": "../../packages/lib/tsconfig.node.json" },
],
"include": ["./**/*.ts"],
"exclude": ["test/*", "./dist/*"],
"compilerOptions": {
"outDir": "dist/node",
},
}
-11
View File
@@ -1,11 +0,0 @@
{
"extends": "../../tsconfig.node.json",
"references": [
{ "path": "../../packages/lib" },
],
"include": ["./**/*.ts"],
"exclude": ["test/*", "./dist/*"],
"compilerOptions": {
"outDir": "dist/node",
},
}
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.node.json",
"references": [
{ "path": "../../packages/lib/tsconfig.node.json" },
],
"include": ["./**/*.ts"],
"exclude": ["test/*", "./dist/*"],
"compilerOptions": {
"outDir": "dist/node",
},
}
+10 -10
View File
@@ -1,16 +1,16 @@
{ {
"files": [], "files": [],
"references": [ "references": [
{ "path": "./packages/lib" }, { "path": "./packages/lib/tsconfig.node.json" },
{ "path": "./packages/controller" }, { "path": "./packages/controller/tsconfig.node.json" },
{ "path": "./packages/host" }, { "path": "./packages/host/tsconfig.node.json" },
{ "path": "./packages/ctl" }, { "path": "./packages/ctl/tsconfig.node.json" },
{ "path": "./plugins/global_chat" }, { "path": "./plugins/global_chat/tsconfig.node.json" },
{ "path": "./plugins/inventory_sync" }, { "path": "./plugins/inventory_sync/tsconfig.node.json" },
{ "path": "./plugins/player_auth" }, { "path": "./plugins/player_auth/tsconfig.node.json" },
{ "path": "./plugins/research_sync" }, { "path": "./plugins/research_sync/tsconfig.node.json" },
{ "path": "./plugins/statistics_exporter" }, { "path": "./plugins/statistics_exporter/tsconfig.node.json" },
{ "path": "./plugins/subspace_storage" }, { "path": "./plugins/subspace_storage/tsconfig.node.json" },
{ "path": "./packages/lib/tsconfig.browser.json" }, { "path": "./packages/lib/tsconfig.browser.json" },
{ "path": "./packages/controller/tsconfig.browser.json" }, { "path": "./packages/controller/tsconfig.browser.json" },
{ "path": "./packages/web_ui/tsconfig.browser.json" }, { "path": "./packages/web_ui/tsconfig.browser.json" },