flood icon indicating copy to clipboard operation
flood copied to clipboard

package-lock.json is overwritten by npm install

Open 2buisson opened this issue 9 years ago • 4 comments

So package-lock.json has been added to the repository, I hurry to test it:

$ git clone https://github.com/jfurrow/flood
$ cd flood
$ npm install
$ git status
modified:   package-lock.json

I can observe in this repository 's package.json what is described in this answer on why npm install would overwrite package-lock: https://stackoverflow.com/a/45566871

2buisson avatar Oct 17 '17 13:10 2buisson

Perhaps some1 forgot to push latest package-lock.json to repo.

midzer avatar Oct 17 '17 14:10 midzer

Is it okay config.js and alot of server side javascript to be included into generated main.js in assets?

mirolm avatar Oct 17 '17 21:10 mirolm

@varyoo It does make sense to heed the advice in the stackoverflow post, and use exact versions. I'll make this change.

@mirolm You're right that config.js should probably not be in the bundle, but none of the server side JavaScript is included.

jfurrow avatar Oct 18 '17 03:10 jfurrow

@varyoo I decided not to use specific versions of dependencies, in favor of more up-to-date dependencies. I'll keep package-lock.json for now, and when the --from-lock-file option is supported, we'll recommend this in the readme.

jfurrow avatar Oct 18 '17 04:10 jfurrow