Skip to content
Snippets Groups Projects
Commit 68d81fe2 authored by Marcus Schiesser's avatar Marcus Schiesser
Browse files

remove bun

parent 9ff8f622
No related branches found
No related tags found
No related merge requests found
...@@ -13,8 +13,6 @@ npx create-llama@latest ...@@ -13,8 +13,6 @@ npx create-llama@latest
yarn create llama-app yarn create llama-app
# or # or
pnpm create llama-app 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 You will be asked for the name of your project, and then which framework you want to use
...@@ -50,9 +48,5 @@ Options: ...@@ -50,9 +48,5 @@ Options:
Explicitly tell the CLI to bootstrap the app using Yarn Explicitly tell the CLI to bootstrap the app using Yarn
--use-bun
Explicitly tell the CLI to bootstrap the app using Bun
``` ```
export type PackageManager = "npm" | "pnpm" | "yarn" | "bun"; export type PackageManager = "npm" | "pnpm" | "yarn";
export function getPkgManager(): PackageManager { export function getPkgManager(): PackageManager {
const userAgent = process.env.npm_config_user_agent || ""; const userAgent = process.env.npm_config_user_agent || "";
...@@ -11,9 +11,5 @@ export function getPkgManager(): PackageManager { ...@@ -11,9 +11,5 @@ export function getPkgManager(): PackageManager {
return "pnpm"; return "pnpm";
} }
if (userAgent.startsWith("bun")) {
return "bun";
}
return "npm"; return "npm";
} }
...@@ -65,13 +65,6 @@ const program = new Commander.Command(packageJson.name) ...@@ -65,13 +65,6 @@ const program = new Commander.Command(packageJson.name)
` `
Explicitly tell the CLI to bootstrap the application using Yarn Explicitly tell the CLI to bootstrap the application using Yarn
`,
)
.option(
"--use-bun",
`
Explicitly tell the CLI to bootstrap the application using Bun
`, `,
) )
.option( .option(
...@@ -90,8 +83,6 @@ const packageManager = !!program.useNpm ...@@ -90,8 +83,6 @@ const packageManager = !!program.useNpm
? "pnpm" ? "pnpm"
: !!program.useYarn : !!program.useYarn
? "yarn" ? "yarn"
: !!program.useBun
? "bun"
: getPkgManager(); : getPkgManager();
async function run(): Promise<void> { async function run(): Promise<void> {
...@@ -361,8 +352,6 @@ async function notifyUpdate(): Promise<void> { ...@@ -361,8 +352,6 @@ async function notifyUpdate(): Promise<void> {
? "yarn global add create-llama" ? "yarn global add create-llama"
: packageManager === "pnpm" : packageManager === "pnpm"
? "pnpm add -g create-llama" ? "pnpm add -g create-llama"
: packageManager === "bun"
? "bun add -g create-llama"
: "npm i -g create-llama"; : "npm i -g create-llama";
console.log( console.log(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment