Skip to content

🎥 Make videos programmatically with React

simpler check

thecmdrunnera5bd0ed9ab28
diff --git a/packages/create-video/src/pkg-managers.ts b/packages/create-video/src/pkg-managers.ts
index 33d9af9475..01f0c1baf6 100644
--- a/packages/create-video/src/pkg-managers.ts
+++ b/packages/create-video/src/pkg-managers.ts
@@ -5,9 +5,7 @@ import type {Template} from './templates';
export type PackageManager = 'npm' | 'yarn' | 'pnpm' | 'bun';
const shouldUseBun = (): boolean => {
- const runtimeBinary = `${process.env?._?.slice(-8)}`;
-
- if (runtimeBinary === '/bin/bun') {
+ if (process.env._?.endsWith('/bin/bun')) {
return true;
}