From 1847f67022ed11caa7b91ac591545fa32d79826a Mon Sep 17 00:00:00 2001 From: skulidropek <66840575+skulidropek@users.noreply.github.com> Date: Sat, 21 Mar 2026 08:11:39 +0000 Subject: [PATCH] feat(cli): publish bootstrap package under spawn-dock scope --- README.md | 2 +- package.json | 12 ++++++------ packages/app/package.json | 2 +- packages/app/src/shell/cli.ts | 2 +- packages/app/tests/cli.test.ts | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 7b0776c..063db0d 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ npx --yes github:SpawnDock/create-spawn-dock#main --token [proje After npm publish, the intended short form remains: ```bash -npx create-spawn-dock --token [project-dir] +npx @spawn-dock/create-spawn-dock --token [project-dir] ``` ## What it writes diff --git a/package.json b/package.json index a83a3b5..eb8bf4b 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "create-spawn-dock", + "name": "@spawn-dock/create-spawn-dock", "version": "0.2.0", "type": "module", "description": "SpawnDock bootstrap CLI for local TMA projects", @@ -28,11 +28,11 @@ }, "scripts": { "prepare": "node ./scripts/prepare.mjs", - "build": "pnpm --filter @create-spawn-dock/app build", - "check": "pnpm --filter @create-spawn-dock/app check", - "test": "pnpm --filter @create-spawn-dock/app test", - "typecheck": "pnpm --filter @create-spawn-dock/app typecheck", - "start": "pnpm --filter @create-spawn-dock/app start" + "build": "pnpm --filter @spawn-dock/create-spawn-dock-app build", + "check": "pnpm --filter @spawn-dock/create-spawn-dock-app check", + "test": "pnpm --filter @spawn-dock/create-spawn-dock-app test", + "typecheck": "pnpm --filter @spawn-dock/create-spawn-dock-app typecheck", + "start": "pnpm --filter @spawn-dock/create-spawn-dock-app start" }, "dependencies": { "@effect/platform-node": "^0.106.0", diff --git a/packages/app/package.json b/packages/app/package.json index 50c2a8b..6695896 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -1,5 +1,5 @@ { - "name": "@create-spawn-dock/app", + "name": "@spawn-dock/create-spawn-dock-app", "version": "0.2.0", "private": true, "type": "module", diff --git a/packages/app/src/shell/cli.ts b/packages/app/src/shell/cli.ts index c8e6d50..1463358 100644 --- a/packages/app/src/shell/cli.ts +++ b/packages/app/src/shell/cli.ts @@ -9,7 +9,7 @@ import { } from "../core/bootstrap.js" export const formatUsage = ( - invocation = "npx create-spawn-dock --token [project-dir]", + invocation = "npx @spawn-dock/create-spawn-dock --token [project-dir]", ): string => `Usage: ${invocation}` export const parseArgs = ( diff --git a/packages/app/tests/cli.test.ts b/packages/app/tests/cli.test.ts index 4472864..df00a7a 100644 --- a/packages/app/tests/cli.test.ts +++ b/packages/app/tests/cli.test.ts @@ -43,8 +43,8 @@ describe("parseArgs", () => { describe("formatUsage", () => { it("renders a custom invocation", () => { - expect(formatUsage("npx create-spawn-dock --token [project-dir]")).toBe( - "Usage: npx create-spawn-dock --token [project-dir]", + expect(formatUsage("npx @spawn-dock/create-spawn-dock --token [project-dir]")).toBe( + "Usage: npx @spawn-dock/create-spawn-dock --token [project-dir]", ) }) })