Open iranreyes opened 5 years ago
I believe they serve different purpose, but sure we could use just engine:
engine
defines the minimum version the thing needs to run on
while .nvmrc
defines the node version you want the thing to run on
but additionally for codeship I think it only take .nvmrc
, so we could avoid the ugly lines of extracting engine from package.json
my bad, codeship actually also takes engines from the package.json file
@iranreyes @neo I like having .nvmrc
as I have my zsh
set with nvm
to change/install to the current node
version (set in .nvmrc
).
Side note: Also, having the engine
in package.json
helps when the .nvmrc
version doesn't fulfill the package.json
node version condition 👍
We are already checking in
engines
within thepackage.json
the right version of npm and node.js. Plus nvm is not smart enough and every time a script runs nvm set the right version and is slowing down every npm script.