Skip to content

Commit

Permalink
build(sveltekit): Remove vite types from build output (#7480)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lms24 committed Mar 16, 2023
1 parent 3715ae7 commit dd40b46
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions packages/sveltekit/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ module.exports = {
'import/no-unresolved': 'off',
},
},
{
files: ['vite.config.ts'],
parserOptions: {
project: ['tsconfig.test.json'],
},
},
],
extends: ['../../.eslintrc.js'],
};
2 changes: 1 addition & 1 deletion packages/sveltekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"lint:eslint": "eslint . --format stylish",
"lint:prettier": "prettier --check \"{src,test,scripts}/**/**.ts\"",
"test": "yarn test:unit",
"test:unit": "vitest",
"test:unit": "vitest run",
"test:watch": "vitest --watch"
},
"volta": {
Expand Down
2 changes: 1 addition & 1 deletion packages/sveltekit/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.json",

"include": ["src/**/*", "vite.config.ts"],
"include": ["src/**/*"],

"compilerOptions": {
// package-specific options
Expand Down
2 changes: 1 addition & 1 deletion packages/sveltekit/tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.json",

"include": ["test/**/*"],
"include": ["test/**/*", "vite.config.ts"],

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

0 comments on commit dd40b46

Please sign in to comment.