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
I'm using Lerna 5.3.0 with Nx enabled and yarn workspace.
My monorepo consists of several web apps, all sharing a common layer (a package call "shared").
And I have this package which requires a npm module which is only supported on windows and MacOS (not linux). So this package cannot be installed on a linux CI/CD.
Is there a way to exclude this package to be bootstraped (i.e. avoid installing its dependencies) when I run yarn install or lerna bootstrap?
I'm deploying to heroku using the heroku/nodejs buildpack, so I have no control on the yarn command and can't use the --ignore-platform option that would probably have made the trick... :(
Any idea to avoid this error while installing a platform specific dependency at bootstrap?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!
I'm using Lerna 5.3.0 with Nx enabled and yarn workspace.
My monorepo consists of several web apps, all sharing a common layer (a package call "shared").
And I have this package which requires a npm module which is only supported on windows and MacOS (not linux). So this package cannot be installed on a linux CI/CD.
Is there a way to exclude this package to be bootstraped (i.e. avoid installing its dependencies) when I run
yarn install
orlerna bootstrap
?I'm deploying to heroku using the
heroku/nodejs
buildpack, so I have no control on the yarn command and can't use the--ignore-platform
option that would probably have made the trick... :(Any idea to avoid this error while installing a platform specific dependency at bootstrap?
Beta Was this translation helpful? Give feedback.
All reactions