Skip to content

Commit cc094f0

Browse files
authored
feat: prefer lenient config in ts checker (#82)
1 parent 7160067 commit cc094f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/rspack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ module.exports = (webpackEnv, argv) => {
447447
// Build the repo and type-check
448448
build: true,
449449
mode: 'write-references',
450-
configFile: path.join(workspacePath, 'tsconfig.json'),
450+
configFile: fs.existsSync(path.join(workspacePath, 'tsconfig.lenient.json')) ? path.join(workspacePath, 'tsconfig.lenient.json') : path.join(workspacePath, 'tsconfig.json'),
451451
},
452452
}),
453453
].filter(Boolean),

0 commit comments

Comments
 (0)