UNPKG

3.29 kBJSONView Raw
1{
2 "name": "threads",
3 "version": "1.0.0",
4 "description": "Web workers & worker threads as simple as a function call",
5 "main": "dist/index.js",
6 "module": "dist-esm/index.js",
7 "scripts": {
8 "prebuild": "rimraf dist/ dist-esm/",
9 "build": "run-p build:cjs build:es",
10 "build:cjs": "tsc -p tsconfig.json",
11 "build:es": "tsc -p tsconfig-esm.json",
12 "test": "run-s test:ava test:puppeteer:basic test:puppeteer:webpack",
13 "test:ava": "cross-env TS_NODE_FILES=true ava",
14 "test:puppeteer:basic": "puppet-run --plugin=mocha --bundle=./test/workers/:/workers/ ./test/*.chromium*.ts",
15 "test:puppeteer:webpack": "puppet-run --serve ./test/webpack/dist.web/0.worker.js --serve ./test/webpack/dist.web/1.worker.js --plugin=mocha ./test/webpack/webpack.chromium.mocha.ts",
16 "posttest": "tslint --project .",
17 "prepare": "run-s build"
18 },
19 "sideEffects": [
20 "./dist*/master/register.js",
21 "./dist*/worker/index.js",
22 "./register.*js",
23 "./worker.*js"
24 ],
25 "repository": {
26 "type": "git",
27 "url": "git+https://github.com/andywer/threads.js.git"
28 },
29 "author": "Andy Wermke (https://github.com/andywer)",
30 "license": "MIT",
31 "bugs": {
32 "url": "https://github.com/andywer/threads.js/issues"
33 },
34 "homepage": "https://threads.js.org",
35 "keywords": [
36 "thread",
37 "worker",
38 "pool",
39 "spawn",
40 "isomorphic",
41 "parallel",
42 "observable",
43 "worker_threads"
44 ],
45 "dependencies": {
46 "callsites": "^3.1.0",
47 "debug": "^4.1.1",
48 "is-observable": "^1.1.0",
49 "observable-fns": "^0.5.0"
50 },
51 "devDependencies": {
52 "@types/chai": "^4.1.7",
53 "@types/debug": "^4.1.4",
54 "@types/execa": "^0.9.0",
55 "@types/mocha": "^5.2.6",
56 "@types/node": "^11.13.8",
57 "@types/webpack": "^4.4.32",
58 "ava": "^2.4.0",
59 "chai": "^4.2.0",
60 "cross-env": "^5.2.0",
61 "execa": "^3.4.0",
62 "mocha": "^5.2.0",
63 "npm-run-all": "^4.1.5",
64 "puppet-run": "^0.10.0-alpha",
65 "puppet-run-plugin-mocha": "^0.10.0-alpha",
66 "rimraf": "^2.6.3",
67 "rollup": "^1.16.2",
68 "rollup-plugin-commonjs": "^10.0.1",
69 "rollup-plugin-node-resolve": "^5.1.0",
70 "threads-plugin": "^1.2.0",
71 "tiny-worker": "^2.2.0",
72 "ts-loader": "^6.0.1",
73 "ts-node": "^8.1.0",
74 "tslint": "^5.16.0",
75 "tslint-config-prettier": "^1.18.0",
76 "typescript": "^3.4.5",
77 "wavy": "^1.0.4",
78 "webpack": "^4.32.2",
79 "worker-plugin": "^3.1.0"
80 },
81 "optionalDependencies": {
82 "tiny-worker": ">= 2"
83 },
84 "ava": {
85 "compileEnhancements": false,
86 "extensions": [
87 "ts"
88 ],
89 "files": [
90 "./test/**/*.test.ts"
91 ],
92 "require": [
93 "ts-node/register"
94 ],
95 "serial": true
96 },
97 "browser": {
98 "callsites": false,
99 "tiny-worker": false,
100 "ts-node": false,
101 "ts-node/register": false,
102 "worker_threads": false,
103 "./dist/master/implementation.node.js": false,
104 "./dist/worker/implementation.tiny-worker.js": false,
105 "./dist/worker/implementation.worker_threads.js": false,
106 "./dist-esm/master/implementation.node.js": false,
107 "./dist-esm/worker/implementation.tiny-worker.js": false,
108 "./dist-esm/worker/implementation.worker_threads.js": false
109 },
110 "files": [
111 "dist/**",
112 "dist-esm/**",
113 "*.js",
114 "*.mjs",
115 "*.ts"
116 ]
117}