Skip to content
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

[rush] Add support for PNPM's --strict-peer-dependencies feature #817

Merged
merged 5 commits into from
Sep 7, 2018

Conversation

octogonz
Copy link
Collaborator

@octogonz octogonz commented Sep 7, 2018

We recently got broken again by unsatisfied peer dependencies. PNPM prints a warning, but everyone ignored this warning because it was buried under a bunch of other warnings.

The GitHub issue pnpm/pnpm#1142 was resolved in PNPM 2.15.0. This PR adds a Rush configuration option to enable this feature.

To enable this validation in your repo, add this to your rush.json file:

  "pnpmOptions": {
    "strictPeerDependencies": true
  },

Copy link
Member

@iclanton iclanton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

// @public
class PnpmOptionsConfiguration {
// WARNING: The type "IPnpmOptionsJson" needs to be exported by the package (e.g. added to index.ts)
// @internal
Copy link
Contributor

@nickpape nickpape Sep 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

internal [](start = 6, length = 8)

@Private ? #WontFix

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. But this is an API Extractor feature request that's out of scope for this PR.


In reply to: 216065927 [](ancestors = 216065927)

Copy link
Contributor

@nickpape nickpape left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@octogonz octogonz changed the title Add support for PNPM's --strict-peer-dependencies feature [rush] Add support for PNPM's --strict-peer-dependencies feature Sep 7, 2018
@octogonz
Copy link
Collaborator Author

octogonz commented Sep 7, 2018

@patmill FYI

Copy link
Contributor

@nickpape nickpape left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕐

@octogonz octogonz force-pushed the pgonzal/pnpm-strict-peers branch from eead140 to fe57944 Compare September 7, 2018 21:58
@octogonz
Copy link
Collaborator Author

octogonz commented Sep 7, 2018

:shipit:

Approved with PullApprove Approved with PullApprove

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants