First, thank you for this, saving me from having to convert us from npm to yarn
I've hooked this up as a postinstall script in package.json:
"postinstall": "npx install-local"
This is great in having it now install my local projects as dependencies. Now the drawback is that every npm install it re-packs and installs each of the local dependencies even when they haven't changed.
I'd love to have a build performance feature to allow this to work so that it only runs the install if needed. So if npx install-local is run without arguments (probably with a new flag like --freshen or --update?), it checks each of the localDependencies and only installs them if that destination has newer (or sha-sum changed) files compared to the local node_modules/* folder where it will be installed to.
First, thank you for this, saving me from having to convert us from
npmtoyarnI've hooked this up as a postinstall script in package.json:
This is great in having it now install my local projects as dependencies. Now the drawback is that every
npm installit re-packs and installs each of the local dependencies even when they haven't changed.I'd love to have a build performance feature to allow this to work so that it only runs the install if needed. So if
npx install-localis run without arguments (probably with a new flag like--freshenor--update?), it checks each of thelocalDependenciesand only installs them if that destination has newer (or sha-sum changed) files compared to the localnode_modules/*folder where it will be installed to.