Skip to content

Commit 7499dd3

Browse files
committed
fix: spread args to mono-repo
1 parent 5fd64c4 commit 7499dd3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/commands/external.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class ExternalCommand {
6060
if (!pkgLoc) {
6161
pkgLoc = await ExternalCommand.promptInstallation(scopeName, name);
6262
}
63-
return pkgLoc ? require(pkgLoc).default(args) : null;
63+
return pkgLoc ? require(pkgLoc).default(...args) : null;
6464
}
6565
}
6666

packages/init/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const AUTO_PREFIX = "--auto";
1616
*/
1717

1818
export default function initializeInquirer(...args: string[]): Function | void {
19-
const packages = args.slice(3);
19+
const packages = args;
2020
const includesDefaultPrefix = packages.includes(AUTO_PREFIX);
2121
if (packages.length === 0 || includesDefaultPrefix) {
2222
return modifyConfigHelper("init", defaultGenerator, null, null, includesDefaultPrefix);

packages/migrate/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ function runMigration(currentConfigPath: string, outputConfigPath: string): Prom
181181
*/
182182

183183
export default function migrate(...args: string[]): void | Promise<void> {
184-
const filePaths = args.slice(3);
184+
const filePaths = args;
185185
if (!filePaths.length) {
186186
const errMsg = "\n ✖ Please specify a path to your webpack config \n ";
187187
console.error(chalk.red(errMsg));

0 commit comments

Comments
 (0)