Add pre-commit check for private registry URLs in package-lock.json (#133)
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>
This commit is contained in:
parent
c516cf0894
commit
7a5bf9c7f1
1 changed files with 7 additions and 0 deletions
|
|
@ -1,3 +1,10 @@
|
|||
# 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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue