Skip to content

Commit dd40b46

Browse files
authored
build(sveltekit): Remove vite types from build output (#7480)
1 parent 3715ae7 commit dd40b46

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

packages/sveltekit/.eslintrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ module.exports = {
1111
'import/no-unresolved': 'off',
1212
},
1313
},
14+
{
15+
files: ['vite.config.ts'],
16+
parserOptions: {
17+
project: ['tsconfig.test.json'],
18+
},
19+
},
1420
],
1521
extends: ['../../.eslintrc.js'],
1622
};

packages/sveltekit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"lint:eslint": "eslint . --format stylish",
6464
"lint:prettier": "prettier --check \"{src,test,scripts}/**/**.ts\"",
6565
"test": "yarn test:unit",
66-
"test:unit": "vitest",
66+
"test:unit": "vitest run",
6767
"test:watch": "vitest --watch"
6868
},
6969
"volta": {

packages/sveltekit/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/**/*", "vite.config.ts"],
4+
"include": ["src/**/*"],
55

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

packages/sveltekit/tsconfig.test.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": ["test/**/*"],
4+
"include": ["test/**/*", "vite.config.ts"],
55

66
"compilerOptions": {
77
// should include all types from `./tsconfig.json` plus types for all test frameworks used

0 commit comments

Comments
 (0)