{"id":13684343,"url":"https://github.com/orta/danger-plugin-yarn","last_synced_at":"2025-08-31T11:32:40.786Z","repository":{"id":21141386,"uuid":"91828664","full_name":"orta/danger-plugin-yarn","owner":"orta","description":"Provides dependency information on dependency changes in a PR  *","archived":false,"fork":false,"pushed_at":"2022-10-25T12:25:52.000Z","size":181,"stargazers_count":33,"open_issues_count":10,"forks_count":13,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-25T23:54:24.138Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-19T17:12:53.000Z","updated_at":"2024-05-22T15:26:59.000Z","dependencies_parsed_at":"2022-07-27T01:32:12.178Z","dependency_job_id":null,"html_url":"https://github.com/orta/danger-plugin-yarn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orta%2Fdanger-plugin-yarn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orta%2Fdanger-plugin-yarn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orta%2Fdanger-plugin-yarn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orta%2Fdanger-plugin-yarn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orta","download_url":"https://codeload.github.com/orta/danger-plugin-yarn/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231590364,"owners_count":18396926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T14:00:32.422Z","updated_at":"2024-12-28T06:01:59.003Z","avatar_url":"https://github.com/orta.png","language":"TypeScript","funding_links":[],"categories":["Plugins"],"sub_categories":["TypeScript (danger-js)"],"readme":"# danger-plugin-yarn\n\n[![Build Status](https://travis-ci.org/orta/danger-plugin-yarn.svg?branch=master)](https://travis-ci.org/orta/danger-plugin-yarn)\n[![npm version](https://badge.fury.io/js/danger-plugin-yarn.svg)](https://badge.fury.io/js/danger-plugin-yarn)\n[![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\n\u003e Provides dependency information on dependency changes in a PR\n\n## Usage\n\nInstall:\n\n```sh\nyarn add danger-plugin-yarn --dev\n```\n\nAt a glance:\n\n```js\n// dangerfile.js\nimport yarn from 'danger-plugin-yarn'\n\nyarn()\n```\n\nProvides 4 separate rules:\n\n* `checkForRelease` - Provides a 🎉 when there's a package version bump. \n* `checkForNewDependencies` (async) - Provides npmjs.com and `yarn why` metadata about new dependencies.\n* `checkForLockfileDiff` - Will warn you when there are `dependencies` or  `devDependencies` changes without a `yarn.lock` change.\n* `checkForTypesInDeps` - Will fail the build if you add any `@types/[x]` to `dependencies` instead of `devDependencies`.\n\nAnd exports a default function to handle all of them at once.\n\n### Feature Flags\n\nIf you want to disable any combination of these particular rules, there is a matching `disable*` option flag:\n\n```ts\n  disableCheckForRelease?: boolean\n  disableCheckForNewDependencies?: boolean\n  disableCheckForLockfileDiff?: boolean\n  disableCheckForTypesInDeps?: boolean\n```\n\nWhich are used as follows:\n\n```js\nyarn({\n  disableCheckForTypesInDeps: true\n})\n```\n\n## Private packages\n\nIf you want the plugin to find your private packages on npm, you need to provide an npm [authentication token](https://docs.npmjs.com/getting-started/working_with_tokens):\n\n```js\n// dangerfile.js\nimport yarn from 'danger-plugin-yarn'\n\nyarn({ npmAuthToken: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' })\n```\n\n\n## Specify registry URL\n\nIf you want the plugin to use different registry than `registry.npmjs.org`:\n\n```js\n// dangerfile.js\nimport yarn from 'danger-plugin-yarn'\n\nyarn({ npmRegistryUrl: 'https://registry.yarnpkg.com' })\n```\n\n## What does this look like?\n\nThe rest of this README is the contents of what it looks like when you add this plugin to your Dangerfile:\n\n---\n\n\u003ctable\u003e\n  \u003cthead\u003e\n    \u003ctr\u003e\n      \u003cth width=\"50\"\u003e\u003c/th\u003e\n      \u003cth width=\"100%\" data-danger-table=\"true\"\u003eWarnings\u003c/th\u003e\n    \u003c/tr\u003e\n  \u003c/thead\u003e\n  \u003ctbody\u003e\u003ctr\u003e\n      \u003ctd\u003e:warning:\u003c/td\u003e\n      \u003ctd\u003e\n\n  New dependencies added: danger-plugin-yarn.\n  \u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\n\n\u003ch2\u003e\u003ca href=\"https://github.com/orta/danger-plugin-yarn#readme\"\u003edanger-plugin-yarn\u003c/a\u003e\u003c/h2\u003e\n\u003cp\u003eAuthor: Orta Therox\u003c/p\u003e\n\u003cp\u003eDescription: Provides dependency information on dependency changes in a PR\u003c/p\u003e\n\u003cp\u003eHomepage: \u003ca href=\"https://github.com/orta/danger-plugin-yarn#readme\"\u003ehttps://github.com/orta/danger-plugin-yarn#readme\u003c/a\u003e\u003c/p\u003e\n\n\u003ctable\u003e\n  \u003cthead\u003e\u003ctr\u003e\u003cth\u003e\u003c/th\u003e\u003cth width=\"100%\"\u003e\u003c/th\u003e\u003c/tr\u003e\u003c/thead\u003e\n  \u003ctr\u003e\u003ctd\u003eCreated\u003c/td\u003e\u003ctd\u003e24 days ago\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003eLast Updated\u003c/td\u003e\u003ctd\u003e3 minutes ago\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003eLicense\u003c/td\u003e\u003ctd\u003eMIT\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003eMaintainers\u003c/td\u003e\u003ctd\u003e1\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003eReleases\u003c/td\u003e\u003ctd\u003e14\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003eDirect Dependencies\u003c/td\u003e\u003ctd\u003e\u003ca href='http: //npmjs.com/package/date-fns'\u003edate-fns\u003c/a\u003e, \u003ca href='http: //npmjs.com/package/lodash.flatten'\u003elodash.flatten\u003c/a\u003e, \u003ca href='http: //npmjs.com/package/lodash.includes'\u003elodash.includes\u003c/a\u003e, \u003ca href='http: //npmjs.com/package/node-fetch'\u003enode-fetch\u003c/a\u003e and \u003ca href='http: //npmjs.com/package/esdoc'\u003eesdoc\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003eKeywords\u003c/td\u003e\u003ctd\u003edanger, danger-plugin and yarn\u003c/td\u003e\u003c/tr\u003e\n\u003c/table\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ccode\u003eREADME\u003c/code\u003e\u003c/summary\u003e\n# danger-plugin-yarn\n\n[![Build Status](https://travis-ci.org/orta/danger-plugin-yarn.svg?branch=master)](https://travis-ci.org/orta/danger-plugin-yarn)\n[![npm version](https://badge.fury.io/js/danger-plugin-yarn.svg)](https://badge.fury.io/js/danger-plugin-yarn)\n[![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\n\u003e Provides dependency information on dependency changes in a PR\n\n## Usage\n\nInstall:\n\n```sh\nyarn add danger-plugin-yarn --dev\n```\n\nAt a glance:\n\n```js\n// dangerfile.js\nimport yarn from 'danger-plugin-yarn'\n\nyarn()\n```\n\nProvides 4 separate rules:\n\n* `checkForRelease` - Provides a 🎉 when there's a package version bump. \n* `checkForNewDependencies` (async) - Provides npmjs.com and `yarn why` metadata about new dependencies.\n* `checkForLockfileDiff` - Will warn you when there are `dependencies` or  `devDependencies` changes without a `yarn.lock` change.\n* `checkForTypesInDeps` - Will fail the build if you add any `@types/[x]` to `dependencies` instead of `devDependencies`.\n\nAnd exports a default function to handle all of them at once.\n\nNote: async functions like the default one [have be to](http://danger.systems/js/guides/the_dangerfile.html#async) `schedule`'d by Danger.\n\n## Changelog\n\nSee the GitHub [release history](https://github.com/orta/danger-plugin-yarn/releases).\n\n## Contributing\n\nSee [CONTRIBUTING.md](contributing.md).\n\n\u003c/details\u003e\n\n\n\n\n  \u003cdetails\u003e\n    \u003csummary\u003e\u003ccode\u003eyarn why danger-plugin-yarn\u003c/code\u003e output\u003c/summary\u003e\n    \u003cp\u003e\u003ccode\u003e\u003cul\u003e\u003cli\u003eHas been hoisted to \"danger-plugin-yarn\"\u003c/li\u003e\u003cli\u003eThis module exists because it's specified in \"devDependencies\".\u003c/li\u003e\u003cli\u003eDisk size without dependencies: \"80kB\"\u003c/li\u003e\u003cli\u003eDisk size with unique dependencies: \"3.98MB\"\u003c/li\u003e\u003cli\u003eDisk size with transitive dependencies: \"4.43MB\"\u003c/li\u003e\u003cli\u003eNumber of shared dependencies: 7\n    \u003c/li\u003e\u003c/ul\u003e\u003c/code\u003e\u003c/p\u003e\n  \u003c/details\u003e\n  \n\u003cp align=\"right\"\u003e\n  Generated by :no_entry_sign: \u003ca href=\"http://github.com/danger/danger-js/\"\u003edangerJS\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forta%2Fdanger-plugin-yarn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forta%2Fdanger-plugin-yarn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forta%2Fdanger-plugin-yarn/lists"}