Npm uses .gitignore file if there is no .npmignore file present. Adding .npmignore file to be able to publish javascript/dist folder.