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

Fix CLI bundling glob for npm/npx #141

Merged
merged 1 commit into from
Feb 28, 2024
Merged

Fix CLI bundling glob for npm/npx #141

merged 1 commit into from
Feb 28, 2024

Conversation

blomqma
Copy link
Owner

@blomqma blomqma commented Feb 28, 2024

The ESBuild process for the CLI commands
fails when run with npm/npx due to the dependencies being resolved differently than with pnpm, resulting in the dependencies at node_modules folder being resolved by ESBuild when running the CLI commands with npm/npx.

To fix this, the tiny-glob package is replaced with an alternative fast-glob that allows us to explicitly exclude all node_modules files from the globbing output, fixing the issue.

The ESBuild process for the CLI commands
fails when run with npm/npx due to the dependencies
being resolved differently than with pnpm, resulting in
the dependencies at node_modules folder being resolved
by ESBuild when running the CLI commands with npm/npx.

To fix this, the `tiny-glob` package is replaced with an alternative
`fast-glob` that allows us to explicitly exclude all node_modules
files from the globbing output, fixing the issue.
Copy link

vercel bot commented Feb 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-rest-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2024 9:51pm
next-rest-framework-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2024 9:51pm

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.

1 participant