Fix Windows CLI package launch#28
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 40cd9bfcd2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| repository: packageJson.repository, | ||
| bin: { | ||
| tokenmaxxing: "./bin/tokenmaxxing.exe", | ||
| tokenmaxxing: "./native-bin-launcher.cjs", |
There was a problem hiding this comment.
Restore installer fallback for skipped optional deps
When optionalDependencies are omitted/skipped but lifecycle scripts still run, install-native.mjs materializes the downloaded host binary at bin/tokenmaxxing.exe, but this new bin target invokes native-bin-launcher.cjs instead. The launcher only resolves the optional native packages and never checks the materialized bin/tokenmaxxing.exe, so installs that succeeded via the preinstall fallback now fail at runtime with the recovery message. Either keep the bin pointed at the installed fallback or teach the launcher to use it when native packages are absent.
Useful? React with 👍 / 👎.
what changed
checked