Install UX cleanup: postinstall + --version + CJS wrapper#30
Merged
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
The postinstall.cjs script wasn't being copied before bun install, causing the Docker Integration CI check to fail.
heskew
approved these changes
Feb 26, 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.
One PR with install UX cleanup:\n\n1) Postinstall script\n- Added packages/cli/scripts/postinstall.js to auto-install platform binary package for current OS/arch\n- Wired package.json scripts.postinstall\n\n2) --version fix\n- Added explicit --version/-v handling in packages/cli/bin/tps.ts that prints package version\n\n3) CJS wrapper cleanup\n- tps.cjs now fast-pathes --version even when native binary package is missing\n- Added JS fallback execution path (dist/bin/tps.js) for source/dev installs\n- Improved missing-binary guidance with versioned install hints\n\nAlso aligned optionalDependencies platform package versions in packages/cli/package.json to 0.5.0.\n\nValidation:\n- cd packages/cli && bun run build\n- node packages/cli/bin/tps.cjs --version\n- cd packages/cli && bun test test/office.test.ts\n