From b55ce8aa93cd49c26286ccf7e087ebabfb156965 Mon Sep 17 00:00:00 2001 From: Marcus Schiesser <mail@marcusschiesser.de> Date: Fri, 3 Nov 2023 09:44:52 +0700 Subject: [PATCH] remove bun --- packages/create-llama/README.md | 6 ------ packages/create-llama/helpers/get-pkg-manager.ts | 6 +----- packages/create-llama/index.ts | 11 ----------- 3 files changed, 1 insertion(+), 22 deletions(-) diff --git a/packages/create-llama/README.md b/packages/create-llama/README.md index 368826db0..81b7850b2 100644 --- a/packages/create-llama/README.md +++ b/packages/create-llama/README.md @@ -13,8 +13,6 @@ npx create-llama@latest yarn create llama-app # or pnpm create llama-app -# or -bunx create-llama ``` You will be asked for the name of your project, and then which framework you want to use @@ -50,9 +48,5 @@ Options: Explicitly tell the CLI to bootstrap the app using Yarn - --use-bun - - Explicitly tell the CLI to bootstrap the app using Bun - ``` diff --git a/packages/create-llama/helpers/get-pkg-manager.ts b/packages/create-llama/helpers/get-pkg-manager.ts index acc099f71..0187c88a4 100644 --- a/packages/create-llama/helpers/get-pkg-manager.ts +++ b/packages/create-llama/helpers/get-pkg-manager.ts @@ -1,4 +1,4 @@ -export type PackageManager = "npm" | "pnpm" | "yarn" | "bun"; +export type PackageManager = "npm" | "pnpm" | "yarn"; export function getPkgManager(): PackageManager { const userAgent = process.env.npm_config_user_agent || ""; @@ -11,9 +11,5 @@ export function getPkgManager(): PackageManager { return "pnpm"; } - if (userAgent.startsWith("bun")) { - return "bun"; - } - return "npm"; } diff --git a/packages/create-llama/index.ts b/packages/create-llama/index.ts index 18ee5f5ea..769bb95fa 100644 --- a/packages/create-llama/index.ts +++ b/packages/create-llama/index.ts @@ -65,13 +65,6 @@ const program = new Commander.Command(packageJson.name) ` Explicitly tell the CLI to bootstrap the application using Yarn -`, - ) - .option( - "--use-bun", - ` - - Explicitly tell the CLI to bootstrap the application using Bun `, ) .option( @@ -90,8 +83,6 @@ const packageManager = !!program.useNpm ? "pnpm" : !!program.useYarn ? "yarn" - : !!program.useBun - ? "bun" : getPkgManager(); async function run(): Promise<void> { @@ -361,8 +352,6 @@ async function notifyUpdate(): Promise<void> { ? "yarn global add create-llama" : packageManager === "pnpm" ? "pnpm add -g create-llama" - : packageManager === "bun" - ? "bun add -g create-llama" : "npm i -g create-llama"; console.log( -- GitLab