{"name":"semantic-release-monorepo","version":"6.1.1","description":"Plugins for `semantic-release` allowing it to be used with a monorepo.","main":"src/index.js","scripts":{"format":"prettier --write --single-quote --trailing-comma es5","format:all":"yarn format \"./**/*.js\"","precommit":"lint-staged","test":"jest"},"license":"MIT","peerDependencies":{"semantic-release":"13.4.1 - 15.x.x"},"dependencies":{"debug":"^3.1.0","execa":"^0.8.0","p-limit":"^1.2.0","pkg-up":"^2.0.0","ramda":"^0.25.0","read-pkg":"^3.0.0","semantic-release-plugin-decorators":"^1.2.1"},"devDependencies":{"husky":"^0.14.3","jest":"^21.2.1","lint-staged":"^6.0.0","prettier":"^1.9.2","semantic-release":"^15.0.0","semantic-release-github-pr":"^5.0.5"},"lint-staged":{"*.js":["yarn format","git add"]},"gitHead":"86e6057f1ab14781f808fe819433cd6254e519dd","_id":"semantic-release-monorepo@6.1.1","_npmVersion":"6.4.1","_nodeVersion":"8.11.4","_npmUser":{"name":"updater-admin","email":"admin@updater.com"},"dist":{"integrity":"sha512-qObVQYU4MuUAx1lr/tpIYfhebRl6NxVk52wo+bG2RTg2ePtqmHDunXNpSkDIi1Mqvq2CgyG50IdDnceZ8N5+gQ==","shasum":"c9d802cbd065963a7d01d258936dfaf2989a2a7f","tarball":"http://registry-npm.ywwl.com/semantic-release-monorepo/download/semantic-release-monorepo-6.1.1.tgz","fileCount":12,"unpackedSize":16063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbj1RcCRA9TVsSAnZWagAAdPYP/3f/lIzLUKkj3NfECaeo\nJKJ149NZqasIe0apzQDaiw48mBS15oE2k2AREgQWV4GVeiixsrEItf7YcQTC\nwzq8CAvD6ISWXnpCUTNY+iMZcspno+hwXbEWkuKVQ7ewa9NVJJm6kk2lHCrY\nPyeq6ES4TKW2EWIRz9alV1lr9vXY7omnAR6r2ZxCU/+t8FB0vlJ9hz8qGxGx\ndgNXfynccvJkKwCUeLJSC/IO4ysRJrm7oevHSmrq26fiFkmet4/JJHI6+w/L\nZNfO+gS8oC1+fncCb8JqVc4SEvOYH4LYE0UAVpbtZNUHCn5BZGNYbE28r/Cm\nkKyuyNBCyN0I+KR89XWat6y5OZj866CnKIoZmQd8RAH9Xoz/gjmebaPUeWJj\nnzFkodTmoceCKRoqvjlhpZETG3PCWGN0icmSekGVTE7XTvFShP5GklMbydCC\n5WA6NDmpHLxp27Rv01Dcae7PNzL6innyvZhfDq7qUB9vlGW0j2zBxgOsRH/i\nJbunl/Vfx2Fw7OI5rto6rCY+E5B/PXjD+q9LAU6wpyxrpysjNeDlCFvmZMlZ\nkNk2qKoq/4wsS6frKK63EtSkNUiCX00JYVDv2CHUgHpbmM/Tr2RXKm9MAHHs\nK7GJRavycoiBAlzXqFgVyUTUZ4BSGwa3aCOxrBwosRqLlpJ284CZB1PSUZLh\nEj7D\r\n=lv+n\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtWfS1e7ZXExeP1SzHUbj4ZTznkA3HNexCq142dZUW6wIgTaUWuOsSKCWR4FhiXsPIDIUdX7wPPc2FHTUeZfUqV1w="}],"size":6135,"noattachment":false,"key":"/semantic-release-monorepo/-/semantic-release-monorepo-6.1.1.tgz"},"maintainers":[{"email":"akshah123@gmail.com","name":"akshah123"},{"email":"andrei.taranchenko@updater.com","name":"andreitaranchenko"},{"email":"blue.thomas@gmail.com","name":"bloogt"},{"email":"brianisme@gmail.com","name":"brianisme"},{"email":"calvin.szeto@updater.com","name":"calvins"},{"email":"cpinnix89@gmail.com","name":"cpinnix"},{"email":"dara.mao@gmail.com","name":"daramao"},{"email":"egucciar@gmail.com","name":"egucciar"},{"email":"work@hesham.ca","name":"helnahhas"},{"email":"jasonbyck@gmail.com","name":"jbyck"},{"email":"jear.jujaroen@gmail.com","name":"jear"},{"email":"justin@updater.com","name":"justin_rhoades"},{"email":"kirk7880@gmail.com","name":"krg7880"},{"email":"dinesh.nadar@updater.com","name":"nadard"},{"email":"pmowrer@gmail.com","name":"pmowrer"},{"email":"scotdalton@gmail.com","name":"scotdalton"},{"email":"sjricc@gmail.com","name":"sjricc"},{"email":"trescenzi@gmail.com","name":"trescenzi"},{"email":"tyler.nolan@updater.com","name":"tylernolan2"},{"email":"admin@updater.com","name":"updater-admin"},{"email":"tech+services@updater.com","name":"updater-services"},{"email":"vadim.t@updater.com","name":"vadimt"},{"email":"it-account@vertical1hq.com","name":"verticalone-user"},{"email":"johnlzeller@gmail.com","name":"zeller"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/semantic-release-monorepo_6.1.1_1536119900269_0.6068390430220714"},"_hasShrinkwrap":false,"readme":"# semantic-release-monorepo\n\n![Tests workflow](https://github.com/pmowrer/semantic-release-monorepo/actions/workflows/tests.yml/badge.svg) [![npm](https://img.shields.io/npm/v/semantic-release-monorepo.svg)](https://www.npmjs.com/package/semantic-release-monorepo) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\nApply [`semantic-release`'s](https://github.com/semantic-release/semantic-release) automatic publishing to a monorepo.\n\n## Why\n\nThe default configuration of `semantic-release` assumes a one-to-one relationship between a GitHub repository and an `npm` package.\n\nThis library allows using `semantic-release` with a single GitHub repository containing many `npm` packages.\n\n## How\n\nInstead of attributing all commits to a single package, commits are assigned to packages based on the files that a commit touched.\n\nIf a commit touched a file in or below a package's root, it will be considered for that package's next release. A single commit can belong to multiple packages and may trigger the release of multiple packages.\n\nIn order to avoid version collisions, generated git tags are namespaced using the given package's name: `<package-name>-<version>`.\n\n## Install\n\nBoth `semantic-release` and `semantic-release-monorepo` must be accessible in each monorepo package.\n\n```bash\nnpm install -D semantic-release semantic-release-monorepo\n```\n\n## Usage\n\nRun `semantic-release` in an **individual monorepo package** and apply `semantic-release-monorepo` via the [`extends`](https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#extends) option.\n\nOn the command line:\n\n```bash\n$ npm run semantic-release -e semantic-release-monorepo\n```\n\nOr in the [release config](https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#configuration-file):\n\n```json\n{\n  \"extends\": \"semantic-release-monorepo\"\n}\n```\n\nNOTE: This library **CAN'T** be applied via the `plugins` option.\n\n```json\n{\n  \"plugins\": [\n    \"semantic-release-monorepo\" // This WON'T work\n  ]\n}\n```\n\n### With Yarn Workspaces\n\n```bash\n$ yarn workspaces run semantic-release -e semantic-release-monorepo\n```\n\n### With Lerna\n\nThe monorepo management tool [`lerna`](https://github.com/lerna/lerna) can be used to run `semantic-release-monorepo` across all packages in a monorepo with a single command:\n\n```bash\nlerna exec --concurrency 1 -- npx --no-install semantic-release -e semantic-release-monorepo\n```\n\n### With pnpm\n\n[pnpm](https://pnpm.io/) has built-in [workspace](https://pnpm.io/workspaces) functionality for monorepos. Similarly to the above, you can use pnpm to make release in all packages:\n\n```bash\npnpm -r --workspace-concurrency=1 exec -- npx --no-install semantic-release -e semantic-release-monorepo\n```\n\nThanks to how [`npx's package resolution works`](https://github.com/npm/npx#description), if the repository root is in `$PATH` (typically true on CI), `semantic-release` and `semantic-release-monorepo` can be installed once in the repo root instead of in each individual package, likely saving both time and disk space.\n\n## Advanced\n\nThis library modifies the `context` object passed to `semantic-release` plugins in the following way to make them compatible with a monorepo.\n\n| Step             | Description                                                                                                                                                                                                                                                                                                                                                                                                                      |\n| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `analyzeCommits` | Filters `context.commits` to only include the given monorepo package's commits.                                                                                                                                                                                                                                                                                                                                                  |\n| `generateNotes`  | <ul><li>Filters `context.commits` to only include the given monorepo package's commits.</li><li>Modifies `context.nextRelease.version` to use the [monorepo git tag format](#how). The wrapped (default) `generateNotes` implementation uses this variable as the header for the release notes. Since all release notes end up in the same Github repository, using just the version as a header introduces ambiguity.</li></ul> |\n\n### tagFormat\n\nPre-configures the [`tagFormat` option](https://github.com/semantic-release/semantic-release/blob/caribou/docs/usage/configuration.md#tagformat) to use the [monorepo git tag format](#how).\n\nIf you are using Lerna, you can customize the format using the following command:\n\n```\n\"semantic-release\": \"lerna exec --concurrency 1 -- semantic-release -e semantic-release-monorepo --tag-format='${LERNA_PACKAGE_NAME}-v\\\\${version}'\"\n```\n\nWhere `'${LERNA_PACKAGE_NAME}-v\\\\${version}'` is the string you want to customize. By default it will be `<PACKAGE_NAME>-v<VERSION>` (e.g. `foobar-v1.2.3`).\n","publish_time":1536119900346,"_cnpm_publish_time":1536119900346,"dist-tags":{"latest":"8.0.2","next":"5.0.0"}}