Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@nevware21/publish-npm

nevware21193MIT0.1.4

Tools to automate the publishing packages to npm.

typescript, javascript, build-tools, utilities, tools, npm, publishing, publish, npm publish

readme

@nevware21/publish-npm

Tools to automate the publishing packages to npm.

GitHub Workflow Status (main) npm version downloads downloads

Description

Simple tools for automating the publishing of packages to npm.

Quick Start

Install the npm packare: npm install @nevware21/publish-npm --save-dev

It is suggested / recommended that you use the following definition in your package.json so that you are compatible with any future releases as they become available we do not intend to make ANY known breaking changes moving forward until v2.x

"@nevware21/publish-npm": ">= 0.1.4 < 2.x"

Create a configuration file with your group settings, where the

  • default identifies the default group when no group is passed on the command line
  • each group identifies the path to the repo where the package.json will be loaded to obtain the name
// ------------------------------
// NPM Publish group definitions
// ------------------------------
{
    "repoRoot": "../../..",
    "default": "all",
    "groups": {
        "all": [
            "./lib/pre-proc",
            "./lib/coverage-tools",
            "./lib/publish-npm"
        ],
        "preProc": [
            "./lib/pre-proc"
        ],
        "mergeCoverage": [
            "./lib/coverage-tools"
        ],
        "npmPublish": [
            "./lib/publish-npm"
        ]
    }
}

And then just used the helper in your package.json

{
    "scripts": {
        "publish-npm": "publish-npm groupName"
    }
}