Skip to content

Commit 780ad9e

Browse files
committed
Replace extends with contents
When running pre-commit, we cannot resolve the import
1 parent 71aa341 commit 780ad9e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pyscriptjs/tsconfig.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
2-
"extends": "@tsconfig/svelte/tsconfig.json",
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"display": "Svelte",
4+
"_version": "3.0.0",
35

46
"include": ["src/**/*"],
57
"exclude": ["node_modules/*", "__sapper__/*", "public/*"],
@@ -21,6 +23,12 @@
2123
/** Requests the runtime types from the svelte modules by default. Needed for TS files or else you get errors. */
2224
"types": ["svelte"],
2325

26+
/**
27+
TypeScript doesn't know about import usages in the template because it only sees the
28+
script of a Svelte file. Therefore preserve all value imports. Requires TS 4.5 or higher.
29+
*/
30+
"preserveValueImports": true,
31+
2432
"strict": false,
2533
"esModuleInterop": true,
2634
"skipLibCheck": true,

0 commit comments

Comments
 (0)