Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Latest commit

 

History

History

plugin-lib-npm-publish

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

📦 plugin-lib-npm-publish

npm linux windows coverage deps

Publish package to NPM.

Install

$ yarn add --dev @start/plugin-lib-npm-publish
# or
$ npm install --save-dev @start/plugin-lib-npm-publish

Usage

Signature

npmPublish(packagePath: string, options?: {})

packagePath

Relative path to package, . by default.

options

NPM publish options

Default:

{
  registry: 'https://registry.npmjs.org/'
}

Example

import npmPublish from '@start/plugin-npm-plugin-lib-npm-publish'

export task = (packageName) => npmPublish(`packages/${packageName}`)