"description": "Library on top of node js worker threads that implement various worker pools type",
"main": "lib/index.js",
"scripts": {
- "build": "npm run build:clean && tsc",
- "build:clean": "rimraf lib",
+ "build": "rollup --config",
+ "build:dev": "rollup --config --environment BUILD:development",
"benchmark": "npm run build && node benchmarks/bench.js",
+ "benchmark:debug": "npm run build:dev && node -r source-map-support/register --inspect-brk benchmarks/bench.js",
+ "benchmark:debug:vscode": "node -r source-map-support/register benchmarks/bench.js",
"test": "npm run build && nyc mocha --exit --timeout 20000 tests/**/*.test.js",
- "test:debug": "mocha --inspect-brk --exit tests/**/*.test.js",
+ "test:debug": "npm run build:dev && mocha -r source-map-support/register --inspect-brk --exit tests/**/*.test.js",
+ "test:debug:vscode": "mocha -r source-map-support/register --exit tests/**/*.test.js",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"coverage:html": "nyc --reporter=html mocha --exit --timeout 20000 tests/**/*.test.js",
"format": "prettier --loglevel silent --write .; prettierx --write .",
"node",
"thread-pool",
"worker-threads",
+ "cluster",
"performance",
"cpu",
"computing",
"@types/node": "^14.14.25",
"@typescript-eslint/eslint-plugin": "^4.15.0",
"@typescript-eslint/parser": "^4.15.0",
+ "@wessberg/rollup-plugin-ts": "^1.3.8",
"benchmark": "^2.1.4",
"coveralls": "^3.1.0",
"eslint": "^7.19.0",
"prettier": "^2.2.1",
"prettier-plugin-organize-imports": "^1.1.1",
"prettierx": "^0.17.0",
- "rimraf": "^3.0.2",
+ "rollup": "^2.38.5",
+ "rollup-plugin-delete": "^2.0.0",
+ "source-map-support": "^0.5.19",
"typescript": "^4.1.4",
"worker-threads-pool": "^2.0.0",
"workerpool": "^6.1.0"