Closed mixmix closed 1 month ago
cc @frankiebee
Use a .npmignore file to keep stuff out of your package. If there's no .npmignore file, but there is a .gitignore file, then npm will ignore the stuff matched by the .gitignore file. If you want to include something that is excluded by your .gitignore file, you can create an empty .npmignore file to override it. Like git, npm looks for .npmignore and .gitignore files in all subdirectories of your package, not only the root directory.
does this mean are build wont get published?
I don't think so @frankiebee , I think our files
section in package.json
says "only publish these files please"
we have package.json
files
defined and I've confirmed it's working well we don't need this extra fileref: https://docs.npmjs.com/cli/v10/configuring-npm/package-json#files