feat(nuxi): detect bun package manager (#22673)

This commit is contained in:
Colin McDonnell 2023-08-16 23:30:28 -07:00 committed by GitHub
parent 98c17e5d46
commit 08b1950ffb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 1 deletions

View File

@ -59,6 +59,10 @@ npx nuxi@latest init <project-name>
pnpm dlx nuxi@latest init <project-name>
```
```bash [bun]
bunx nuxi@latest init <project-name>
```
::
Open your project folder in Visual Studio Code:

View File

@ -38,6 +38,10 @@ Install the `@nuxt/content` module in your project:
pnpm add -D @nuxt/content
```
```bash [bun]
bun add -D @nuxt/content
```
::
Then, add `@nuxt/content` to the `modules` section of `nuxt.config.ts`:

View File

@ -6,7 +6,8 @@ import { findup } from './fs'
export const packageManagerLocks = {
yarn: 'yarn.lock',
npm: 'package-lock.json',
pnpm: 'pnpm-lock.yaml'
pnpm: 'pnpm-lock.yaml',
bun: 'bun.lockb'
}
type PackageManager = keyof typeof packageManagerLocks