Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 783cf3f

Browse files
tikazyqclaude
andauthored
chore: rename CLI package to @leanspec/cli (#254) (#311)
npm rejected `leanspec` with 403 in workflow run 26144025632: > Package name too similar to existing package lean-spec Fall back to the scoped name `@leanspec/cli`, which sits in the same scope as `@leanspec/mcp`, `@leanspec/http-server`, and the already- published `@leanspec/cli-{platform}@0.3.0` binary packages. The binary itself stays named `leanspec` so post-install usage is unchanged (`leanspec board`, `leanspec init`, etc.). Update prepare-publish's workspace pkgMap, README quick-start install command, and the packages/README catalog accordingly. Part of #254 — unblocks the second publish attempt. Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
1 parent 6203927 commit 783cf3f

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ LeanSpec is a spec coding framework that works with whatever spec workflow you a
3333

3434
```bash
3535
# Markdown specs (default — works out of the box)
36-
npm install -g leanspec && leanspec init
36+
npm install -g @leanspec/cli && leanspec init
3737

3838
# Or try with a tutorial project
39-
npx leanspec init --example dark-theme
39+
npx -p @leanspec/cli leanspec init --example dark-theme
4040
cd dark-theme && npm install && npm start
4141
```
4242

packages/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,26 @@ packages/
2626

2727
- Rust provides backend for both HTTP server and CLI/MCP commands
2828

29-
## leanspec (CLI)
29+
## @leanspec/cli
3030

31-
**JavaScript wrapper for Rust CLI binary.**
31+
**JavaScript wrapper for Rust CLI binary. Installs the `leanspec` command.**
3232

3333
Provides platform detection, binary resolution, and templates for `leanspec init`.
3434

3535
### Usage
3636

3737
```bash
38-
npm install -g leanspec
39-
npx leanspec list
40-
npx leanspec create my-feature
38+
npm install -g @leanspec/cli
39+
leanspec list
40+
leanspec create my-feature
4141
```
4242

4343
### Development
4444

4545
```bash
4646
cd rust && cargo build --release
4747
node scripts/copy-rust-binaries.mjs
48-
node bin/leanspec.js --version
48+
node packages/cli/bin/leanspec.js --version
4949
```
5050

5151
## @leanspec/mcp
@@ -108,7 +108,7 @@ pnpm --filter @leanspec/ui test
108108
## Publishing
109109

110110
Published packages:
111-
- `leanspec` - CLI (wrapper + Rust binary via optional dependencies)
111+
- `@leanspec/cli` - CLI (wrapper + Rust binary via optional dependencies; installs the `leanspec` command)
112112
- `@leanspec/mcp` - MCP server wrapper
113113
- `@leanspec/ui` - Vite SPA bundle
114114

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "leanspec",
2+
"name": "@leanspec/cli",
33
"version": "0.3.0",
44
"description": "Specification-driven development made simple",
55
"type": "module",

scripts/prepare-publish.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function resolveWorkspaceVersion(depName: string): string | null {
4646
'@leanspec/http-server': 'packages/http-server/package.json',
4747
'@leanspec/ui': 'packages/ui/package.json',
4848
'@leanspec/mcp': 'packages/mcp/package.json',
49-
'leanspec': 'packages/cli/package.json',
49+
'@leanspec/cli': 'packages/cli/package.json',
5050
// CLI platform packages
5151
'@leanspec/cli-darwin-x64': 'packages/cli/binaries/darwin-x64/package.json',
5252
'@leanspec/cli-darwin-arm64': 'packages/cli/binaries/darwin-arm64/package.json',

0 commit comments

Comments
 (0)