Skip to content

Commit 1299ddf

Browse files
committed
add extra tsconfig for vite
1 parent 53619a3 commit 1299ddf

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

packages/nuxt/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = {
77
{
88
files: ['vite.config.ts'],
99
parserOptions: {
10-
project: ['tsconfig.json'],
10+
project: ['tsconfig.vite.json'],
1111
},
1212
},
1313
],

packages/nuxt/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "../../tsconfig.json",
33

4-
"include": ["src/**/*", "build.config.ts", "vite.config.ts"],
4+
"include": ["src/**/*", "build.config.ts"],
55

66
"compilerOptions": {
77
// package-specific options

packages/nuxt/tsconfig.vite.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
4+
"include": ["vite.config.ts"],
5+
6+
"compilerOptions": {
7+
"types": ["node"]
8+
}
9+
}

0 commit comments

Comments
 (0)