FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chore: use `nuxt` cli command in preference to `nuxi` · nuxt/test-utils@838ed8b · GitHub

Commit 838ed8b

Browse files
committed
chore: use nuxt cli command in preference to nuxi
1 parent 92c8c90 commit 838ed8b

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎examples/app-vitest-full/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"preview": "nuxt preview",
1111
"test:dev": "nuxt dev --no-fork",
1212
"test:unit": "vitest",
13-
"test:types": "nuxi prepare && vue-tsc --noEmit",
13+
"test:types": "nuxt prepare && vue-tsc --noEmit",
1414
"test:jsdom": "VITEST_DOM_ENV=jsdom pnpm test:unit --run",
1515
"test:happy-dom": "VITEST_DOM_ENV=happy-dom pnpm test:unit --run",
1616
"test": "pnpm test:happy-dom && pnpm test:jsdom && pnpm test:dev && pnpm test:types"

‎examples/module/package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
],
2525
"scripts": {
2626
"prepack": "nuxt-module-build build",
27-
"dev": "nuxi dev playground",
28-
"dev:build": "nuxi build playground",
29-
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
27+
"dev": "nuxt dev playground",
28+
"dev:build": "nuxt build playground",
29+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground",
3030
"test": "vitest run",
3131
"test:watch": "vitest watch"
3232
},

‎examples/module/playground/package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"name": "example-module-playground",
44
"type": "module",
55
"scripts": {
6-
"dev": "nuxi dev",
7-
"build": "nuxi build",
8-
"generate": "nuxi generate"
6+
"dev": "nuxt dev",
7+
"build": "nuxt build",
8+
"generate": "nuxt generate"
99
},
1010
"devDependencies": {
1111
"nuxt": "4.2.2"

‎src/utils.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export async function loadKit(rootDir: string): Promise<typeof import('@nuxt/kit
7373
catch (e: any) {
7474
if (e.toString().includes('Cannot find module \'@nuxt/kit\'')) {
7575
throw new Error(
76-
'nuxi requires `@nuxt/kit` to be installed in your project. Try installing `nuxt` v3+ or `@nuxt/bridge` first.',
76+
'`@nuxt/test-utils` requires `@nuxt/kit` to be installed in your project. Try installing `nuxt` v3+ or `@nuxt/bridge` first.',
7777
)
7878
}
7979
throw e

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL