4 ms·
It really depends what's in the .npmrc. For example, you might have one containing only a setting to use absolute versions when installing packages and saving t
by qubyte 11y ago
It really depends what's in the .npmrc. For example, you might have one containing only a setting to use absolute versions when installing packages and saving them. It's also worth noting that it's a good idea (although I always forget) to use the files field of package.json to act as a whitelist.
Edit: the author notes that these are excluded by npm anyway these days. The documentation does not reflect this.
- ChALkeR 11y agohttps://github.com/npm/npm/releases/tag/v2.14.1 https://github.com/npm/npm/releases/tag/v2.14.1 > npm will no longer include .npmrc when packing tarballs.
- qubyte 11y agoThanks! I just took a quick look at https://docs.npmjs.com/files/package.json https://docs.npmjs.com/files/package.json If I remember in the morning, I'll send them a PR to update their docs.
- ChALkeR 11y agoIt's listed here: https://docs.npmjs.com/misc/developers#keeping-files-out-of-your-package https://docs.npmjs.com/misc/developers#keeping-files-out-of-...