build: switch to pnpm
[poolifier.git] / package.json
index 23fca8014015c5a6592ee0f8e09397711b11b029..15a7e8ed96e784951defae537aa37c34b398ad74 100644 (file)
     }
   },
   "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 && c8 mocha 'tests/**/*.test.js'",
-    "test:debug": "npm run build && mocha --no-parallel --inspect 'tests/**/*.test.js'",
+    "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",
@@ -28,7 +29,7 @@
     "lint:report": "eslint . --cache --format json --output-file reports/eslint.json",
     "release": "release-it",
     "typedoc": "typedoc",
-    "prepublishOnly": "npm run build:prod"
+    "prepublishOnly": "pnpm run build:prod"
   },
   "ts-standard": {
     "globals": [
@@ -41,8 +42,7 @@
     ]
   },
   "engines": {
-    "node": ">=16.0.0",
-    "npm": ">=8.0.0"
+    "node": ">=16.0.0"
   },
   "repository": {
     "type": "git",
@@ -90,7 +90,7 @@
     "lib"
   ],
   "devDependencies": {
-    "@commitlint/cli": "^17.4.4",
+    "@commitlint/cli": "^17.5.0",
     "@commitlint/config-conventional": "^17.4.4",
     "@release-it/bumper": "^4.0.2",
     "@release-it/keep-a-changelog": "^3.1.0",
     "prettier": "^2.8.6",
     "prettier-plugin-organize-imports": "^3.2.2",
     "release-it": "^15.9.1",
-    "rollup": "^3.20.0",
+    "rollup": "^3.20.1",
     "rollup-plugin-analyzer": "^4.0.0",
     "rollup-plugin-command": "^1.1.3",
     "rollup-plugin-delete": "^2.0.0",