From f6b20dfee8df49c311907b30563f00fb6e729b72 Mon Sep 17 00:00:00 2001 From: Cloyd Lau <31238760+cloydlau@users.noreply.github.com> Date: Sun, 17 Dec 2023 20:59:42 +0800 Subject: [PATCH] workflow: `pnpm:devPreinstall` runs only under dev environment --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9e17451..582be45 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "serve": "vite preview", "doc": "vitepress dev --open /README", "release": "esno ./scripts/release.mts", - "pnpm:devPreinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || node ./scripts/devPreinstall.mjs", + "pnpm:devPreinstall": "node ./scripts/devPreinstall.mjs", "preinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || npx only-allow pnpm", "postinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || npx simple-git-hooks" }, @@ -67,4 +67,4 @@ "lint-staged": { "*.md": "case-police --fix" } -} \ No newline at end of file +}