Skip to content

Commit

Permalink
chore: expand tsconfig coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed May 30, 2024
1 parent c63b340 commit dc8783e
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 11 deletions.
4 changes: 4 additions & 0 deletions packages/amp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,13 @@
"index.d.ts"
],
"scripts": {
"check": "tsc",
"lint": "prettier --check .",
"format": "pnpm lint --write"
},
"devDependencies": {
"typescript": "^5.3.3"
},
"peerDependencies": {
"@sveltejs/kit": "^1.0.0 || ^2.0.0"
}
Expand Down
12 changes: 12 additions & 0 deletions packages/amp/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"noEmit": true,
"strict": true,
"target": "es2022",
"module": "node16",
"moduleResolution": "node16",
"allowSyntheticDefaultImports": true
}
}
6 changes: 5 additions & 1 deletion packages/kit/kit.vitest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ export default defineConfig({
test: {
// shave a couple seconds off the tests
isolate: false,
singleThread: true,
poolOptions: {
threads: {
singleThread: true
}
},
include: ['src/**/*.spec.js'],
exclude: [
'**/node_modules/**',
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"noUnusedParameters": true
},
"include": [
"postinstall.js",
"*.js",
"scripts/**/*",
"src/**/*",
"src/types/**/*",
Expand Down
3 changes: 1 addition & 2 deletions packages/migrate/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@
"module": "node16",
"moduleResolution": "node16",
"allowSyntheticDefaultImports": true
},
"include": ["./migrations/**/*", "./utils.js", "./bin.js"]
}
}
6 changes: 1 addition & 5 deletions packages/package/test/watch/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
import preprocess from 'svelte-preprocess';

export default {
preprocess: preprocess()
};
export default {};
4 changes: 2 additions & 2 deletions packages/package/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"types": ["./types/index"]
}
},
"include": ["src/**/*", "test/index.js", "types/**/*"],
"exclude": ["src/test/fixtures/**/*", "src/test/watch/**/*"]
"include": ["*.js", "src/**/*", "test/index.js", "types/**/*"],
"exclude": ["test/fixtures/**/*"]
}
4 changes: 4 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dc8783e

Please sign in to comment.