Commit a4b4e89
fix: resolve script execution issue for npx and global install, bump to 0.1.8
The root issue was the import.meta.url execution check not working with npm bin symlinks.
Changes:
- Replace complex execution detection with simple main() call
- This ensures the script runs in all contexts: direct execution, npm bin, npx
- Short bin name 'ccstatus' works with npx -p syntax
- Both global install and npx now produce correct output
✅ Working: echo '...' | ccstatus
✅ Working: echo '...' | npx ./package.tgz
✅ Ready for: echo '...' | npx -p @this-dot/claude-code-context-status-line ccstatus
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 999ef50 commit a4b4e89
File tree
4 files changed
+4
-4
lines changed- src
4 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | | - | |
165 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
Binary file not shown.
Binary file not shown.
0 commit comments