Use separate build for web version of lib

Use a separate ES Module based build for the web version of the lib
package.  This fixes the rebuild on watched files changing in lib
failing with a TS1479 error.
This commit is contained in:
Hornwitser committed 2024-01-11 01:21:35 +01:00
1 parent 2bdb03b0a9
commit a67a4a41da
12 files changed
+40 -10

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.web.json",
"references": [
{ "path": "../lib" },
{ "path": "../lib/tsconfig.web.json" },
{ "path": "../web_ui/tsconfig.web.json" },
],
"include": [ "web/**/*.tsx", "web/**/*.ts", "package.json" ],
+1
View File
@@ -0,0 +1 @@
dist/web/build
-2
View File
@@ -77,5 +77,3 @@ export default class ExponentialBackoff {
return Math.random() * this.base * 2 ** this._exp * 1000;
}
}
module.exports = ExponentialBackoff;
+30
View File
@@ -0,0 +1,30 @@
{
"extends": "../../tsconfig.web.json",
"include": [
"browser.ts",
"package.json",
"./src/api.ts",
"./src/config/*.ts",
"./src/data/*.ts",
"./src/errors.ts",
"./src/factorio/exchange_string.ts",
"./src/helpers.ts",
"./src/hash.ts",
"./src/ini.ts",
"./src/link/*.ts",
"./src/logging.ts",
"./src/permissions.ts",
"./src/prometheus.ts",
"./src/plugin.ts",
"./src/schema.ts",
"./src/subscriptions.ts",
"./src/zip_ops.ts",
"./src/ExponentialBackoff.ts",
"./src/RateLimiter.ts",
"./src/TypedEventEmitter.ts",
],
"compilerOptions": {
"rootDir": ".",
"outDir": "dist/web/build",
}
}
+1 -1
View File
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.web.json",
"references": [
{ "path": "../lib" },
{ "path": "../lib/tsconfig.web.json" },
],
"include": [ "src/**/*.tsx", "src/**/*.ts", "package.json", "global.d.ts" ],
"compilerOptions": {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.web.json",
"references": [
{ "path": "../../packages/lib" },
{ "path": "../../packages/lib/tsconfig.web.json" },
{ "path": "../../packages/web_ui/tsconfig.web.json" },
],
"include": [ "web/**/*.tsx", "web/**/*.ts", "messages.ts", "package.json" ],
+1 -1
View File
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.web.json",
"references": [
{ "path": "../../packages/lib" },
{ "path": "../../packages/lib/tsconfig.web.json" },
{ "path": "../../packages/web_ui/tsconfig.web.json" },
],
"include": [ "web/**/*.tsx", "web/**/*.ts", "messages.ts", "package.json" ],
+1 -1
View File
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.web.json",
"references": [
{ "path": "../../packages/lib" },
{ "path": "../../packages/lib/tsconfig.web.json" },
{ "path": "../../packages/web_ui/tsconfig.web.json" },
],
"include": [ "web/**/*.tsx", "web/**/*.ts", "messages.ts", "package.json" ],
+1 -1
View File
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.web.json",
"references": [
{ "path": "../../packages/lib" },
{ "path": "../../packages/lib/tsconfig.web.json" },
{ "path": "../../packages/web_ui/tsconfig.web.json" },
],
"include": [ "web/**/*.tsx", "web/**/*.ts", "messages.ts", "package.json" ],
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.web.json",
"references": [
{ "path": "../../packages/lib" },
{ "path": "../../packages/lib/tsconfig.web.json" },
{ "path": "../../packages/web_ui/tsconfig.web.json" },
],
"include": [ "web/**/*.tsx", "web/**/*.ts", "package.json" ],
+1 -1
View File
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.web.json",
"references": [
{ "path": "../../packages/lib" },
{ "path": "../../packages/lib/tsconfig.web.json" },
{ "path": "../../packages/web_ui/tsconfig.web.json" },
],
"include": [ "web/**/*.tsx", "web/**/*.ts", "messages.ts", "package.json" ],
+1
View File
@@ -2,6 +2,7 @@
"files": [],
"references": [
{ "path": "./packages/lib" },
{ "path": "./packages/lib/tsconfig.web.json" },
{ "path": "./packages/controller" },
{ "path": "./packages/controller/tsconfig.web.json" },
{ "path": "./packages/host" },