npm publish ./dist

Category: Node.js & npm/yarn

npm publish ./dist

Publish a built folder as a package

Uploads the contents of the dist folder to the registry as the current package version. Publishing is permanent: fixing a mistake means publishing a new version, so run npm publish --dry-run first. Folders named in .npmignore are excluded from the tarball.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.