From 2ba41a59a0c2156951be33f5a7afa0dca11074f6 Mon Sep 17 00:00:00 2001 From: eduardoformiga Date: Wed, 15 Mar 2023 17:01:56 -0300 Subject: [PATCH] fix: husky script --- packages/core/.husky/pre-commit | 2 +- packages/core/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/.husky/pre-commit b/packages/core/.husky/pre-commit index d2ae35e84b..bc213b7d50 100755 --- a/packages/core/.husky/pre-commit +++ b/packages/core/.husky/pre-commit @@ -1,4 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -yarn lint-staged +cd packages/core && yarn lint-staged diff --git a/packages/core/package.json b/packages/core/package.json index 66f6b5eb79..15f3d21d65 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -15,7 +15,7 @@ "lint": "next lint", "stylelint": "stylelint \"**/*.scss\"", "stylelint:fix": "stylelint \"**/*.scss\" --fix", - "postinstall": "node postinstall.js && (is-ci || husky install) || echo Skipped postinstall step for @faststore/core", + "postinstall": "node postinstall.js && (is-ci || (cd ../.. && husky install packages/core/.husky)) || echo Skipped postinstall step for @faststore/core", "partytown": "partytown copylib ./public/~partytown", "storybook": "start-storybook --docs -p 6006", "build-storybook": "build-storybook"