I am working on a private NPM package that I make available to developers who use our API. For various reasons (decided by management), the package on our NPM repository (Sonatype Nexus) has the following folder structure:
| |- browser.min.js
| \- node.min.js
| \ ...
In the end, I decided to modify my build process to make this easier.
Instead of building just the scipts into the
build directory and packaging starting from the repository root directory, I have modified my build script to also copy
docs/* into the
build directory, then to
cd into that directory to do the
package.json can just say to include all files in the directory.