Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 563 Bytes

npm_publishing_a_package.md

File metadata and controls

24 lines (15 loc) · 563 Bytes

Publishing a package to npm

  • Remember to add any new files to package.json, or they won't be published with the package!

    vim package.json
  • When updating the package (or just updating the README) you must bump the version before you publish.

    npm version patch
    
    # Consider also bumping the version number in other relevant files, e.g. plugin.xml for cordova plugins
  • Test the package, and if all is well, do the actual publish.

    npm publish --dry-run
    
    npm publish