-
Notifications
You must be signed in to change notification settings - Fork 5
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
Consider peerDependencies for provider SDK to Pulumi Core SDK dependency in Node #1240
Comments
Prior art: pulumi/pulumi#3090 |
What are peerDependencies: https://nodejs.org/en/blog/npm/peer-dependencies Sounds like a big con would be that manual intervention would have to happen on npm install if the dependency doesn't exist? |
Was just jotting this down from standup convo, I need to read up on peerDependencies. Some more context why this came up is that in pulumi/pulumi-aws-apigateway#178 YARN linked two versions of '@pulumi/pulumi |
Yeah the article explains it well I think. The suggestion here would be to treat However @flostadler mentioned that moving from a direct dependency to a peer dependency is a breaking change, though I've not figured out why yet. |
New related failure: https://github.com/pulumi/pulumi-service/pull/24879 Here two copies of This presumably would not happen if https://github.com/pulumi/pulumi-awsx/blob/1cb31f94c5af15eb25bfeb77e17aef8d7f6dc09d/awsx/package.json#L27 was a peerDependency instead of a direct dependency. |
Going from:
https://github.com/pulumi/pulumi-aws/blob/master/sdk/nodejs/package.json#L16C5-L16C38
To a peerDependency.
TBD. pro/con? Is it breaking (likely yes).
The text was updated successfully, but these errors were encountered: