Skip to content

Commit 780148f

Browse files
authored
fix(bot): use npx --yes in bootstrap command (#41)
1 parent de0f380 commit 780148f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/__tests__/bot-commands.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ describe("bot messages", () => {
4141
it("createdMessage uses English bootstrap copy", () => {
4242
const message = createdMessage(
4343
"demo-app",
44-
"npx @spawn-dock/create --token pair_demo",
44+
"npx -y @spawn-dock/create --token pair_demo",
4545
);
4646

4747
expect(message).toContain("Project demo-app created.");
4848
expect(message).toContain("1. Run the bootstrap command locally:");
49-
expect(message).toContain("npx @spawn-dock/create --token pair_demo");
49+
expect(message).toContain("npx -y @spawn-dock/create --token pair_demo");
5050
expect(message).toContain("2. After bootstrap, run:");
5151
expect(message).toContain("pnpm run dev");
5252
expect(message).not.toContain("Links:");

src/bot/polling.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ async function processUpdate(cfg: ReturnType<typeof readBotConfig>, update: Tele
8686
clearTimeout(ackTimeout);
8787
const slug = data.project.slug;
8888
const token = data.pairingToken.token;
89-
const bootstrapCmd = `npx @spawn-dock/create --token ${token}`;
89+
const bootstrapCmd = `npx -y @spawn-dock/create --token ${token}`;
9090
await sendMessage(
9191
cfg.telegramBotToken,
9292
msg.chat.id,

0 commit comments

Comments
 (0)