Overview
PRs occasionally include lock files from package managers the project doesn't use (e.g. package-lock.json when the project uses Yarn). This causes confusion and bloats diffs. A pre-commit hook should reject these artifacts automatically.
Action Items
Resources/Instructions
Overview
PRs occasionally include lock files from package managers the project doesn't use (e.g.
package-lock.jsonwhen the project uses Yarn). This causes confusion and bloats diffs. A pre-commit hook should reject these artifacts automatically.Action Items
package-lock.jsonandpnpm-lock.yamlin staged filesyarn installinsteadpackage-lock.jsonandpnpm-lock.yamlto.gitignoreas a secondary safeguardResources/Instructions
package-lock.jsonwas accidentally introduced during the ESM migration