Skip to content

Commit 846ebd5

Browse files
committed
fix(preview): declare serve as an optional peer dependency
1 parent ffc9d73 commit 846ebd5

4 files changed

Lines changed: 429 additions & 3 deletions

File tree

packages/nuxi/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const _main = defineCommand({
5454
setupGlobalConsole({ dev: command === 'dev' })
5555
debug(`Running \`nuxt ${command}\` command`)
5656

57-
// Check Node.js version and CLI updates in background
57+
// Check Node.js version in background
5858
let backgroundTasks: Promise<any> | undefined
5959
if (command !== '_dev' && provider !== 'stackblitz') {
6060
backgroundTasks = Promise.all([

packages/nuxt-cli/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,15 @@
3333
"prepack": "tsdown"
3434
},
3535
"peerDependencies": {
36-
"@nuxt/schema": "^4.4.6"
36+
"@nuxt/schema": "^4.4.6",
37+
"serve": "^14.0.0"
3738
},
3839
"peerDependenciesMeta": {
3940
"@nuxt/schema": {
4041
"optional": true
42+
},
43+
"serve": {
44+
"optional": true
4145
}
4246
},
4347
"dependencies": {

packages/nuxt-cli/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const _main = defineCommand({
4242
const command = ctx.args._[0]
4343
setupGlobalConsole({ dev: command === 'dev' })
4444

45-
// Check Node.js version and CLI updates in background
45+
// Check Node.js version in background
4646
let backgroundTasks: Promise<any> | undefined
4747
if (command !== '_dev' && provider !== 'stackblitz') {
4848
backgroundTasks = Promise.all([

0 commit comments

Comments
 (0)