Same check as in CI to catch issues before push. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
12 lines
490 B
Text
12 lines
490 B
Text
# Verify no private registry URLs in package-lock.json
|
|
if grep -E '"resolved": "https?://' package-lock.json | grep -v registry.npmjs.org > /dev/null; then
|
|
echo "ERROR: package-lock.json contains non-npmjs.org URLs"
|
|
echo "Run: docker run --rm -i -v \$PWD:/src -w /src node:latest npm i --registry=https://registry.npmjs.org/"
|
|
exit 1
|
|
fi
|
|
|
|
npm run build:all
|
|
npm run prettier:fix
|
|
|
|
# Stage any changes to generated files (they may have been reformatted by prettier)
|
|
git add src/generated/
|