package.json 2.2 KB

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