3 ms·
But you don't write scripts in package.json and it also failed to show an example how the javascript dependencies could be loaded with make. I think make works
by dncornholio 5y ago
But you don't write scripts in package.json and it also failed to show an example how the javascript dependencies could be loaded with make.
I think make works well in combination with package.json, but not as a replacement. You can also do the same stuff in an NPM command (which just loads node code) that you could do in a makefile script.
- andrew_ 5y agoNot to mention that the top three package managers will load binary files from node_modules automagically by name only, without having to specify paths. That gets hairy in a monorepo, and package managers running package.json scripts manage them just fine.
- silverwind 5y ago`npx` solves this elegantly as long as you `cd` to the project directory first.