mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
feat(nuxi): detect bun
package manager (#22673)
This commit is contained in:
parent
98c17e5d46
commit
08b1950ffb
@ -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:
|
||||
|
@ -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`:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user