@xylabs/threads 4.0.3 → 4.0.5

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 +11 -11
package/package.json CHANGED
@@ -1,26 +1,27 @@
1
1
  {
2
2
  "name": "@xylabs/threads",
3
- "version": "4.0.3",
3
+ "version": "4.0.5",
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 && echo COMPILE_DONE",
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
  ".": {
@@ -84,7 +85,6 @@
84
85
  "worker_threads"
85
86
  ],
86
87
  "dependencies": {
87
- "@babel/types": "^7.25.4",
88
88
  "callsites-3-1-0": "npm:callsites@3.1.0",
89
89
  "debug": "^4.3.6",
90
90
  "is-observable-2-1-0": "npm:is-observable@2.1.0",
@@ -93,12 +93,12 @@
93
93
  "devDependencies": {
94
94
  "@rollup/plugin-commonjs": "^26.0.1",
95
95
  "@rollup/plugin-node-resolve": "^15.2.3",
96
- "@types/chai": "^4.3.17",
96
+ "@types/chai": "^4.3.18",
97
97
  "@types/debug": "^4.1.12",
98
98
  "@types/execa": "^2.0.0",
99
99
  "@types/node": "^22.5.0",
100
100
  "@types/webpack": "^5.28.5",
101
- "@xylabs/ts-scripts-yarn3": "^4.0.0",
101
+ "@xylabs/ts-scripts-yarn3": "^4.0.7",
102
102
  "ava": "^6.1.3",
103
103
  "chai": "^5.1.1",
104
104
  "cross-env": "^7.0.3",
@@ -107,7 +107,7 @@
107
107
  "puppet-run": "^0.11.4",
108
108
  "puppet-run-plugin-mocha": "^0.1.1",
109
109
  "raw-loader": "^4.0.2",
110
- "rimraf": "^5",
110
+ "rimraf": "^5.0.10",
111
111
  "rollup": "^4.21.0",
112
112
  "threads-plugin": "^1.4.0",
113
113
  "tiny-worker": "^2.3.0",