@xylabs/threads 4.0.3 → 4.0.4

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.
Files changed (1) hide show
  1. package/package.json +10 -9
package/package.json CHANGED
@@ -1,26 +1,27 @@
1
1
  {
2
2
  "name": "@xylabs/threads",
3
- "version": "4.0.3",
3
+ "version": "4.0.4",
4
4
  "description": "Web workers & worker threads as simple as a function call",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/esm/index.js",
8
8
  "types": "dist/index.d.ts",
9
9
  "scripts": {
10
- "package-compile": "yarn build",
10
+ "package-compile": "echo COMPILE && yarn build-threads",
11
+ "package-build": "echo BUILD && yarn build-threads && echo BUILD_DONE",
11
12
  "clean": "rimraf ./dist ./dist-esm",
12
- "dev": "npm run clean && tsc -p tsconfig.json --watch",
13
- "build": "npm run clean && npm run build:cjs && npm run build:es",
13
+ "dev": "yarn clean && tsc -p tsconfig.json --watch",
14
+ "build-threads": "yarn clean && yarn build:cjs && yarn build:es",
14
15
  "build:cjs": "tsc -p tsconfig.json",
15
16
  "build:es": "tsc -p tsconfig-esm.json",
16
- "postbuild": "npm run bundle",
17
+ "postbuild": "yarn bundle",
17
18
  "bundle": "rollup -c -f umd --file=bundle/worker.js --name=threads --silent -- dist/esm/worker/bundle-entry.js",
18
- "test": "npm run test:library && npm run test:tooling && npm run test:puppeteer:basic && npm run test:puppeteer:webpack",
19
+ "test": "yarn test:library && yarn test:tooling && yarn test:puppeteer:basic && yarn test:puppeteer:webpack",
19
20
  "test:library": "cross-env TS_NODE_FILES=true ava ./test/**/*.test.ts",
20
21
  "test:tooling": "cross-env TS_NODE_FILES=true ava ./test-tooling/**/*.test.ts",
21
22
  "test:puppeteer:basic": "puppet-run --plugin=mocha --bundle=./test/workers/:workers/ --serve=./bundle/worker.js:/worker.js ./test/*.chromium*.ts",
22
23
  "test:puppeteer:webpack": "puppet-run --serve ./test-tooling/webpack/dist/app.web/0.worker.js --serve ./test-tooling/webpack/dist/app.web/1.worker.js --plugin=mocha ./test-tooling/webpack/webpack.chromium.mocha.ts",
23
- "prepare": "npm run build"
24
+ "prepare": "yarn build-threads"
24
25
  },
25
26
  "exports": {
26
27
  ".": {
@@ -98,7 +99,7 @@
98
99
  "@types/execa": "^2.0.0",
99
100
  "@types/node": "^22.5.0",
100
101
  "@types/webpack": "^5.28.5",
101
- "@xylabs/ts-scripts-yarn3": "^4.0.0",
102
+ "@xylabs/ts-scripts-yarn3": "^4.0.7",
102
103
  "ava": "^6.1.3",
103
104
  "chai": "^5.1.1",
104
105
  "cross-env": "^7.0.3",
@@ -107,7 +108,7 @@
107
108
  "puppet-run": "^0.11.4",
108
109
  "puppet-run-plugin-mocha": "^0.1.1",
109
110
  "raw-loader": "^4.0.2",
110
- "rimraf": "^5",
111
+ "rimraf": "^5.0.10",
111
112
  "rollup": "^4.21.0",
112
113
  "threads-plugin": "^1.4.0",
113
114
  "tiny-worker": "^2.3.0",