We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d84052b commit 5494ed6Copy full SHA for 5494ed6
lib/index.js
@@ -14,10 +14,11 @@ if (files.length === 0) {
14
process.exit(0)
15
}
16
17
-const remainingArgsToForward = args
18
- .slice()
19
- .splice(argsProjectIndex, 2)
20
- .filter(arg => !files.includes(arg))
+const remainingArgsToForward = args.slice().filter(arg => !files.includes(arg))
+
+if (argsProjectIndex !== -1) {
+ remainingArgsToForward.splice(argsProjectIndex, 2)
21
+}
22
23
// Load existing config
24
const tsconfigPath = argsProjectValue || resolveFromRoot('tsconfig.json')
0 commit comments