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

refactor!: improve resolving and install size #213

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Jan 28, 2025

This PR reduces install size by replacing mlly resolver with import.meta.resolve -- which is a breaking change in terms of Node.js runtime support but ~ behavior

(mlly, has 1.2mb install size, and while powerful for build-time tooling, in the low-level dep chain like nypm > pkg-types is little oversized and it can grow with unjs/mlly#219)

--

This PR also includes unrelated change to improve findWorkspaceDir behavior:

  • Git directory is looked down similar to lockfile (so we don't wrongly detect sub-modules
  • Fixed lookup for package.json

src/index.ts Show resolved Hide resolved
@pi0 pi0 changed the title refactor: improve resolving and less install size refactor!: improve resolving and install size Jan 28, 2025
@pi0 pi0 requested review from danielroe and antfu January 28, 2025 11:45
@antfu
Copy link
Member

antfu commented Jan 28, 2025

Great, thanks!

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.

2 participants