With npm, you can specify the files to be installed using the package.json "files" key, an .npmignore files or by publishing only certain files to the registry. All my private repos are with BitBucket and I would like there to be configuration (either in the repo settings or by including a file similar to .npmignore) was specifies which files are to be installed or which directory in the repo is to be considered the root (i.e. a distribution folder that is its own package that npm/yarn should see at the package itself).