tsconfig, specifying compiler options to fix import issues, including paths

This commit is contained in:
matthieu42morin 2024-03-19 22:19:52 +01:00
parent a829327c28
commit 758ab0aeae
1 changed files with 27 additions and 2 deletions

View File

@ -8,8 +8,33 @@
"resolveJsonModule": true, "resolveJsonModule": true,
"skipLibCheck": true, "skipLibCheck": true,
"sourceMap": true, "sourceMap": true,
"strict": true "strict": true,
} // custom compiler options
"noEmit": true,
"target": "ES2018",
"module": "ES2022",
"moduleResolution": "Bundler",
"allowSyntheticDefaultImports": true,
"paths": {
"$root/*": ["/*"],
"$src/*": ["src/*"],
"$lib/*": ["src/lib/*"],
"$routes/*": ["src/routes/*"],
}
},
"include": [
"./scripts/**/*",
"./test/*.js",
"./*.js",
"./src/**/*.d.ts",
"./src/**/*.js",
"./src/**/*.svelte",
"./src/**/*.ts",
".svelte-kit/ambient.d.ts",
".svelte-kit/types/**/$types.d.ts",
"./csp-directives.ts"
],
"exclude": ["node_modules/*"]
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
// //
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes