Skip to content

chore: remove pkg-up dependency#169

Open
innerdvations wants to merge 1 commit into
mainfrom
chore/remove-pkg-up
Open

chore: remove pkg-up dependency#169
innerdvations wants to merge 1 commit into
mainfrom
chore/remove-pkg-up

Conversation

@innerdvations
Copy link
Copy Markdown
Collaborator

@innerdvations innerdvations commented May 29, 2026

Summary

  • Remove the deprecated pkg-up dependency and inline the same package.json lookup in a small findPackageJson helper
  • Update loadPkg call sites in pkg.ts and pkg-loader.ts to use the helper

This supersedes #159. Upgrading pkg-up to v5 is not worthwhile: the package is deprecated in favour of package-up, v5 is ESM-only, and the CLI only needed its trivial "walk up to find package.json" behaviour.

User impact

No breaking change for plugin authors. This is an internal dependency removal with identical runtime behaviour.

Related issue(s)/PR(s)

Fixes CMS-1100

Test plan

  • pnpm check passes locally (lint, typecheck, unit tests)
  • CI green on Node 22/24/26

pkg-up is deprecated and its v5 release is ESM-only, which complicates
the CJS CLI entrypoint and Jest on Node 22. Inline the same lookup
behaviour instead of upgrading the dependency.
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 29, 2026

⚠️ No Changeset found

Latest commit: 2e68b3f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@sonarqubecloud
Copy link
Copy Markdown

@innerdvations innerdvations requested a review from jhoward1994 May 29, 2026 14:35
@innerdvations innerdvations added the pr: chore Cleanups / dependencies / tooling / styling label May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: chore Cleanups / dependencies / tooling / styling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant