Skip to content

CLI version remains stale after npm publish due to hardcoded Commander version #4

Closed

Description

@jyotir-aditya

Problem

The Verfix CLI version output remained stuck at 0.1.0 even after publishing newer npm versions (0.1.1, 0.1.2).

Example:

verfix --version
# 0.1.0

while npm registry showed:

npm view verfix version
# 0.1.2

Root Cause

The CLI version was hardcoded inside the Commander configuration instead of dynamically loading the version from package.json.

This caused stale version information to persist across builds and npm releases.

Resolution

Fixed

  • Resolved an issue where the CLI version was hardcoded to 0.1.0 inside the Commander configuration.
  • The CLI now dynamically loads its version from package.json at runtime.

Impact

Improves:

  • release consistency
  • npm package reliability
  • CLI version accuracy
  • developer trust during upgrades

Notes

This issue highlighted the need for:

  • clean build verification before publish
  • release validation workflows
  • npm pack verification before npm releases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions