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
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
```
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";
}
......@@ -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(
......
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