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

feat(optimizer): support bun text lockfile #18403

Merged
merged 4 commits into from
Jan 23, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into arnaud/support-bun-lock
  • Loading branch information
patak-dev authored Jan 23, 2025
commit 0b82f640df0c4c3e4c6f174598d6cadd355a9973
14 changes: 12 additions & 2 deletions packages/vite/src/node/optimizer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1205,8 +1205,18 @@ const lockfileFormats = [
checkPatchesDir: false,
manager: 'pnpm',
},
{ path: 'bun.lock', checkPatches: true, manager: 'bun' },
{ path: 'bun.lockb', checkPatches: true, manager: 'bun' },
{
name: 'bun.lock',
path: 'bun.lock',
checkPatchesDir: 'patches',
manager: 'bun',
},
{
name: 'bun.lockb',
path: 'bun.lockb',
checkPatchesDir: 'patches',
manager: 'bun',
},
].sort((_, { manager }) => {
return process.env.npm_config_user_agent?.startsWith(manager) ? 1 : -1
})
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.