From 06221be0290d6207d4d579b7db323fde5a3ac307 Mon Sep 17 00:00:00 2001 From: "Rong Sen Ng (motss)" Date: Sat, 22 Jan 2022 18:56:17 +0800 Subject: [PATCH] build: update script --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ea92a28a..35cc0e4a 100644 --- a/package.json +++ b/package.json @@ -90,7 +90,7 @@ "build": "tsc -p tsconfig.prod.json", "check": "package-check", "clean": "rm -rf .*cache *.log coverage/ dist/ logs/", - "postinstall": "if [ \"$CI\" != 'true' ] && [ \"$npm_package_name\" == 'app-datepicker' ]; then npm x -y -- simple-git-hooks && npm dedupe; fi", + "postinstall": "if [ \"$CI\" != 'true' ] && [ \"$INIT_CWD\" != *'node_modules/app-datepicker' ]; then npm x -y -- simple-git-hooks && npm dedupe; fi", "lint": "eslint src --ext .js,.ts", "lint-commit": "npm x -y -- commitlint --edit", "lint:build": "npm run lint -- --config .build.eslintrc.json",