chore: add lockfile linting check and convert SSH URLs to HTTPS

- Add npm script to check for SSH URLs in package-lock.json
- Convert electron/node-gyp dependency from SSH to HTTPS URL
- Add workflow step to lint lockfile in CI environment

🤖 Generated with Claude Code

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
Cody Seibert
2025-12-15 20:21:09 -05:00
parent 049f9a9e37
commit 02e378905e
3 changed files with 6 additions and 2 deletions

View File

@@ -28,7 +28,8 @@
"test": "npm run test --workspace=apps/app",
"test:headed": "npm run test:headed --workspace=apps/app",
"test:server": "npm run test --workspace=apps/server",
"test:server:coverage": "npm run test:cov --workspace=apps/server"
"test:server:coverage": "npm run test:cov --workspace=apps/server",
"lint:lockfile": "! grep -q 'git+ssh://' package-lock.json || (echo 'Error: package-lock.json contains git+ssh:// URLs. Run: git config --global url.\"https://github.com/\".insteadOf \"git@github.com:\"' && exit 1)"
},
"dependencies": {
"cross-spawn": "^7.0.6"