blog-prisma2 icon indicating copy to clipboard operation
blog-prisma2 copied to clipboard

How to get `package-lock.json` file written to local volume

Open pudgereyem opened this issue 6 years ago • 0 comments

Hey @CaptainChemist, I'm curios to hear how you get the backend/package-lock.json for example to be written to your local machine so that you can check it in.

When running npm run build, the Dockerfile will run npm install inside the container and therefore also create the package-lock.json file inside the container, but not on my local machine.

My question is, how do you manage to get the package-lock.json checked in with git?

See similar Stack overflow question posted here; https://stackoverflow.com/questions/52285137/how-should-the-package-lock-json-file-be-generated-for-node-js-docker-apps

Thanks for posting your example project here on Github!

pudgereyem avatar Mar 28 '20 08:03 pudgereyem