fix(cli): Add bin/webui stub and postinstall binary copy#232
Merged
mohamedmansour merged 1 commit intomainfrom Apr 14, 2026
Merged
fix(cli): Add bin/webui stub and postinstall binary copy#232mohamedmansour merged 1 commit intomainfrom
mohamedmansour merged 1 commit intomainfrom
Conversation
The package.json declared "bin": { "webui": "bin/webui" } but no
bin/ directory or launcher existed, so pnpm could never create the
.bin/webui symlink for consumers.
Changes:
- Add bin/webui as a committed shell stub that prints a helpful error
if the native binary hasn't been installed yet. This ensures pnpm
can always create bin symlinks without ENOENT warnings.
- Update install.ts (postinstall) to copy the resolved native binary
from the platform-specific package (or cargo build fallback) into
bin/webui, replacing the stub with the real executable.
- Split build script: "build" runs tsc only, "postbuild" runs
install.js to copy the native binary for local development.
- Switch build and test from esbuild to tsc for consistency with
webui-framework. Remove esbuild from devDependencies.
- Add tsconfig.test.json for test compilation (outputs to dist/test/).
- Update test import to use self-referencing package name instead of
relative path to dist/.
exclusion.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
toddreifsteck
approved these changes
Apr 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The package.json declared "bin": { "webui": "bin/webui" } but no bin/ directory or launcher existed, so pnpm could never create the .bin/webui symlink for consumers.
Changes:
Fixes #225