Skip to content

Conversation

@arrudaricardo
Copy link

@arrudaricardo arrudaricardo commented Jul 15, 2025

Description

add support for bun catalog

Linked Issues

#190

@xinyao27
Copy link

I use both bun and taze, and I really need this feature

return loadPnpmWorkspace(relative, options, shouldUpdate)
if (relative === 'package.json' && options.cwd) {
// Check if this is a bun workspace root by looking for bun.lockb
const bunLockPath = join(options.cwd, 'bun.lockb')

Choose a reason for hiding this comment

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

Bun has transitioned to using a non-binary lockfile by default, while maintaining support for the binary format. IMO, we should be detecting them both, maybe by iterating over an array like:

let isBunProject = false;
for (const lockfile of ['bun.lockb', 'bun.lock']) {
  const bunLockPath = join(options.cwd, 'bun.lockb');
  isBunProject ||= existsSync(bunLockPath);
}
...

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.

3 participants