From ed83af01fb41253a5c57704aa95df047d737e8c3 Mon Sep 17 00:00:00 2001 From: a145789 <2091927351@qq.com> Date: Wed, 13 Dec 2023 14:03:01 +0800 Subject: [PATCH] chore: ci run postinstall error --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b79eec1..65c0f7b 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ ], "scripts": { "preinstall": "npx only-allow pnpm", - "postinstall": "simple-git-hooks", + "postinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || simple-git-hooks", "dev": "tsup --watch", "build": "tsup", "release": "pnpm build && node bin/index.js release", @@ -79,4 +79,4 @@ "picocolors": "^1.0.0", "semver": "^7.5.4" } -} \ No newline at end of file +}