Giners / mui-places-autocomplete

Google Material Design (Material-UI) styled React component using Google Maps Places Autocomplete
MIT License
34 stars 26 forks source link

Package the `dist` folder (add `.npmignore`) #6

Closed Giners closed 6 years ago

Giners commented 6 years ago

When reading the npm-developers documentation I either misunderstood/misread/was being an idiot and failed to properly test my packaging. I believe that I did a test install of the package by installing from the directory instead of the packaged project (i.e. .npm/.tgz) itself. As a result I incorrectly assumed that packaging worked as expected.

When I tried to include the package in another project it was unable to find the entry point to the package/module as the dist folder didn't get packaged. This was a result of the .gitignore file being used as the .npmignore file where the .gitignore file ignores the dist folder.

I fixed this problem by including a .npmignore file which doesn't ignore the dist folder. I've confirmed it works also by doing a test install from the packaged .npm/.tgz.

Version bump: 1.0.0 -> 1.0.1 new file: .npmignore modified: package.json