Skip to content

refactor(ranview): publish under the @alixex scope - #410

Merged
chaxus merged 1 commit into
mainfrom
refactor/scope-alixex
Sep 13, 2026
Merged

chaxus merged 1 commit into
mainfrom
refactor/scope-alixex

Conversation

@chaxus

@chaxus chaxus commented Sep 13, 2026

Copy link
Copy Markdown
Owner

@chaxus/ranview@alixex/ranview. The scope is empty on npm, so the name is free.

Scope of the change

The directory stays packages/ranview, so packages/manifest.json and bin/verify-packages.mjs — which match on directory names — need no change, and pnpm -F ranview still resolves (pnpm matches the unscoped half of a scoped name).

Ten files: the package manifest and README, ranui's dependency, its re-export shim and three deep imports, the lockfile, and the README guard.

The guard gave up its last hard-coded name

test/readme.test.ts parses the README for import … from '<pkg>' and checks every name against the real exports. It had the specifier baked into its regex — so after an earlier rename it matched nothing, verified an empty set, and passed. Only the "names enough imports to be worth checking" assertion noticed.

That was fixed by reading the specifier from package.json, but the assertion message one line later still spelled the package out, which is the same drift waiting to happen. The test asks the package what it is called now; the only remaining mention is a comment recording why.

Verification

3,145 tests, tsc across 8 packages, verify:design across 3, prettier, the dead-link check, and a ranui rebuild — the ES build externalises this dependency by name, so a rename that skips the rebuild leaves stale bundles importing the old one.

🤖 Generated with Claude Code

https://claude.ai/code/session_019pjSL6jGCw2wmBLhCAW35d

`@chaxus/ranview` → `@alixex/ranview`. The scope is empty on npm, so the name
is free.

The directory stays `packages/ranview`, so `packages/manifest.json` and
`bin/verify-packages.mjs` — which match on directory names — need no change,
and `pnpm -F ranview` still resolves.

`test/readme.test.ts` gives up the last hard-coded copy of the name. It was
already reading the specifier from package.json for its parser, after that
regex silently matched nothing across an earlier rename; the assertion message
still spelled the package out, which is the same drift one line later. It asks
the package what it is called now, and the only remaining mention is a comment
recording why.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019pjSL6jGCw2wmBLhCAW35d
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying ran with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5c8c455
Status: ✅  Deploy successful!
Preview URL: https://b41b9c8d.ran-4ty.pages.dev
Branch Preview URL: https://refactor-scope-alixex.ran-4ty.pages.dev

View logs

@chaxus
chaxus merged commit 70ea6d4 into main Sep 13, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant