A thin wrapper around
npm publish that detects if the module to be published is at a snapshot version (identified via the
prerelease tag) and, if so, first unpublishes the previous snapshot then publishes with the
snapshot tag. Additionally, milestone
versions (-MXX) and release candidate versions (-RCX) are tagged with the
candidate dist tags respectively.
Note that unpublishing does not work on the main NPM registry, however this module is designed to work with private NPM registries such as Sinopia.
$ npm install --save snapshot-publish
var publish = ;;
Returns a promise that is resolved when the package has been published.
Directory to start looking for a package.json file.
MIT © NCR Corporation