This commit is contained in:
Norbert de Langen 2024-07-03 14:51:28 +02:00
parent d6621790ce
commit 9ba5e35dff
5 changed files with 4 additions and 31 deletions

View File

@ -1,6 +1,6 @@
import { getTSFilesAndConfig, getTSProgramAndHost, getTSDiagnostics } from './helpers/typescript';
const tsconfigPath = 'tsconfig.check.json';
const tsconfigPath = 'tsconfig.json';
const { options, fileNames } = getTSFilesAndConfig(tsconfigPath);
const { program, host } = getTSProgramAndHost(fileNames, options);

View File

@ -43,7 +43,7 @@ await Promise.all(
await dts(
i.file,
[...external, ...i.externals],
join(import.meta.dirname, '..', 'tsconfig.build.json')
join(import.meta.dirname, '..', 'tsconfig.json')
);
})
);

View File

@ -1,11 +0,0 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"skipDefaultLibCheck": true,
"moduleResolution": "Bundler",
"rootDir": ".",
"target": "ES2022",
"module": "ES2022"
},
"include": ["src/**/*"]
}

View File

@ -1,10 +0,0 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"skipDefaultLibCheck": true,
"moduleResolution": "Bundler",
"target": "ES2022",
"module": "ES2022"
},
"include": ["src/**/*", "*.d.ts"]
}

View File

@ -1,14 +1,8 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"module": "ES2022",
"moduleResolution": "Bundler",
"paths": {
"@storybook/core/*": ["./src/*"]
},
"skipDefaultLibCheck": true,
"target": "ES2022"
"resolveJsonModule": true,
"module": "ES2022"
},
"include": ["src/**/*", "scripts/**/*", "*.d.ts"]
}