diff --git a/tsconfig.json b/tsconfig.json index 6ae0c8c..58c84fa 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,8 +8,33 @@ "resolveJsonModule": true, "skipLibCheck": 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 // // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes