forked from andywer/threads.js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
144 lines (144 loc) · 4.45 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{
"name": "threads",
"version": "1.7.0",
"description": "Web workers & worker threads as simple as a function call",
"license": "MIT",
"main": "dist/index.js",
"module": "dist-esm/index.js",
"scripts": {
"clean": "rimraf dist/ dist-esm/",
"dev": "npm run clean && tsc -p tsconfig.json --watch",
"build": "npm run clean && npm run build:cjs && npm run build:es",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig-esm.json",
"postbuild": "npm run bundle",
"bundle": "rollup -c -f umd --file=bundle/worker.js --name=threads --silent -- dist-esm/worker/bundle-entry.js",
"test": "npm run test:library && npm run test:tooling && npm run test:puppeteer:basic && npm run test:puppeteer:webpack",
"test:library": "cross-env TS_NODE_FILES=true ava ./test/**/*.test.ts",
"test:tooling": "cross-env TS_NODE_FILES=true ava ./test-tooling/**/*.test.ts",
"test:puppeteer:basic": "puppet-run --plugin=mocha --bundle=./test/workers/:workers/ --serve=./bundle/worker.js:/worker.js ./test/*.chromium*.ts",
"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",
"posttest": "tslint --project .",
"prepare": "npm run build"
},
"exports": {
".": {
"require": "./dist/index.js",
"default": "./index.mjs"
},
"./observable": {
"require": "./observable.js",
"default": "./observable.mjs"
},
"./register": {
"require": "./register.js",
"default": "./register.mjs"
},
"./worker": {
"require": "./worker.js",
"default": "./worker.mjs"
}
},
"sideEffects": [
"./dist*/master/register.js",
"./dist*/worker/index.js",
"./register.*js",
"./worker.*js"
],
"repository": {
"type": "git",
"url": "git+https://github.com/andywer/threads.js.git"
},
"author": "Andy Wermke (https://github.com/andywer)",
"bugs": {
"url": "https://github.com/andywer/threads.js/issues"
},
"funding": "https://github.com/andywer/threads.js?sponsor=1",
"homepage": "https://threads.js.org",
"keywords": [
"thread",
"worker",
"pool",
"spawn",
"isomorphic",
"parallel",
"observable",
"worker_threads"
],
"dependencies": {
"callsites": "^3.1.0",
"debug": "^4.2.0",
"is-observable": "^2.1.0",
"observable-fns": "^0.6.1"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^16.0.0",
"@rollup/plugin-node-resolve": "^10.0.0",
"@types/chai": "^4.2.14",
"@types/debug": "^4.1.5",
"@types/execa": "^2.0.0",
"@types/mocha": "^8.0.3",
"@types/node": "^14.14.5",
"@types/webpack": "^4.41.23",
"ava": "^3.13.0",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"execa": "^4.0.3",
"mocha": "^8.2.0",
"puppet-run": "^0.11.3",
"puppet-run-plugin-mocha": "^0.10.0-alpha",
"raw-loader": "^4.0.2",
"rimraf": "^3.0.2",
"rollup": "^2.32.1",
"threads-plugin": "^1.3.3",
"tiny-worker": "^2.2.0",
"ts-loader": "^8.0.7",
"ts-node": "^9.0.0",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0",
"typescript": "^4.2.3",
"wavy": "^1.0.4",
"webpack": "^4.44.2",
"worker-plugin": "^5.0.0"
},
"optionalDependencies": {
"tiny-worker": ">= 2"
},
"ava": {
"extensions": [
"ts"
],
"files": [
"./test/**/*.test.ts",
"./test-tooling/**/*.test.ts"
],
"require": [
"ts-node/register"
],
"serial": true
},
"browser": {
"callsites": false,
"tiny-worker": false,
"ts-node": false,
"ts-node/register": false,
"worker_threads": false,
"./dist/master/implementation.js": "./dist/master/implementation.browser.js",
"./dist/master/implementation.node.js": false,
"./dist/worker/implementation.js": "./dist/worker/implementation.browser.js",
"./dist/worker/implementation.tiny-worker.js": false,
"./dist/worker/implementation.worker_threads.js": false,
"./dist-esm/master/implementation.js": "./dist-esm/master/implementation.browser.js",
"./dist-esm/master/implementation.node.js": false,
"./dist-esm/worker/implementation.js": "./dist-esm/worker/implementation.browser.js",
"./dist-esm/worker/implementation.tiny-worker.js": false,
"./dist-esm/worker/implementation.worker_threads.js": false
},
"files": [
"dist/**",
"dist-esm/**",
"*.js",
"*.mjs",
"*.ts"
]
}