diff --git a/.husky/post-merge b/.husky/post-merge index 26096e74dc03e25..f3801e9ba46b375 100644 --- a/.husky/post-merge +++ b/.husky/post-merge @@ -7,10 +7,8 @@ if [ -f ".husky/_/history" ]; then lastHash=$(cat ./.husky/_/history) isUpdated=$(git diff $lastHash HEAD -- ./package.json) if [ "$isUpdated" != "" ]; then - yarn install + echo ⚠🔥 package.json has been modified please run 'yarn install'! 🔥 fi else yarn install fi - -echo $(git rev-parse HEAD) > ./.husky/_/history diff --git a/package.json b/package.json index d5b755784fc9c7a..5c708bd9c10346d 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ }, "type": "module", "scripts": { + "postinstall": "sh ./.husky/update-history", "build": "env-cmd --silent cross-env CONTENT_ROOT=files BUILD_OUT_ROOT=build yari-build", "content": "env-cmd --silent cross-env CONTENT_ROOT=files yari-tool", "filecheck": "env-cmd --silent cross-env CONTENT_ROOT=files yari-filecheck --cwd=.",