You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now lets say I'm installing dependencies for production with: yarn install --production.
Yarn will not include asset_module in node_modules since it's in devDependencies.
However if asset_module is missing the install command fails anyways:
error Package "asset_module" refers to a non-existing file '"/home/user/project/asset_module"'.
It seems unnecessary that modules that will be ignored have to be there. The scenario where I've encountered this is when using yarn in docker. I don't copy in the dependencies that I don't need so the install command fails.
Please enlighten me if I'm missing a reason to have the module there even if it's not to be installed.
Using Yarn 1.22.11
The text was updated successfully, but these errors were encountered:
I think this is a bug at least.
Consider this example, I have two modules in one project: main_module and asset_module.
main_module have asset_module as a dev dependency like this:
main_module/package.json
Now lets say I'm installing dependencies for production with:
yarn install --production
.Yarn will not include asset_module in node_modules since it's in devDependencies.
However if asset_module is missing the install command fails anyways:
It seems unnecessary that modules that will be ignored have to be there. The scenario where I've encountered this is when using yarn in docker. I don't copy in the dependencies that I don't need so the install command fails.
Please enlighten me if I'm missing a reason to have the module there even if it's not to be installed.
Using Yarn 1.22.11
The text was updated successfully, but these errors were encountered: