From 87e83fc601dba8170cefafc36cac9facb83890c1 Mon Sep 17 00:00:00 2001 From: Katsuyuki Karasawa <4ranci0ne@gmail.com> Date: Sun, 1 Dec 2024 17:29:42 +0900 Subject: [PATCH] chore: enforce pnpm usage (#238) --- .npmrc | 1 + package.json | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 000000000..6baea0200 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +manage-package-manager-versions = true \ No newline at end of file diff --git a/package.json b/package.json index 7d2f14970..724b712ea 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "type-check": "tsc --noEmit --isolatedDeclarations", "new-post": "node scripts/new-post.js", "format": "biome format --write ./src", - "lint": "biome check --apply ./src" + "lint": "biome check --apply ./src", + "preinstall": "npx only-allow pnpm" }, "dependencies": { "@astrojs/check": "^0.9.4", @@ -65,5 +66,5 @@ "@types/mdast": "^4.0.4", "@types/sanitize-html": "^2.13.0" }, - "packageManager": "pnpm@9.6.0+sha512.38dc6fba8dba35b39340b9700112c2fe1e12f10b17134715a4aa98ccf7bb035e76fd981cf0bb384dfa98f8d6af5481c2bef2f4266a24bfa20c34eb7147ce0b5e" + "packageManager": "pnpm@9.14.4" }