Skip to content

Rename npm package to @etherscan/cli - #6

Merged
homeyong merged 1 commit into
masterfrom
feat/npm-cli-rename
Aug 7, 2026
Merged

Rename npm package to @etherscan/cli#6
homeyong merged 1 commit into
masterfrom
feat/npm-cli-rename

Conversation

@homeyong

@homeyong homeyong commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

What

Publish the npm distribution as @etherscan/cli instead of @etherscan/etherscan, so the install command is:

npm install -g @etherscan/cli

Changes

Renames every reference to the package name (@etherscan/etherscan@etherscan/cli) across 9 files:

  • package.json / package-lock.json — the name field
  • internal/updater/upgrade.gofunctional: the npm-managed install detection path (/node_modules/@etherscan/cli/) and the etherscan update hint, so update keeps working for npm installs
  • internal/cli/root.go, npm/bin/etherscan.js, npm/prepublish-check.js, README.md — user-facing install/upgrade text
  • internal/cli/update_test.go / internal/updater/upgrade_test.go — test fixtures (including one path built from split segments)

The etherscan bin command name and the 0.0.0-development placeholder version (stamped at publish time from the git tag) are unchanged.

Verification

  • go build ./... — clean
  • go test ./... — all packages pass

🤖 Generated with Claude Code

Publish the npm distribution as @etherscan/cli instead of
@etherscan/etherscan. Updates the package name, the npm-managed install
detection path in the updater, user-facing install/upgrade hints, docs,
and test fixtures. The `etherscan` bin command is unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@homeyong
homeyong merged commit 3e9c419 into master Aug 7, 2026
10 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