-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix!: use bun as package manager when bun.lock is found (#5962)
BREAKING CHANGE: packageManager.lockFile field containing single name of lock file is removed from output and packageManager.lockFiles field with array of possible lock files is introduced
- Loading branch information
Showing
6 changed files
with
33 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,6 +110,16 @@ test('should use bun if there is a bun.lockb in the root', async ({ fs }) => { | |
expect(pkgManager?.name).toBe('bun') | ||
}) | ||
|
||
test('should use bun if there is a bun.lock in the root', async ({ fs }) => { | ||
const cwd = mockFileSystem({ | ||
'package.json': '{}', | ||
'bun.lock': '', | ||
}) | ||
const project = new Project(fs, cwd) | ||
const pkgManager = await detectPackageManager(project) | ||
expect(pkgManager?.name).toBe('bun') | ||
}) | ||
|
||
test('should use the `packageManager` property to detect yarn', async ({ fs }) => { | ||
const cwd = mockFileSystem({ | ||
'package.json': JSON.stringify({ packageManager: '[email protected]' }), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters