title: Can I exclude files from an NPM package on the installation side?
body: <p>Is it possible to exclude files from a list of NPM packages in my <code>package.json</code>?</p>
  <p>I have a non-browser environment that works a bit differently: every file in <code>node_modules</code> dir becomes part of the production package. So there's no smart treeshaking that imports only the files that I use in my code.</p>
  <p>For instance, I use some packages which also carry a lot of tests and i18n files, most of which I don't need and like to remove from my packaged production version. However, they are still included in the end package because the whole package folder is included in the build.</p>
  <p>I'm trying to remove as many files from the packages as I can (without doing it manually each time) to save space and compilation time. The environment I use is looping all files in the <code>node_modules</code> directory and adds them to the production package (all packaged using Javascript). I would like a JavaScript solution to remove these files on compilation so the end package is as small as it can be.</p>