Skip to content

Commit 0a8ace5

Browse files
committed
fix: bun update dependencies command detection
1 parent 62a39b4 commit 0a8ace5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/utils/dependency.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,15 @@ export const updateDependencies = async () => {
237237
const outdatedDependenciesList: any = await commands.executeCommand('nuxtr.globalState', { name: 'outdatedDependencies' })
238238

239239
const updateCommand: any = {
240-
Yarn: `yarn add`,
241240
NPM: `npm install`,
242-
pnpm: `pnpm install`
241+
Yarn: `yarn add`,
242+
pnpm: `pnpm add`,
243+
Bun: `bun add`,
243244
}
244245

246+
console.log('packageManager', packageManager);
247+
248+
245249
const command = packageManager ? updateCommand[packageManager.name] : updateCommand[defaultPackageManager] !== null ? updateCommand[defaultPackageManager] : updateCommand['NPM']
246250

247251
const items: QuickPickItem[] = outdatedDependenciesList.map((item: any) => {

0 commit comments

Comments
 (0)