Unverified Commit 8613297c authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Fix prepublish compiled handling (#44914)

parent 869aab39
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
"clean-trace-jaeger": "rm -rf test/integration/basic/.next && TRACE_TARGET=JAEGER pnpm next build test/integration/basic", "clean-trace-jaeger": "rm -rf test/integration/basic/.next && TRACE_TARGET=JAEGER pnpm next build test/integration/basic",
"debug": "cross-env NEXT_TELEMETRY_DISABLED=1 node --inspect packages/next/dist/bin/next", "debug": "cross-env NEXT_TELEMETRY_DISABLED=1 node --inspect packages/next/dist/bin/next",
"postinstall": "git config feature.manyFiles true && node scripts/install-native.mjs", "postinstall": "git config feature.manyFiles true && node scripts/install-native.mjs",
"version": "npx pnpm@7.24.3 install && ./scripts/check-pre-compiled.sh && git add .", "version": "npx pnpm@7.24.3 install && IS_PUBLISH=yes ./scripts/check-pre-compiled.sh && git add .",
"prepare": "husky install" "prepare": "husky install"
}, },
"devDependencies": { "devDependencies": {
......
...@@ -16,7 +16,7 @@ cd ../../ ...@@ -16,7 +16,7 @@ cd ../../
# Make sure to exit with 1 if there are changes after running ncc-compiled # Make sure to exit with 1 if there are changes after running ncc-compiled
# step to ensure we get any changes committed # step to ensure we get any changes committed
if [[ ! -z $(git status -s) ]];then if [[ ! -z $(git status -s) ]] && [[ -z $IS_PUBLISH ]];then
echo "Detected changes" echo "Detected changes"
git diff -a --stat git diff -a --stat
exit 1 exit 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment