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