diff --git a/tsconfig.json b/tsconfig.json index 0988bf8aa..4ec0bfc31 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,14 +2,15 @@ "compilerOptions": { "paths": { // Allow `import('$:/core/modules/...')` instead of `import('../../core/modules/...')`. Only works inside this project. - "$:/core/*": ["./core/*"] + "$:/core/*": ["core/*"] }, + "baseUrl": ".", + "rootDir": ".", "noImplicitAny": false, "strict": false, - "allowJs": true, - "allowSyntheticDefaultImports": true, "checkJs": true, + "allowSyntheticDefaultImports": true, "declaration": true, "declarationDir": "types/generated", "declarationMap": true, @@ -17,7 +18,6 @@ "lib": ["ES2020", "DOM", "DOM.Iterable"], "module": "Node16", "outDir": "types/generated", - "rootDir": ".", "skipLibCheck": true, "target": "ESNext" }, diff --git a/types/tsconfig.json b/types/tsconfig.json new file mode 100644 index 000000000..b98460aff --- /dev/null +++ b/types/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "paths": { + // Allow `import('$:/core/modules/...')` instead of `import('../../core/modules/...')`. Only works inside this project. + "$:/core/*": ["core/*"] + }, + "baseUrl": "./generated", + "rootDir": "./generated", + "noEmit": true, + "noImplicitAny": false, + "allowSyntheticDefaultImports": true, + "declaration": true, + "declarationDir": "types/generated", + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "module": "Node16", + "skipLibCheck": true, + "target": "ESNext" + }, + "include": ["./generated/**/*.d.ts"] +}