-
Notifications
You must be signed in to change notification settings - Fork 48
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
Npm package should always have a main module #180
Comments
Why would you try to require shx? We intentionally don't support this case. If you want to require a library in your own code, you should use ShellJS. |
I'm sure there are many reasons to require |
Why do you need the path to the module? Npm is responsible for adding the executable to the |
https://github.com/sindresorhus/clipboard-cli/blob/master/package.json is a CLI which does not support |
@nfischer ok thanks for the clarity. |
The package.json is missing the
main
property. Because this is a cli, I understand why it was neglected, but it can create problems, for example if I am runningrequire.resolve('shx')
.The text was updated successfully, but these errors were encountered: