@@ -52,7 +52,8 @@ async function run(octokit, context, token) {
52
52
53
53
let yarnLock = await fileExists ( path . resolve ( cwd , 'yarn.lock' ) ) ;
54
54
let pnpmLock = await fileExists ( path . resolve ( cwd , 'pnpm-lock.yaml' ) ) ;
55
- let bunLock = await fileExists ( path . resolve ( cwd , 'bun.lockb' ) ) ;
55
+ let bunLockb = await fileExists ( path . resolve ( cwd , 'bun.lockb' ) ) ;
56
+ let bunLock = await fileExists ( path . resolve ( cwd , 'bun.lock' ) ) ;
56
57
let packageLock = await fileExists ( path . resolve ( cwd , 'package-lock.json' ) ) ;
57
58
58
59
let packageManager = 'npm' ;
@@ -63,7 +64,7 @@ async function run(octokit, context, token) {
63
64
} else if ( pnpmLock ) {
64
65
installScript = 'pnpm install --frozen-lockfile' ;
65
66
packageManager = 'pnpm' ;
66
- } else if ( bunLock ) {
67
+ } else if ( bunLockb || bunLock ) {
67
68
installScript = 'bun install --frozen-lockfile' ;
68
69
packageManager = 'bun' ;
69
70
} else if ( packageLock ) {
@@ -129,7 +130,8 @@ async function run(octokit, context, token) {
129
130
130
131
yarnLock = await fileExists ( path . resolve ( cwd , 'yarn.lock' ) ) ;
131
132
pnpmLock = await fileExists ( path . resolve ( cwd , 'pnpm-lock.yaml' ) ) ;
132
- bunLock = await fileExists ( path . resolve ( cwd , 'bun.lockb' ) ) ;
133
+ bunLockb = await fileExists ( path . resolve ( cwd , 'bun.lockb' ) ) ;
134
+ bunLock = await fileExists ( path . resolve ( cwd , 'bun.lock' ) ) ;
133
135
packageLock = await fileExists ( path . resolve ( cwd , 'package-lock.json' ) ) ;
134
136
135
137
packageManager = 'npm' ;
@@ -140,7 +142,7 @@ async function run(octokit, context, token) {
140
142
} else if ( pnpmLock ) {
141
143
installScript = `pnpm install --frozen-lockfile` ;
142
144
packageManager = `pnpm` ;
143
- } else if ( bunLock ) {
145
+ } else if ( bunLockb || bunLock ) {
144
146
installScript = `bun install --frozen-lockfile` ;
145
147
packageManager = `bun` ;
146
148
} else if ( packageLock ) {
0 commit comments