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

Files

Latest commit

f29577b · Apr 26, 2018

History

History
45 lines (29 loc) · 1.37 KB

File metadata and controls

45 lines (29 loc) · 1.37 KB

📦 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}`)