-
-
Notifications
You must be signed in to change notification settings - Fork 406
Experiment: use Bun as package manager and script runner #4350
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
base: main
Are you sure you want to change the base?
Conversation
|
|
A global override might work too. If we add more packages that depend on Ariakit, we'll probably want to do the same for them. |
Code 0 means success, there's no error. It's just a log by Bun, probably because of the use of |
Yes, it was just strange that it was reported as an error: |
|
Right, I guess it is being outputed to stderr. Weird thing is I don't see it locally. Well, if it works, I guess it's fine. Re:override, can you think of a small change I can make in the source to produce a test error for the wp package? The goal is to have a way to verify that it's being run with the local version and not one from npm. I have a theory that it might not be necessary at all, because it should already be using the |
|
Doesn't look like the Codesandbox CI supports Bun at all (inferred from what I've seen in the docs, there's no way to install it). Might be better to just remove it. The stackblitz alternative depends on your own CI so it should be much easier to use. Maybe I'll try to get that done in a separate PR before merging this one. |
|
Huh, did you delete your last comment with the trick to make tests fail? @diegohaz I reloaded the issue and it's gone now. |
|
Good news, seems like the override is entirely unnecessary. I used your trick to test. I'm gonna wait for CI to pass and then push a commit with the trick to verify that CI behavior is the same. But I think we're in the clear with that. Remaining:
|
Sorry, that information wasn't accurate. If This should make If this is correct, it will become a problem if Ariakit |
|
Could it be replicated if I manually set the local version to 0.5 temporarily? |
|
I think it's easier if you install a version of |
|
I'll leave figuring this out to you if you don't mind. I'm not aware of all the constrains here. |
|
Here's how you can check if
You can remove the |
|
Update: migrated anyway, seems to work fine. |
|
Blocked by oven-sh/bun#17192 |



Just experimenting with Bun to see what's possible. This removes lerna as it's no longer necessary.
Tested:
buninstead ofnpm(e.g.bun lint-fixUntested:
To do still:
@wordpress/componentsthingFuture ideas:
bun test