forked from andywer/threads.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
143 lines (143 loc) · 4.2 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
{
"name": "threads",
"version": "1.6.3",
"description": "Web workers & worker threads as simple as a function call",
"license": "MIT",
"main": "dist/index.js",
"module": "dist-esm/index.js",
"scripts": {
"prebuild": "rimraf dist/ dist-esm/",
"build": "run-p build:cjs build:es",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig-esm.json",
"postbuild": "run-s bundle",
"bundle": "rollup -c -f umd --file=bundle/worker.js --name=threads --silent -- dist-esm/worker/bundle-entry.js",
"test": "run-s test:ava test:puppeteer:basic test:puppeteer:webpack",
"test:ava": "cross-env TS_NODE_FILES=true ava",
"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/webpack/dist/app.web/0.worker.js --serve ./test/webpack/dist/app.web/1.worker.js --plugin=mocha ./test/webpack/webpack.chromium.mocha.ts",
"posttest": "tslint --project .",
"prepare": "run-s 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.1.1",
"is-observable": "^1.1.0",
"observable-fns": "^0.5.1"
},
"devDependencies": {
"@types/chai": "^4.1.7",
"@types/debug": "^4.1.4",
"@types/execa": "^0.9.0",
"@types/mocha": "^5.2.6",
"@types/node": "^11.13.8",
"@types/webpack": "^4.4.32",
"ava": "^2.4.0",
"chai": "^4.2.0",
"cross-env": "^5.2.0",
"execa": "^3.4.0",
"mocha": "^5.2.0",
"npm-run-all": "^4.1.5",
"puppet-run": "^0.11.1",
"puppet-run-plugin-mocha": "^0.10.0-alpha",
"raw-loader": "^4.0.1",
"rimraf": "^2.6.3",
"rollup": "^1.16.2",
"rollup-plugin-commonjs": "^10.0.1",
"rollup-plugin-node-resolve": "^5.1.0",
"threads-plugin": "^1.2.0",
"tiny-worker": "^2.2.0",
"ts-loader": "^6.0.1",
"ts-node": "^8.10.2",
"tslint": "^5.16.0",
"tslint-config-prettier": "^1.18.0",
"typescript": "^3.9.5",
"wavy": "^1.0.4",
"webpack": "^4.32.2",
"worker-plugin": "^3.1.0"
},
"optionalDependencies": {
"tiny-worker": ">= 2"
},
"ava": {
"compileEnhancements": false,
"extensions": [
"ts"
],
"files": [
"./test/**/*.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"
]
}