Skip to content

build: bundle patched ghostty-opentui into dist#95

Merged
hyldmo merged 1 commit intomainfrom
hyldmo/bundle-patches
Mar 23, 2026
Merged

build: bundle patched ghostty-opentui into dist#95
hyldmo merged 1 commit intomainfrom
hyldmo/bundle-patches

Conversation

@hyldmo
Copy link
Copy Markdown
Owner

@hyldmo hyldmo commented Mar 23, 2026

Summary

  • patchedDependencies aren't transitive — npm consumers would get the unpatched ghostty-opentui, hitting the logicalLineInfo crash
  • Replace the inline bun build CLI command with a build.ts script using a Bun plugin that bundles the patched terminal-buffer code while keeping the native FFI module external
  • Native module still resolves from the installed ghostty-opentui package at runtime

Test plan

  • bun run build succeeds
  • Patched code (lineInfo?.lineStarts, if (lineInfo) guard) present in dist/numux.js
  • FFI import is external (from "ghostty-opentui") — no .node assets in dist
  • All 614 tests pass
  • Typecheck clean

🤖 Generated with Claude Code

patchedDependencies aren't transitive — npm consumers get the
unpatched version. Replace the inline build command with a build.ts
script that uses a Bun plugin to bundle the patched terminal-buffer
code while keeping the native FFI module external.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@hyldmo hyldmo merged commit 93d7f1b into main Mar 23, 2026
2 checks passed
@hyldmo hyldmo deleted the hyldmo/bundle-patches branch March 23, 2026 18:09
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 2.10.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant