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, but only my dist folder. The [npm documentation](https://docs.npmjs.com/files/package.json) says that I can use the `files` tag to specify files to export. It works. But, documentation also says that:

> 
> If you name a folder in the array, then it will also include the files
>  inside that folder
> 
> 
> 

The result, is a npm package, which node\_modules looks like:

[![generated npm package](https://i.stack.imgur.com/qWzv7.png)](https://i.stack.imgur.com/qWzv7.png)

But I'd like to see all my files at the package's root (without that `dist` folder). My `index.js` file is inside the `dist` folder, but should be at root. I've tried to set tag `files` as `/dist/**/*` but it didn't work.

How can I achieve it?