-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in a yarn-monorepo, dependencySatisfies
is always true when referencing packages in the monorepo
#1067
Comments
We are following what NPM does here. But I agree that what NPM does is terrible. I'm OK with adding strictness here. It's a pretty trivial code change. In these two places:
Before we do |
I don't think we can close this because the core issue still exists -- the result is different though. |
This isn't supported, on purpose. What are you actually trying to do? |
automate config of dependencies so app devs who don't know the details of what they're doing don't have a potential foot gun. In the file that is actually trying to do the however |
example dep tree:
in dep-base, I have:
The intent is to,
app-a
, have the macroCondition for dep-optional-a be true, and dep-optional-b be falseapp-b
, have the macroCondition for dep-optional-b be true, and dep-optional-a be falseHowever, what is happening is that all macroConditions are always true, as I get
Cannot find module "dep-optional-b" imported from (require)
(in app-a, for example)I would not expect that these conditions would be true, because, for example: app-a, dep-optional-b should not at all be in the dependency tree.
The text was updated successfully, but these errors were encountered: