wirejs-web-worker 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -86,7 +86,7 @@ In this example, we pass a function to the worker (the `tick` callback). An adap
|
|
|
86
86
|
|
|
87
87
|
### `my-worker/package.json`
|
|
88
88
|
|
|
89
|
-
To make this work, the worker sub-package must built using the `wirejs-web-worker` build script, and the sub-package exports must be explicitly set:
|
|
89
|
+
To make this work, the worker sub-package must be built using the `wirejs-web-worker` build script, and the sub-package exports must be explicitly set:
|
|
90
90
|
|
|
91
91
|
```json
|
|
92
92
|
{
|
|
@@ -137,7 +137,7 @@ An example top-level `package.json` using vanilla workspaces:
|
|
|
137
137
|
}
|
|
138
138
|
```
|
|
139
139
|
|
|
140
|
-
In this example, `build` and `prebuild` are run across all workspaces. `src` is treated as a sub-package that contains its own `build` steps. `start` runs all workspace `start` scripts in parallel. All of this
|
|
140
|
+
In this example, `build` and `prebuild` are run across all workspaces. `src` is treated as a sub-package that contains its own `build` steps. `start` runs all workspace `start` scripts in parallel. All of this ensures the web worker is built and ready when the `src` code needs it.
|
|
141
141
|
|
|
142
142
|
Your `package.json` will probably look different, especially if you're using a build management tool that builds in a dependency-aware manner.
|
|
143
143
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wirejs-web-worker",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc"
|
|
14
14
|
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"esbuild": "^0.25.4"
|
|
17
|
+
},
|
|
15
18
|
"devDependencies": {
|
|
16
19
|
"typescript": "*"
|
|
17
20
|
},
|