Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include Lock Files (yarn.lock and package-lock.json) in Git #1991

Open
containerman17 opened this issue Jan 8, 2025 · 0 comments
Open

Include Lock Files (yarn.lock and package-lock.json) in Git #1991

containerman17 opened this issue Jan 8, 2025 · 0 comments

Comments

@containerman17
Copy link

Is your feature request related to a problem? Please describe.
Currently, the repository’s .gitignore file excludes both yarn.lock and package-lock.json. Ignoring these lock files can lead to inconsistencies in dependency versions across different environments, which may cause compatibility issues.

Describe the solution you'd like
Please remove yarn.lock and package-lock.json from the .gitignore, allowing these files to be committed to the repository. This ensures everyone is using the same versions of dependencies for consistent, reproducible builds.

Describe alternatives you’ve considered
Relying on the hope that no dependency introduces breaking changes and that all maintainers adhere perfectly to semantic versioning. However, this is often unpredictable in practice and can result in compatibility issues.

Additional context
Lock files serve as a record of exact dependency versions. Including them in version control helps avoid unintentional mismatches and ensures consistent environments for all contributors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant