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

Remove unused npm dependencies #654

Merged
merged 1 commit into from
Dec 23, 2024
Merged

Remove unused npm dependencies #654

merged 1 commit into from
Dec 23, 2024

Conversation

justinvp
Copy link
Member

It looks like these dependencies aren't actually used anywhere, so stop depending on them.

The motivation for this change is that the dependency on resolve causes errors to be logged in logs during plugin discovery, because the package includes tests that have malformed package.json files. If we don't actually need the dependency it'd be nice to remove it so those errors are no longer logged (so users don't ask us about them).

Also remove read-package-tree since it is deprecated.

Also remove builtin-modules since it doesn't appear to be used either.

Similar to pulumi/pulumi-aws#3238, pulumi/pulumi-aws#4971, pulumi/pulumi-gitlab#786, and pulumi/pulumi-digitalocean#914
Reference: pulumi/pulumi#17578

It looks like these dependencies aren't actually used anywhere, so stop depending on them.

The motivation for this change is that the dependency on `resolve` causes errors to be logged in logs during plugin discovery, because the package includes tests that have malformed `package.json` files. If we don't actually need the dependency it'd be nice to remove it so those errors are no longer logged (so users don't ask us about them).

Also remove `read-package-tree` since it is deprecated.

Also remove `builtin-modules` since it doesn't appear to be used either.
@justinvp justinvp added the impact/no-changelog-required This issue doesn't require a CHANGELOG update label Dec 22, 2024
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

Maintainer note: consult the runbook for dealing with any breaking changes.

Copy link

codecov bot commented Dec 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (7a46755) to head (713d905).
Report is 2 commits behind head on master.

Additional details and impacted files
@@          Coverage Diff           @@
##           master    #654   +/-   ##
======================================
  Coverage    0.00%   0.00%           
======================================
  Files           2       2           
  Lines           4       4           
======================================
  Misses          4       4           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@justinvp justinvp requested a review from a team December 22, 2024 23:30
@justinvp justinvp merged commit 9a4ba30 into master Dec 23, 2024
26 checks passed
@justinvp justinvp deleted the justin/npmdeps branch December 23, 2024 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/no-changelog-required This issue doesn't require a CHANGELOG update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants