package.json 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {
  2. "name": "piscina",
  3. "version": "4.8.0",
  4. "description": "A fast, efficient Node.js Worker Thread Pool implementation",
  5. "main": "./dist/main.js",
  6. "types": "./dist/index.d.ts",
  7. "exports": {
  8. "types": "./dist/index.d.ts",
  9. "import": "./dist/esm-wrapper.mjs",
  10. "require": "./dist/main.js"
  11. },
  12. "scripts": {
  13. "build": "tsc && gen-esm-wrapper . dist/esm-wrapper.mjs",
  14. "lint": "standardx \"**/*.{ts,mjs,js,cjs}\" | snazzy",
  15. "test": "c8 tap",
  16. "test:ci": "npm run lint && npm run build && npm run test:coverage",
  17. "test:coverage": "c8 --reporter=lcov tap --cov",
  18. "prepack": "npm run build",
  19. "bench": "npm run bench:taskqueue && npm run bench:piscina",
  20. "bench:piscina": "npm run benchmark:piscina-default &&npm run benchmark:piscina-fixed-queue && npm run benchmark:piscina-comparison",
  21. "bench:taskqueue": "npm run benchmark:queue-comparison",
  22. "benchmark:piscina-default": "node benchmark/simple-benchmark.js",
  23. "benchmark:piscina-fixed-queue": "node benchmark/simple-benchmark-fixed-queue.js",
  24. "benchmark:piscina-comparison": "node benchmark/piscina-queue-comparison.js",
  25. "benchmark:queue-comparison": "node benchmark/queue-comparison.js"
  26. },
  27. "repository": {
  28. "type": "git",
  29. "url": "git+https://github.com/piscinajs/piscina.git"
  30. },
  31. "keywords": [
  32. "fast",
  33. "worker threads",
  34. "thread pool",
  35. "wade wilson"
  36. ],
  37. "author": "James M Snell <jasnell@gmail.com>",
  38. "contributors": [
  39. "Anna Henningsen <anna@addaleax.net>",
  40. "Matteo Collina <matteo.collina@gmail.com>"
  41. ],
  42. "license": "MIT",
  43. "devDependencies": {
  44. "@types/node": "^22.4.1",
  45. "@typescript-eslint/eslint-plugin": "^6.9.0",
  46. "@typescript-eslint/parser": "^6.9.0",
  47. "abort-controller": "^3.0.0",
  48. "c8": "^10.1.2",
  49. "concat-stream": "^2.0.0",
  50. "gen-esm-wrapper": "^1.1.1",
  51. "snazzy": "^9.0.0",
  52. "standardx": "^7.0.0",
  53. "tap": "^16.3.7",
  54. "tinybench": "^2.8.0",
  55. "ts-node": "^10.9.2",
  56. "typescript": "5.6.2"
  57. },
  58. "optionalDependencies": {
  59. "@napi-rs/nice": "^1.0.1"
  60. },
  61. "eslintConfig": {
  62. "rules": {
  63. "semi": [
  64. "error",
  65. "always"
  66. ],
  67. "no-unused-vars": "off",
  68. "no-use-before-define": "off",
  69. "no-unreachable-loop": "off",
  70. "no-dupe-class-members": "off",
  71. "@typescript-eslint/no-unused-vars": "error"
  72. },
  73. "globals": {
  74. "SharedArrayBuffer": true,
  75. "Atomics": true,
  76. "AbortController": true,
  77. "MessageChannel": true
  78. }
  79. },
  80. "standardx": {
  81. "parser": "@typescript-eslint/parser",
  82. "plugins": [
  83. "@typescript-eslint/eslint-plugin"
  84. ]
  85. },
  86. "bugs": {
  87. "url": "https://github.com/piscinajs/piscina/issues"
  88. },
  89. "homepage": "https://github.com/piscinajs/piscina#readme",
  90. "directories": {
  91. "example": "examples",
  92. "test": "test"
  93. }
  94. }