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
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/pulumiinto the provider build which made if fail with a very obscure error. We're going to solve this withyarn deduplicate` but it was suggested that peerDependencies could be another way.
Yeah the article explains it well I think. The suggestion here would be to treat @pulumi/aws SDK as a "plugin" that requests to be used with a certain range of @pulumi/pulumi versions by a peer dependency but not actually depend on it directly to avoid grabbing its own copy. So if that were done, the issue with pulumi-aws-apigateway having two copies of @pulumi/pulumi would not have occurred.
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.
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: