-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
make node_modules a order-only prerequisite #9923
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
Conversation
Package installations and our fomantic step results in changes inside node_modules which lead to make triggering that target unnecessarily. Moved all node_modules prerequisites to order-only which will make skip the timestamp check on in and eliminate useless npm calls. Changes in package-lock.json will still result in reinstallation so node_modules should stay consistent.
I initially had a change here that deleted node_modules on |
Still seeing some unneccesary installs, not sure why $ stat package-lock.json
Access: 2020-01-21 23:48:27.770141038
Modify: 2020-01-21 23:47:11.631464000
Change: 2020-01-21 23:47:11.631478146
$ make --trace node_modules
Makefile:469: update target 'node_modules' due to: package-lock.json
$ stat package-lock.json
Access: 2020-01-21 23:49:23.633522825
Modify: 2020-01-21 23:47:11.631464000
Change: 2020-01-21 23:47:11.631478146
$ make --trace node_modules
Makefile:469: update target 'node_modules' due to: package-lock.json Edit: Probably some weird macOS filesystem issue. It does work on Linux: $ make --trace node_modules
make: 'node_modules' is up to date.
$ make --trace node_modules
make: 'node_modules' is up to date. |
Codecov Report
@@ Coverage Diff @@
## master #9923 +/- ##
==========================================
- Coverage 42.27% 42.27% -0.01%
==========================================
Files 610 610
Lines 80364 80370 +6
==========================================
- Hits 33974 33973 -1
- Misses 42211 42213 +2
- Partials 4179 4184 +5
Continue to review full report at Codecov.
|
Package installations and our fomantic step results in changes inside node_modules which lead to make triggering that target unnecessarily.
Moved all node_modules prerequisites to order-only which will make
make
skip the timestamp check on it and eliminate uselessnpm install
calls.Changes in package-lock.json will still result in reinstallation so node_modules should stay consistent.