I have a project that include a gulp task for building and packaging the sources and release in a directory called dist. My goal is publish it as a npm package,
dist
Just create a .npmignore file and add the following to it :
.npmignore
*.* !dist/*