diff --git a/package.json b/package.json index c80f6aae1..afb2a7f76 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "pi:uninstall-global": "node scripts/uninstall-pi-global.js", "sync-pkg-version": "node scripts/sync-pkg-version.cjs", "sync-platform-versions": "node native/scripts/sync-platform-versions.cjs", - "prepublishOnly": "npm run sync-pkg-version && npm run sync-platform-versions && npm run build" + "prepublishOnly": "npm run sync-pkg-version && npm run sync-platform-versions && git diff --exit-code || (echo 'ERROR: version sync changed files — commit them before publishing' && exit 1) && npm run build" }, "dependencies": { "@clack/prompts": "^1.1.0",