We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c01619f commit e5c78eaCopy full SHA for e5c78ea
cli.js
@@ -26,6 +26,8 @@ const argsProjectIndex = args.findIndex(arg =>
26
const argsProjectValue =
27
argsProjectIndex !== -1 ? args[argsProjectIndex + 1] : undefined
28
29
+const argsLeaveIncludesUntouched = args.findIndex(arg => ['-i'].includes(arg))
30
+
31
const files = args.filter(file => /\.(ts|tsx)$/.test(file))
32
if (files.length === 0) {
33
process.exit(0)
@@ -53,7 +55,7 @@ const tmpTsconfig = {
53
55
skipLibCheck: true,
54
56
},
57
files,
- include: [],
58
+ ...(argsLeaveIncludesUntouched ? {} : { includes: [] }),
59
}
60
fs.writeFileSync(tmpTsconfigPath, JSON.stringify(tmpTsconfig, null, 2))
61
0 commit comments