Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

By what magic is the binary linked to .bin? #29

Closed
ronkorving opened this issue Jun 7, 2021 · 2 comments
Closed

By what magic is the binary linked to .bin? #29

ronkorving opened this issue Jun 7, 2021 · 2 comments

Comments

@ronkorving
Copy link

package.json contains no "bin" entry, yet I see shellcheck linked inside my node_modules/.bin folder. By what magic is this happening?

I'm not just asking out of curiosity though. In a Docker setup I inherited, the symlink is missing! I don't know if it's shellcheck's fault, but tons of other packages do successfully end up listed. Shellcheck however, doesn't. Any thoughts?

@gunar
Copy link
Owner

gunar commented Jun 7, 2021

Hi @ronkorving, thanks for your question. It is indeed a bit dark magic-y.

The package.json does contain a "bin" entry—it's just under the directories key instead. However, the shellcheck-stable/shellcheck file is just a placeholder. There's a postinstall script that downloads the actual, most recent stable version of shellcheck and replaces the placeholder with. Perhaps that's where you've been having problems? Your environment will need tar to be available—but then, you should be seeing error messages post-install.

@ronkorving
Copy link
Author

Sorry for the late response. I realized I read your reply, but didn't respond.
Appreciate the insight, thanks! :) I'll close this issue now.

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

No branches or pull requests

2 participants