npm publish --dry-run
Category: Node.js & npm/yarn
npm publish --dry-run
Simulate a publish and show exactly what files would be uploaded, without actually sending anything
Simulates publishing and shows you a list of files that would be uploaded — lets you verify your .npmignore is correct before actually publishing.