Skip to content

Commit 79ea19e

Browse files
committed
fix: bun and pnpm build
1 parent af16045 commit 79ea19e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ function detectPackageManager() {
9090

9191
switch (pkgManager) {
9292
case 'yarn': return { name: 'yarn', install: 'yarn', run: 'yarn' } as const;
93-
case 'pnpm': return { name: 'pnpm', install: 'pnpm install', run: 'pnpm exec' } as const;
94-
case 'bun': return { name: 'bun', install: 'bun install', run: 'bun x' } as const;
93+
case 'pnpm': return { name: 'pnpm', install: 'pnpm install', run: 'pnpm run' } as const;
94+
case 'bun': return { name: 'bun', install: 'bun install', run: 'bun run' } as const;
9595
default: return { name: 'npm', install: 'npm install', run: 'npm run' } as const;
9696
}
9797
}

0 commit comments

Comments
 (0)