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
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",
}
}