{"name":"semantic-release-monorepo","version":"6.0.4","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.6.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":"b154148ccd91f730e9d1fa62a059a22758da979f","_id":"semantic-release-monorepo@6.0.4","_npmVersion":"5.6.0","_nodeVersion":"8.11.4","_npmUser":{"name":"updater-admin","email":"admin@updater.com"},"dist":{"integrity":"sha512-jsqeQ+eE8csnwMy4rF6uLbsFw3QZzyyB+T0Leyqskzay5FzGRiRrek+2qqS3jF5dlyneYz9/7P7vIB0zU4fEvg==","shasum":"d26f7da938d2b027a512518bbf204a9a5f64e001","tarball":"http://registry-npm.ywwl.com/semantic-release-monorepo/download/semantic-release-monorepo-6.0.4.tgz","fileCount":12,"unpackedSize":16028,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbj0vHCRA9TVsSAnZWagAADVcP/R0L1D8KKW1uoCkqOQl7\neF8610iU6uSM2HOghGOKmu8r6XryoclvN1mAcdUqONpnulDkOkaTSTiG03Om\ncEHShuN3M/zP3MxcIDa6vh566MNIk8ddFz1vAAMDOzXcX9+poFGNNgZ2FIcY\nKjOKyT6vyg95qitPc3vON2HgoH1zqNK05dlj7CnUwhtgeYAm7QFwyeV0aUbw\n6q85DdBp5AtZdxB10Oo8urJLxY+L1pbyq2B81qokYSCREkWx1HEsapFHZ0eY\nch24vH/sZGqpPxikKPu6/XSgvSVsWmq1GQ2mLzQl28xNfq2/eG0gpOGKuwt/\nJ+7S3Q389fVSIKks1J2xhlF/P515lEd5Py/FBPjklBs0bEstuCasfE9mQNxY\nk+tddxw1aUcwD9ZnjuhXzZv3iZ3/CoWWWILcHz9RQ12o4iapkzU2bSPojrs0\nFSkmYBnMear3wZRwLUUZfv/wIRJ5R1V6ZSNSYuR8hjFkDENzmK1z9jWzPYR4\nnvViLYnZubhQfE10ErME8wupNFvNXVLw66p/xwzUj/myuve7vJg/RFjN6D1p\nTqC3vSiWGhG1WwN+y+6ty+eLK2JAv8HlG2fNpSsgCGBXjB4LNH6uOsHcxy/E\nHnv/1DQIxwNJiEKIZocBQbxbOcuKyycbfRUPRh8nbGLr2MGt7Pbtz0zPK1kC\nTu6c\r\n=NfZE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLDHO5D3eiXi8LnKhay25BkU1jsL/17ekZT4+WNfCcKgIgAxNtybjlZcP4P+K18jZ5+Cbcz/9DyfOj+t8YCvz2kPM="}],"size":6130,"noattachment":false,"key":"/semantic-release-monorepo/-/semantic-release-monorepo-6.0.4.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.0.4_1536117702237_0.3159947814745325"},"_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":1536117702431,"_cnpm_publish_time":1536117702431,"dist-tags":{"latest":"8.0.2","next":"5.0.0"}}