Skip to content

Commit 73616c9

Browse files
authored
fix(cli): switch to @nuxt/cli (#1214)
1 parent 82e8dd7 commit 73616c9

File tree

4 files changed

+21
-76
lines changed

4 files changed

+21
-76
lines changed

cli/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function createCLI(opts: CLIOptions) {
3131
throw new Error('Invalid template')
3232
}
3333

34-
const { runCommand } = await import('nuxi')
34+
const { runCommand } = await import('@nuxt/cli')
3535
await runCommand('init', [dir, '-t', `gh:nuxt-content/docus/.starters/${template}`])
3636
},
3737
})

cli/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
"dev": "tsx ./main.ts"
2121
},
2222
"dependencies": {
23+
"@nuxt/cli": "3.28.0",
2324
"@nuxt/kit": "^4.2.1",
2425
"c12": "^3.3.2",
2526
"citty": "^0.1.6",
2627
"defu": "^6.1.4",
27-
"nuxi": "3.28.0",
2828
"scule": "^1.3.0",
2929
"ufo": "^1.6.1",
3030
"unctx": "^2.4.1"
@@ -34,8 +34,5 @@
3434
"tsup": "^8.5.1",
3535
"tsx": "^4.20.6"
3636
},
37-
"resolutions": {
38-
"nuxi": "3.28.0"
39-
},
4037
"packageManager": "[email protected]"
4138
}

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,5 @@
3030
"typescript": "^5.9.3",
3131
"vue-tsc": "^3.1.4"
3232
},
33-
"resolutions": {
34-
"nuxi": "3.28.0"
35-
},
3633
"packageManager": "[email protected]"
3734
}

pnpm-lock.yaml

Lines changed: 19 additions & 68 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)