Live data from Hacker News

We check our node_modules folder into source control

jackfranklin.co.uk

11–20 of 241 posts

Re: We check our node_modules folder into source control

#11
post #8
post #6

> Once you check your node_modules in, there's no need to run an install step before you can get up and running on the codebase Is this really true for packages with pre/post install scripts?

No it's not. They are talking about their personal preference and it has nothing to do with real life employers.

RTFA.

It says, quite succinctly:

> I currently work at Google on the Chrome DevTools team and we check our node_modules folder into source control

Re: We check our node_modules folder into source control

#13
Yarn offers "Plug'n'play" mode since v2, which basically promotes what the author says. It takes the idea further: dependencies are stored as zip archives instead of thousands of small files, which reduces the "git noise" and actually makes this viable as a performant workflow.

https://yarnpkg.com/features/pnp

Re: We check our node_modules folder into source control

#17
post #8

Earlier quoted context omitted.

No it's not. They are talking about their personal preference and it has nothing to do with real life employers.

RTFA. It says, quite succinctly: > I currently work at Google on the Chrome DevTools team and we check our node_modules folder into source control

Yeah I read that and I disagree because at google if I checked in my node_modules I would fail my commit.

Re: We check our node_modules folder into source control

#20
post #15
post #9

Earlier quoted context omitted.

"I delete my lock file" is so common that I would say it has no value.

Check in your lock file.

Done. Then I delete it, and `npm install`. Then commit. The majority of people I have worked with do that. On Friday some dude was saying "shrinkwrap v2 is not shrinkwrap v1" and the advice was "delete it and npm install" then commit. (Payment company software manager).
Post reply on HN