Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit 71dbd10

Browse files
committed
feat: add skip-install flag to create command (#673)
1 parent 44d1f7b commit 71dbd10

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

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

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,17 @@ 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(action);
3536

3637
export async function action(
3738
cmdPath: string,
38-
opts: { platform?: string; template?: string; version?: string },
39+
opts: {
40+
platform?: string;
41+
template?: string;
42+
version?: string;
43+
skipInstall?: boolean;
44+
} = {},
3945
) {
4046
await workflow("Bootstrap Actor Core in your project", async function* (ctx) {
4147
const wd =
@@ -153,9 +159,11 @@ export async function action(
153159
}
154160
});
155161

156-
yield* ctx.task("Install dependencies", async () => {
157-
await $({ cwd: wd })(...platformOptions.cmds.install);
158-
});
162+
if (!opts.skipInstall) {
163+
yield* ctx.task("Install dependencies", async () => {
164+
await $({ cwd: wd })(...platformOptions.cmds.install);
165+
});
166+
}
159167

160168
yield ctx.render(
161169
<>

0 commit comments

Comments
 (0)