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 +}