TypeScript-Node-Starter icon indicating copy to clipboard operation
TypeScript-Node-Starter copied to clipboard

Remove yarn.lock from .gitignore

Open mezuzza opened this issue 4 years ago • 4 comments
trafficstars

Lock files are designed to be submitted to source control for consistent builds. Ignoring yarn.lock conflicts with its intended purpose: https://classic.yarnpkg.com/en/docs/yarn-lock/#toc-check-into-source-control.

mezuzza avatar Apr 10 '21 20:04 mezuzza

I'm not sure if yarn.lock was added to the gitignore for a reason I'm missing, but it seemed contradictory to its intended purpose as I mentioned above. I created this change since it was a quick fix. Feel free to merge or close as is appropriate.

mezuzza avatar Apr 10 '21 21:04 mezuzza

@mezuzza I believe it was just to avoid confusion on the CI (for build and for dependent bot). So only single lock file is used (for NPM), I'd leave this as is, probably as the best option.

peterblazejewicz avatar Apr 11 '21 09:04 peterblazejewicz

That makes some sense - though that somewhat implies both npm and yarn are being used to manage the project which sounds strange given that the project specifically uses npm.

Still, if you think it really doesn't make sense, would you be opposed to me modifying the comment to provide that context?

mezuzza avatar Apr 11 '21 18:04 mezuzza

absolutely not, go for it, thx!

peterblazejewicz avatar Apr 11 '21 19:04 peterblazejewicz