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

build: replace Yarn/Vitest with Bun #121

Merged
merged 9 commits into from
Apr 18, 2024
Merged

build: replace Yarn/Vitest with Bun #121

merged 9 commits into from
Apr 18, 2024

Conversation

metonym
Copy link
Collaborator

@metonym metonym commented Apr 6, 2024

This PR replaces the Yarn package manager and Vitest test runner with Bun. Changes are separated by commit.

Observations

  • bun install is significantly faster than yarn install without cache
    • bun install without cache is on par if not faster than restoring the Yarn cache
  • bun test is faster
  • test-e2e.js can be converted to TypeScript since the Bun runtime can execute TS
  • Bun-specific APIs like Glob and shell $ improve the DX and remove the need for third-party libraries

@metonym metonym force-pushed the bun branch 6 times, most recently from 6283409 to 59a77c7 Compare April 7, 2024 00:42
@metonym metonym changed the title build: replace Yarn with Bun build: replace Yarn/Vitest with Bun Apr 7, 2024
@metonym metonym force-pushed the bun branch 6 times, most recently from ecdcda7 to da31dfa Compare April 8, 2024 16:53
@metonym metonym force-pushed the bun branch 2 times, most recently from b0b042b to 9e05478 Compare April 8, 2024 22:31
@metonym metonym force-pushed the bun branch 3 times, most recently from 7a13f7e to f5a65ee Compare April 8, 2024 23:49
@metonym metonym force-pushed the bun branch 9 times, most recently from 0765426 to a20a992 Compare April 11, 2024 00:42
@metonym metonym force-pushed the bun branch 3 times, most recently from da2490a to 5f812e0 Compare April 11, 2024 02:36
metonym added 6 commits April 17, 2024 18:00
* For this project, it's faster to Bun install without a cache than to restore a cache using Yarn.
* For the publish workflow, we still need the `setup-node` action. It uses the npm CLI to publish the package to NPM with provenance.
@metonym metonym merged commit 223c24e into main Apr 18, 2024
4 checks passed
@metonym metonym deleted the bun branch April 18, 2024 20:02
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