Skip to content

fix(build): keep dist/cli/main.js executable - #10

Merged
matthewtsmith merged 1 commit into
mainfrom
fix/build-keeps-bin-executable
Oct 27, 2026
Merged

matthewtsmith merged 1 commit into
mainfrom
fix/build-keeps-bin-executable

Conversation

@matthewtsmith

Copy link
Copy Markdown
Member

pnpm build deletes dist/ before compiling, and tsc writes dist/cli/main.js without the execute bit. npm link sets that bit only when it creates the link. So after any rebuild, the linked foreman on PATH failed with permission denied, and zsh reported foreman not found.

The build script now ends with chmod +x dist/cli/main.js. A package installed from npm already gets the bit at install time; this fixes the linked dev clone, which is how foreman runs on the Mac mini.

Test plan

  • pnpm build, then ls -l dist/cli/main.js shows rwxr-xr-x
  • type foreman resolves to /opt/homebrew/bin/foreman, and foreman -p litart status runs

🤖 Generated with Claude Code

https://claude.ai/code/session_01JrFSqr3eJsNihHcgYph1hB

pnpm build deletes dist/ and tsc writes main.js without the execute bit, so
after any rebuild the npm-linked foreman on PATH failed with 'permission
denied' and zsh reported it as not found.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JrFSqr3eJsNihHcgYph1hB
@matthewtsmith
matthewtsmith merged commit 87c04c7 into main Oct 27, 2026
1 check passed
@matthewtsmith
matthewtsmith deleted the fix/build-keeps-bin-executable branch October 27, 2026 04:19
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.

1 participant