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

feat: pnpm.ignoredOptionalDependencies #7714

Merged
merged 16 commits into from Feb 28, 2024
Merged

Conversation

KSXGitHub
Copy link
Contributor

@KSXGitHub KSXGitHub commented Feb 27, 2024

No description provided.

@KSXGitHub KSXGitHub marked this pull request as ready for review February 27, 2024 19:46
Copy link
Member

Choose a reason for hiding this comment

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

This test should be moved to core too.


function removeOptionalDependencies<Manifest extends BaseManifest> (manifest: Manifest, toBeRemoved: string[]): Manifest {
for (const optionalDependency in manifest.optionalDependencies) {
if (toBeRemoved.includes(optionalDependency)) {
Copy link
Member

Choose a reason for hiding this comment

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

probably we need to support pattern matching. Same way like here:

const ignoreMissingMatcher = createMatcher(ignoreMissingPatterns)

@zkochan zkochan enabled auto-merge (squash) February 28, 2024 13:38
@zkochan zkochan merged commit 730929e into main Feb 28, 2024
14 checks passed
@zkochan zkochan deleted the ignored-optional-dependencies branch February 28, 2024 13:46
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.

None yet

2 participants