insin / package-config-checker

Checks if your dependencies have package.json files config or an .npmignore for packaging
MIT License
47 stars 3 forks source link

Fix index property (package.json) #8

Closed matheuss closed 5 years ago

matheuss commented 8 years ago

Before

❯ package-config-checker at master ✔ node . --help
module.js:442
    throw err;
    ^

Error: Cannot find module '/Users/matheus/dev/forks/package-config-checker'
[...]

After

❯ package-config-checker at fix-index-prop ✔ node . --help
Usage: package-config-checker
[...]
insin commented 8 years ago

Thanks for the Pull Request.

This isn't intended to be imported - if it was, we would need to export a function with a proper API and return results rather than logging to the console, but does anybody need/want that?

matheuss commented 8 years ago

I agree that it is not intended to be exported. My point is that is easier to type node . than node bin/package-config-checker 😅