chore: v2.4.0
[poolifier.git] / package.json
index 1fc3d429a3f13eeea5187232d3cc31d881207c8b..f4eaa6e09c09f45dbe3cf9080bc9e206aa99025f 100644 (file)
@@ -1,26 +1,48 @@
 {
   "name": "poolifier",
-  "version": "2.2.0",
+  "version": "2.4.0",
   "description": "A fast, easy to use Node.js Worker Thread Pool and Cluster Pool implementation",
-  "main": "lib/index.js",
+  "license": "MIT",
+  "main": "./lib/index.js",
+  "exports": {
+    ".": {
+      "require": "./lib/index.js",
+      "import": "./lib/index.mjs"
+    }
+  },
   "scripts": {
+    "preinstall": "npx only-allow pnpm",
+    "prepare": "node prepare.js",
     "build": "rollup --config --environment BUILD:development",
     "build:typedoc": "rollup --config --environment BUILD:development --environment DOCUMENTATION",
     "build:prod": "rollup --config",
-    "benchmark": "npm run build && node -r source-map-support/register benchmarks/internal/bench.js",
-    "benchmark:debug": "npm run build && node -r source-map-support/register --inspect benchmarks/internal/bench.js",
-    "benchmark:prod": "npm run build:prod && node -r source-map-support/register benchmarks/internal/bench.js",
-    "test": "npm run build && nyc mocha 'tests/**/*.test.js'",
-    "test:debug": "npm run build && mocha --no-parallel --inspect 'tests/**/*.test.js'",
-    "test:prod": "npm run build:prod && nyc mocha 'tests/**/*.test.js'",
-    "coverage": "nyc report --reporter=lcov",
-    "coverage:html": "nyc report --reporter=html",
-    "format": "prettier --loglevel silent --write .; prettierx --write .",
+    "benchmark": "pnpm run build && node -r source-map-support/register benchmarks/internal/bench.js",
+    "benchmark:debug": "pnpm run build && node -r source-map-support/register --inspect benchmarks/internal/bench.js",
+    "benchmark:prod": "pnpm run build:prod && node -r source-map-support/register benchmarks/internal/bench.js",
+    "test": "pnpm run build && c8 mocha 'tests/**/*.test.js'",
+    "test:debug": "pnpm run build && mocha --no-parallel --inspect 'tests/**/*.test.js'",
+    "coverage": "c8 report --reporter=lcov",
+    "coverage:html": "c8 report --reporter=html",
+    "format": "prettier . --cache --write; ts-standard . --fix",
     "lint": "eslint . --cache",
     "lint:fix": "eslint . --cache --fix",
+    "lint:report": "eslint . --cache --format json --output-file reports/eslint.json",
+    "release": "release-it",
     "typedoc": "typedoc",
-    "sonar:properties": "./updateSonarProps.sh",
-    "prepublishOnly": "npm run build:prod"
+    "prepublishOnly": "pnpm run build:prod"
+  },
+  "ts-standard": {
+    "globals": [
+      "describe",
+      "it",
+      "before",
+      "after",
+      "beforeEach",
+      "afterEach"
+    ]
+  },
+  "engines": {
+    "node": ">=16.0.0"
   },
   "repository": {
     "type": "git",
       "url": "https://github.com/jerome-benoit"
     }
   ],
-  "license": "MIT",
+  "funding": [
+    {
+      "type": "opencollective",
+      "url": "https://opencollective.com/poolifier"
+    },
+    {
+      "type": "github",
+      "url": "https://github.com/sponsors/poolifier"
+    }
+  ],
   "bugs": {
     "url": "https://github.com/poolifier/poolifier/issues"
   },
     "lib"
   ],
   "devDependencies": {
-    "@types/node": "^18.7.1",
-    "@typescript-eslint/eslint-plugin": "^5.33.0",
-    "@typescript-eslint/parser": "^5.33.0",
-    "benchmark": "^2.1.4",
-    "eslint": "^8.21.0",
+    "@commitlint/cli": "^17.5.1",
+    "@commitlint/config-conventional": "^17.4.4",
+    "@release-it/bumper": "^4.0.2",
+    "@release-it/keep-a-changelog": "^3.1.0",
+    "@rollup/plugin-terser": "^0.4.0",
+    "@rollup/plugin-typescript": "^11.0.0",
+    "@types/node": "^18.15.11",
+    "@typescript-eslint/eslint-plugin": "^5.57.1",
+    "@typescript-eslint/parser": "^5.57.1",
+    "benny": "^3.7.1",
+    "c8": "^7.13.0",
+    "eslint": "^8.37.0",
     "eslint-config-standard": "^17.0.0",
-    "eslint-define-config": "^1.6.0",
-    "eslint-import-resolver-typescript": "^3.4.0",
-    "eslint-plugin-import": "^2.26.0",
-    "eslint-plugin-jsdoc": "^39.3.6",
-    "eslint-plugin-n": "^15.2.4",
-    "eslint-plugin-node": "^11.1.0",
-    "eslint-plugin-prettierx": "^0.18.0",
-    "eslint-plugin-promise": "^6.0.0",
-    "eslint-plugin-spellcheck": "^0.0.19",
-    "expect": "^28.1.3",
+    "eslint-config-standard-with-typescript": "^34.0.1",
+    "eslint-define-config": "^1.17.0",
+    "eslint-import-resolver-typescript": "^3.5.4",
+    "eslint-plugin-import": "^2.27.5",
+    "eslint-plugin-jsdoc": "^40.1.1",
+    "eslint-plugin-n": "^15.7.0",
+    "eslint-plugin-promise": "^6.1.1",
+    "eslint-plugin-spellcheck": "^0.0.20",
+    "eslint-plugin-tsdoc": "^0.2.17",
+    "expect": "^29.5.0",
+    "husky": "^8.0.3",
+    "lint-staged": "^13.2.0",
     "microtime": "^3.1.1",
-    "mocha": "^10.0.0",
+    "mocha": "^10.2.0",
     "mochawesome": "^7.1.3",
-    "nyc": "^15.1.0",
-    "prettier": "^2.7.1",
-    "prettier-plugin-organize-imports": "^3.0.3",
-    "prettierx": "^0.18.3",
-    "rollup": "^2.77.3",
+    "prettier": "^2.8.7",
+    "prettier-plugin-organize-imports": "^3.2.2",
+    "release-it": "^15.10.1",
+    "rollup": "^3.20.2",
     "rollup-plugin-analyzer": "^4.0.0",
     "rollup-plugin-command": "^1.1.3",
     "rollup-plugin-delete": "^2.0.0",
-    "rollup-plugin-istanbul": "^3.0.0",
-    "rollup-plugin-terser": "^7.0.2",
-    "rollup-plugin-ts": "^3.0.2",
+    "sinon": "^15.0.3",
     "source-map-support": "^0.5.21",
-    "typedoc": "^0.23.10",
-    "typescript": "^4.7.4"
-  },
-  "engines": {
-    "node": ">=16.0.0",
-    "npm": ">=8.0.0"
+    "ts-standard": "^12.0.2",
+    "typedoc": "^0.23.28",
+    "typescript": "^5.0.3"
   }
 }