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

chore: add package-lock.json to .gitignore #1985

Merged
merged 2 commits into from May 14, 2024
Merged

Conversation

XhmikosR
Copy link
Contributor

@XhmikosR XhmikosR commented May 8, 2024

No description provided.

@XhmikosR XhmikosR marked this pull request as ready for review May 8, 2024 04:31
@SethFalco
Copy link
Member

Can you explain these changes, please? We use yarn, not npm, so I'm not sure why package-lock.json would need disabling.

@XhmikosR
Copy link
Contributor Author

XhmikosR commented May 9, 2024 via email

@SethFalco
Copy link
Member

In my opinion, the con is that it adds clutter to the repo. My thoughts are in a similar vain to why we don't include editor specific configs like .vscode in the repository which has come up before.

If we include configs in the repo for tooling that isn't a part of our stack, the files tend to accumulate. This repo does not use npm, so it doesn't make sense to include an .npmrc.

I'm use to using npm too and even prefer it, but rather than making changes in the repo, I've just ingrained a habit to check for lock files before contributing to a project. I believe this is a better solution than having project that use Yarn configure npm.

This is especially relavent considering for me at least, running npm install makes undesirable changes to the yarn.lock file, other commands like when publishing also behave differently. Only Yarn is supported for contributions, and while others are welcome to use whatever tools they'd like, and I don't want us to have files that suggest otherwise.

@XhmikosR
Copy link
Contributor Author

That's OK, but let's add it to .gitignore at least.

@XhmikosR XhmikosR changed the title chore: properly disable package-lock.json chore: add package-lock.json to .gitignore May 14, 2024
@SethFalco SethFalco merged commit bf9af5d into svg:main May 14, 2024
10 checks passed
@XhmikosR XhmikosR deleted the xmr/pkg-lock branch May 14, 2024 18:32
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

Successfully merging this pull request may close these issues.

None yet

2 participants