Skip to content

Conversation

@rowanc1
Copy link
Member

@rowanc1 rowanc1 commented Dec 24, 2025

It was falling through to the 0.0.0 for the CLI side, this bakes in the version in code rather than looking up and reading the package.json.

@changeset-bot
Copy link

changeset-bot bot commented Dec 24, 2025

🦋 Changeset detected

Latest commit: f907cc9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@oxa/core Patch
oxa Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

Curvenote Preview

📭 No submissions available to inspect.

"changelog": ["@changesets/changelog-github", { "repo": "oxa-dev/oxa" }],
"commit": false,
"fixed": [],
"fixed": [["@oxa/core", "oxa"]],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linking these @nokome.

I assume the types are linked in different ways.

Comment on lines +19 to +20
"copy:version": "echo \"const version = '\"$npm_package_version\"';\nexport default version;\" > src/version.ts",
"build": "pnpm run copy:version && tsc && cp ../../schema/schema.json dist/ && pnpm run build:bundle",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Export a version.ts, which is git-ignored. Then import that in code rather than looking to the package.json which failed when I was using it as a stand-alone bin.

@rowanc1 rowanc1 merged commit 7f4407c into main Dec 24, 2025
6 checks passed
@rowanc1 rowanc1 deleted the bug/version branch December 24, 2025 04:31
@github-actions github-actions bot mentioned this pull request Dec 24, 2025
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.

2 participants