Skip to content

Rename @learn6502/6502 to @learn6502/core for npm publishing#153

Merged
JumpLink merged 2 commits into
mainfrom
rename-6502-to-core
Jun 22, 2026
Merged

Rename @learn6502/6502 to @learn6502/core for npm publishing#153
JumpLink merged 2 commits into
mainfrom
rename-6502-to-core

Conversation

@JumpLink

Copy link
Copy Markdown
Owner

What

Renames the published core package @learn6502/6502@learn6502/core across the monorepo (77 files: all imports, package.json names, workspace scripts, CI workflows, docs).

Why

npm's registry rejects publishing a purely-numeric scoped package name (6502) with E400 "That word is not allowed" — even though the client-side validate-npm-package-name accepts digit-containing names, the server applies a stricter name policy. The package therefore can't be released to npm under the old name.

@learn6502/core is descriptive (it's the core 6502 assembler/simulator/disassembler) and publishable.

Notes

  • The directory stays packages/6502/ — only the package name changed (its repository.directory still points at packages/6502).
  • The Changesets fixed group is a glob (@learn6502/*), so it's unaffected.
  • gjsify-lock.json / gjsify-sources.json are unchanged — workspace packages aren't external deps, they're resolved by name via workspace symlinks (re-wired by gjsify install).
  • Verified locally: gjsify install (lock unchanged), gjsify workspace @learn6502/core build ✅, gjsify workspace @learn6502/common-ui check ✅ (the cross-workspace consumer).

JumpLink added 2 commits June 22, 2026 20:28
npm's registry rejects publishing a purely-numeric scoped package name
("6502") with E400 "That word is not allowed", even though the client
validator accepts it. Rename the published core package to @learn6502/core
so it can be released to npm. The directory stays packages/6502/ and the
changeset fixed group (@learn6502/*) is unaffected.
theme.service.ts reached into the sibling package's source by relative
path (../../../6502/src/event-dispatcher) instead of importing from the
package by name like every other consumer. That only resolved because a
stale node_modules/@learn6502/6502 symlink lingered next to the renamed
@learn6502/core; a fresh install (as in CI) has only core, so the path
broke. Use the canonical @learn6502/core import.
@JumpLink JumpLink merged commit dcbb7b6 into main Jun 22, 2026
7 checks passed
@JumpLink JumpLink deleted the rename-6502-to-core branch June 22, 2026 18:55
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