From 884480d3df932ff11ff70a0f2ef40f7062eed211 Mon Sep 17 00:00:00 2001 From: Saad Jutt Date: Mon, 5 Jul 2021 01:05:41 +0500 Subject: [PATCH] fix: postinstall -> prepare, support windows CMD/Powershell --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dd2d6fa..57e3341 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "package:lib": "npm run build && cp ./package.json build && cp README.md build && cd build && npm version \"5.0.0\" && npm pack", "lint:fix": "npx prettier --write '{src,test}/**/*.{ts,tsx,js,jsx,html,css,sass,less,json,yml,md,graphql}'", "lint": "npx prettier --check '{src,test}/**/*.{ts,tsx,js,jsx,html,css,sass,less,json,yml,md,graphql}'", - "postinstall": "[ -d .git ] && git config core.hooksPath ./.git-hooks || true" + "prepare": "git rev-parse --git-dir && git config core.hooksPath ./.git-hooks || true" }, "publishConfig": { "access": "public"