Neverending Programming Mistakes

    @khala/npm-release-monorepo

    2.5.2 • Public • Published

    Monorepo npm release

    Monorepo npm release process for semantic-release.

    Installation

    • Using NPM
    > npm install -D @khala/npm-release-monorepo
    • Using yarn
    > yarn add -D @khala/npm-release-monorepo
    

    Then add it to your prepare and publish options

    • package.json
    {
      "release": {
        "prepare": [
          {
            "path": "@khala/npm-release-monorepo"
          }
        ],
        "publish": [
          {
            "path": "@khala/npm-release-monorepo"
          }
        ]
      }
    }

    Options

    This package will assume that you want to release packages under root folder you ran release. If you want to release packages under different folder (for instance all packages under folder plugins) you have to add folder option to any step (preferably to both prepare and publish). Or if you want to set this up globally add monorepo prop to release config.

    {
      "release": {
        "prepare": [
          {
            "path": "@khala/npm-release-monorepo",
            "folder": "./plugins"
          }
        ],
        "publish": [
          {
            "path": "@khala/npm-release-monorepo",
            "folder": "./plugins"
          }
        ]
      }
    }
    {
      "release": {
        "monorepo": "./plugins",
        "prepare": "@khala/npm-release-monorepo",
        "publish": "@khala/npm-release-monorepo"
      }
    }

    Install

    npm i @khala/npm-release-monorepo

    DownloadsWeekly Downloads

    2

    Version

    2.5.2

    License

    Apache-2.0

    Unpacked Size

    3.98 kB

    Total Files

    4

    Last publish

    Collaborators

    • karelhala