58 lines
1.6 KiB
JSON
58 lines
1.6 KiB
JSON
|
{
|
||
|
"name": "workerpool",
|
||
|
"license": "Apache-2.0",
|
||
|
"version": "9.1.1",
|
||
|
"description": "Offload tasks to a pool of workers on node.js and in the browser",
|
||
|
"homepage": "https://github.com/josdejong/workerpool",
|
||
|
"author": "Jos de Jong <wjosdejong@gmail.com> (https://github.com/josdejong)",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "git://github.com/josdejong/workerpool.git"
|
||
|
},
|
||
|
"keywords": [
|
||
|
"worker",
|
||
|
"web worker",
|
||
|
"cluster",
|
||
|
"pool",
|
||
|
"isomorphic"
|
||
|
],
|
||
|
"main": "src/index.js",
|
||
|
"browser": "dist/workerpool.js",
|
||
|
"types": "types/index.d.ts",
|
||
|
"files": [
|
||
|
"dist",
|
||
|
"src",
|
||
|
"types",
|
||
|
"HISTORY.md",
|
||
|
"LICENSE",
|
||
|
"README.md"
|
||
|
],
|
||
|
"scripts": {
|
||
|
"build": "rollup -c rollup.config.mjs && npm run build:types",
|
||
|
"build:types": "tsc -p .",
|
||
|
"watch": "rollup -c rollup.config.mjs -w",
|
||
|
"test": "npm run build && mocha test && npm run test:types",
|
||
|
"test:types": "tsc -p test/types",
|
||
|
"test:debug": "npm run build && mocha debug test",
|
||
|
"coverage": "npm run build && c8 mocha && c8 report --reporter=html && echo Coverage report is available at ./coverage/index.html",
|
||
|
"prepublishOnly": "npm run test"
|
||
|
},
|
||
|
"devDependencies": {
|
||
|
"@types/node": "20.12.5",
|
||
|
"@babel/core": "7.24.4",
|
||
|
"@babel/preset-env": "7.24.4",
|
||
|
"@rollup/plugin-babel": "6.0.4",
|
||
|
"@rollup/plugin-commonjs": "25.0.7",
|
||
|
"@rollup/plugin-json": "6.1.0",
|
||
|
"@rollup/plugin-node-resolve": "15.2.3",
|
||
|
"@rollup/plugin-terser": "0.4.4",
|
||
|
"c8": "9.1.0",
|
||
|
"date-format": "4.0.14",
|
||
|
"fs-extra": "11.2.0",
|
||
|
"find-process": "1.4.7",
|
||
|
"mocha": "10.4.0",
|
||
|
"rollup": "4.14.0",
|
||
|
"typescript": "5.4.4"
|
||
|
}
|
||
|
}
|