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(create-waku): Fix detection of bun using npm_config_user_agent env var #1268

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

hamlim
Copy link
Contributor

@hamlim hamlim commented Feb 25, 2025

I noticed that running bun create waku@latest and bunx create-waku@latest didn't seem to detect bun as the package manager as expected based on my changes in #1229.

However - I was able to verify that both formats should work when I tested with a new dummy package: create-debug-create

bun create debug-create@latest
# and
bunx create-debug-create@latest

will print some things to the console (e.g. process.env, process, etc).

Based on running both of those - it seems like the npm_config_user_agent env var does get populated with bun as expected (not sure how I was testing before where it didn't work - maybe just with running the CLI directly via bun ./cli.mjs?)

Copy link

vercel bot commented Feb 25, 2025

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

1 Skipped Deployment
Name Status Preview Updated (UTC)
waku ⬜️ Ignored (Inspect) Visit Preview Feb 25, 2025 10:02pm

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link
Member

@dai-shi dai-shi left a comment

Choose a reason for hiding this comment

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

LGTM

@dai-shi dai-shi merged commit 7492f71 into wakujs:main Feb 26, 2025
26 checks passed
@dai-shi dai-shi mentioned this pull request Feb 26, 2025
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