Skip to content

fix: read CLI version from package metadata#42

Open
immanuwell wants to merge 1 commit into
Dokploy:mainfrom
immanuwell:fix-cli-version-from-package
Open

fix: read CLI version from package metadata#42
immanuwell wants to merge 1 commit into
Dokploy:mainfrom
immanuwell:fix-cli-version-from-package

Conversation

@immanuwell
Copy link
Copy Markdown

Fixes a tiny papercut: dokploy --version was stuck on 0.3.0, while the package is 0.29.2. ngl this can make releases look stale.

Repro before:

pnpm build
node dist/index.js --version
node -p "require('./package.json').version"

Before: 0.3.0 vs 0.29.2.

Now the CLI reads package.json at runtime, and the test checks the exact package version so it wont drift again.

Checked:

pnpm build
pnpm test
pnpm exec biome check src/index.ts tests/cli.test.ts

No exact issue found for this one, just related stale-version/outdated CLI threads.

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