Repository navigation
fix(cli): print the wizard version for --version under npx - #1625
bryanlundberg wants to merge 1 commit into
Conversation
A quick word from the signature departmentHey @bryanlundberg, thanks for the PR! GitHub couldn't verify the signature on this commit:
PostHog requires verified commit signatures before merging. So we've built a bot to do the nagging. You're talking to it. Let's get this verifiedIf signing isn't set up yet, follow our signing guide or GitHub's guide. Already signed? Make sure GitHub recognizes your key. SSH keys must be registered as a Signing Key, not only as an Authentication Key. Once signing is set up, if the unsigned commit is your latest commit, run: git commit --amend --no-edit -S
git push --force-with-leaseThose commands fix only your latest commit. Older unsigned commits need signing too. Coordinate with anyone else using the branch before rewriting its history. Save your future self another visit from me: git config --local commit.gpgsign trueThat enables signing for future commits; it doesn't sign existing ones. A I'll check again after your next push and update this comment. |
49156f7 to
90cd78d
Compare
90cd78d to
fd4dffc
Compare
Problem
npx @posthog/wizard --version(and-v) printsunknown.Closes #1621
Changes
.version()without an argument makes yargs read thepackage.jsonabovenode_modules, which under npx is npx's own manifest with noversion. The CLI now passes the build-timeVERSIONfrom@shared/version.Test plan
I packed the wizard, installed it into a folder laid out like npx's cache and ran
wizard --versionand-v. They printedunknownbefore the change and3.0.0after.pnpm typecheckand the CLI tests pass