Skip to content

Fix: Run when invoked via .bin symlink#104

Merged
taylortom merged 1 commit into
masterfrom
fix/run-when-invoked-via-bin-symlink
May 16, 2026
Merged

Fix: Run when invoked via .bin symlink#104
taylortom merged 1 commit into
masterfrom
fix/run-when-invoked-via-bin-symlink

Conversation

@taylortom
Copy link
Copy Markdown
Collaborator

Fixes #103

Fix

  • Compare the realpath of process.argv[1] against import.meta.url so the CLI runs when invoked via the .bin symlink (npx at-utils / node_modules/.bin/at-utils), not only when index.js is executed directly.

Testing

  • npx at-utils now prints the version banner and command list
  • npx at-utils deps-check --help runs the subcommand
  • node index.js (direct invocation) still works
  • npx standard passes

@taylortom taylortom merged commit 9301a58 into master May 16, 2026
3 of 4 checks passed
@taylortom taylortom deleted the fix/run-when-invoked-via-bin-symlink branch May 16, 2026 16:46
github-actions Bot pushed a commit that referenced this pull request May 16, 2026
## [1.0.2](v1.0.1...v1.0.2) (2026-05-16)

### Fix

* Run when invoked via .bin symlink (fixes #103) (#104) ([9301a58](9301a58)), closes [#103](#103) [#104](#104)
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.0.2 🎉

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.

npx at-utils exits silently when invoked via the .bin symlink

1 participant