Skip to content

fix: inline version at build time instead of createRequire#28

Merged
satoshai-dev merged 2 commits intomainfrom
fix/inline-version-at-build
Feb 24, 2026
Merged

fix: inline version at build time instead of createRequire#28
satoshai-dev merged 2 commits intomainfrom
fix/inline-version-at-build

Conversation

@satoshai-dev
Copy link
Copy Markdown
Owner

Summary

  • Replace runtime createRequire + package.json read with tsup's define option
  • Version string is now inlined at build time, removing the runtime dependency on package.json being on disk next to dist/
  • Works correctly in bundled/deploy environments

Closes #10

🤖 Generated with Claude Code

@satoshai-dev satoshai-dev force-pushed the fix/inline-version-at-build branch from eb7f93e to b6520cb Compare February 24, 2026 18:03
satoshai-dev and others added 2 commits February 24, 2026 18:19
Replace runtime `createRequire` + `package.json` read with tsup's
`define` option to inline the version string at build time. This
removes the dependency on package.json being on disk next to dist/
and works correctly in bundled/deploy environments.

Closes #10

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@satoshai-dev satoshai-dev force-pushed the fix/inline-version-at-build branch from e95b4c4 to 7e8466e Compare February 24, 2026 18:19
@satoshai-dev satoshai-dev merged commit b2d9b90 into main Feb 24, 2026
1 check passed
@satoshai-dev satoshai-dev deleted the fix/inline-version-at-build branch February 24, 2026 18:20
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.

improvement: inline version at build time instead of createRequire

1 participant