Skip to content

Commit 2dd82c2

Browse files
committed
add only-allow pnpm hook
1 parent 5d20ae9 commit 2dd82c2

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"build:chrome": "cd packages/chrome && pnpm build",
1414
"dev": "node --no-warnings=ExperimentalWarning devserver.ts",
1515
"watch": "rspack build --watch",
16-
"format": "prettier --write ."
16+
"format": "prettier --write .",
17+
"preinstall": "npx only-allow pnpm"
1718
},
1819
"devDependencies": {
1920
"@mercuryworkshop/wisp-js": "^0.4.0",

packages/scramjet/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"author": "Mercury Workshop",
88
"license": "AGPL-3.0-only",
99
"packageManager": "[email protected]",
10-
"scripts": {},
10+
"scripts": {
11+
"preinstall": "npx only-allow pnpm"
12+
},
1113
"devDependencies": {
1214
"@rsdoctor/rspack-plugin": "^1.3.6",
1315
"@rslib/core": "^0.16.1",

packages/scramjet/pnpm-lock.yaml

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)