Skip to content

Commit a27f487

Browse files
committed
chore: update to nuxt v4
1 parent b9359ed commit a27f487

File tree

8 files changed

+1807
-1239
lines changed

8 files changed

+1807
-1239
lines changed

eslint.config.mjs

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,12 @@ export default createConfigForNuxt({
1414
'./playground',
1515
],
1616
},
17+
}).append({
18+
rules: {
19+
'vue/multi-word-component-names': 'off',
20+
'vue/max-attributes-per-line': 'off',
21+
'vue/singleline-html-element-content-newline': 'off',
22+
'unicorn/escape-case': 'off',
23+
'no-misleading-character-class': 'off',
24+
},
1725
})
18-
.append(
19-
{
20-
rules: {
21-
'import/consistent-type-specifier-style': 'off',
22-
'vue/multi-word-component-names': 'off',
23-
'vue/max-attributes-per-line': 'off',
24-
'vue/singleline-html-element-content-newline': 'off',
25-
'unicorn/escape-case': 'off',
26-
'no-misleading-character-class': 'off',
27-
},
28-
},
29-
)

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,34 +31,34 @@
3131
],
3232
"scripts": {
3333
"prepack": "nuxt-module-build build",
34-
"dev": "nuxi dev playground",
35-
"dev:build": "nuxi build playground",
36-
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
34+
"dev": "nuxt dev playground",
35+
"dev:build": "nuxt build playground",
36+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground",
3737
"release": "npm run lint && npm run prepack && npm run test && changelogen --release && npm publish && git push --follow-tags",
3838
"lint": "eslint .",
3939
"lint:fix": "eslint . --fix",
4040
"test": "vitest run --reporter=verbose",
41-
"test:types": "vue-tsc --noEmit",
41+
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc -b --noEmit",
4242
"test:watch": "vitest watch"
4343
},
4444
"dependencies": {
45-
"@nuxt/kit": "^3.17.6",
45+
"@nuxt/kit": "^4.0.3",
4646
"defu": "^6.1.4",
4747
"scule": "^1.3.0"
4848
},
4949
"devDependencies": {
5050
"@nuxt/devtools": "^2.6.2",
51-
"@nuxt/eslint-config": "^1.5.2",
52-
"@nuxt/module-builder": "^1.0.1",
53-
"@nuxt/schema": "^3.17.6",
51+
"@nuxt/eslint-config": "^1.8.0",
52+
"@nuxt/module-builder": "^1.0.2",
53+
"@nuxt/schema": "^4.0.3",
5454
"@nuxt/test-utils": "^3.19.2",
55-
"@types/node": "^24.0.12",
55+
"@types/node": "^24.2.0",
5656
"changelogen": "^0.6.2",
57-
"eslint": "^9.30.1",
58-
"nuxt": "^3.17.6",
59-
"typescript": "^5.8.3",
57+
"eslint": "^9.32.0",
58+
"nuxt": "^4.0.3",
59+
"typescript": "^5.9.2",
6060
"vitest": "^3.2.4",
61-
"vue-tsc": "^3.0.1"
61+
"vue-tsc": "^3.0.5"
6262
},
63-
"packageManager": "pnpm@10.12.4"
63+
"packageManager": "pnpm@10.14.0"
6464
}

playground/nuxt.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,5 @@ export default defineNuxtConfig({
7171
},
7272
},
7373
},
74-
compatibilityDate: '2024-06-17',
74+
compatibilityDate: '2025-08-06',
7575
})

playground/tsconfig.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
{
2-
"extends": "./.nuxt/tsconfig.json"
2+
"files": [],
3+
"references": [
4+
{ "path": "./.nuxt/tsconfig.app.json" },
5+
{ "path": "./.nuxt/tsconfig.server.json" },
6+
{ "path": "./.nuxt/tsconfig.shared.json" },
7+
{ "path": "./.nuxt/tsconfig.node.json" }
8+
]
39
}

0 commit comments

Comments
 (0)