Skip to content

Commit bbbfb63

Browse files
committed
fix restartWith parameter
1 parent b44b0bb commit bbbfb63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rebuild-all.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const args = yargs(process.argv.slice(2))
1010
.help()
1111
.boolean("ci")
1212
.default("ci", false)
13+
.default("restartWith", "")
1314
.describe("ci", "Use npm ci or npm install?")
1415
.argv;
1516

@@ -28,8 +29,7 @@ npm run rebuild-frameworks --restartWith keyed/react
2829
*/
2930
const useCi = args.ci;
3031

31-
const restartBuildingWith = args._.find((arg) => !arg.startsWith("--"));
32-
const restartWithFramework = restartBuildingWith || "";
32+
const restartWithFramework = args.restartWith;
3333

3434
console.log(
3535
"ARGS",

0 commit comments

Comments
 (0)