Skip to content

Commit de94f5e

Browse files
committed
feat: add skip-install flag to create command
1 parent 6a30f8c commit de94f5e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/actor-core-cli/src/commands/create.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export const create = new Command()
3131
).choices(Object.keys(PLATFORM_NAMES)),
3232
)
3333
.addOption(new Option("-v [version]", "Specify version of actor-core"))
34+
.addOption(new Option("--skip-install", "Skip installing dependencies"))
3435
.action(async (cmdPath, opts) => {
3536
await workflow(
3637
"Bootstrap Actor Core in your project",
@@ -153,9 +154,11 @@ export const create = new Command()
153154
}
154155
});
155156

156-
yield* ctx.task("Install dependencies", async () => {
157-
await $({ cwd: wd })(...platformOptions.cmds.install);
158-
});
157+
if (!opts.skipInstall) {
158+
yield* ctx.task("Install dependencies", async () => {
159+
await $({ cwd: wd })(...platformOptions.cmds.install);
160+
});
161+
}
159162

160163
yield ctx.render(
161164
<>

0 commit comments

Comments
 (0)