{"id":19834164,"url":"https://github.com/team-griffin/install-self-peers","last_synced_at":"2025-10-04T09:32:14.805Z","repository":{"id":57164781,"uuid":"87973453","full_name":"team-griffin/install-self-peers","owner":"team-griffin","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-30T07:38:39.000Z","size":9,"stargazers_count":28,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-14T05:52:53.634Z","etag":null,"topics":["cli","npm","peer","yarn"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/team-griffin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-11T19:51:46.000Z","updated_at":"2024-06-18T18:38:38.720Z","dependencies_parsed_at":"2024-06-18T18:38:37.736Z","dependency_job_id":"d324020d-e6d3-4492-8553-a5a8f39e768f","html_url":"https://github.com/team-griffin/install-self-peers","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/team-griffin%2Finstall-self-peers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/team-griffin%2Finstall-self-peers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/team-griffin%2Finstall-self-peers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/team-griffin%2Finstall-self-peers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/team-griffin","download_url":"https://codeload.github.com/team-griffin/install-self-peers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224270343,"owners_count":17283649,"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":["cli","npm","peer","yarn"],"created_at":"2024-11-12T12:03:26.890Z","updated_at":"2025-10-04T09:32:09.756Z","avatar_url":"https://github.com/team-griffin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# install-self-peers\n\nA cli utility to automatically install the peer dependencies of the package you are developing.\nThis is useful for if you are developing a library and some of your dependencies are actually peers.\n\nFor example building react based libs.\n\n\n```shell\nnpm i --save-dev @team-griffin/install-self-peers\n\nyarn add --dev @team-griffin/install-self-peers\n```\n\n## Usage\n\n#### Manual\n\nThis package creates a bin, which you can execute:\n\n```shell\n$ ./node_modules/.bin/install-self-peers\n```\n\n#### Package.json lifecycle\n\nAdd the following script in `package.json` to trigger the cli after installing with dependencies.\n\n```json\n{\n  \"scripts\": {\n    \"prepare\": \"install-self-peers -- --ignore-scripts\"\n  }\n}\n```\n\n\u003e _It isn't recommended to use the `postinstall` event, because it is run when installing this package in other apps/libraries._\n\n## Arguments\n\n**`--npm`** (defaults: false) - This will generate an npm command rather than yarn\n\n**`--no-execute`** - Will print to stdout instead of executing the command\n\nOther args can be passed directly to `yarn`/`npm` by using **`--`**:  \n**`install-self-peers -- --ignore-scripts`**\n\n## License\n\nMIT License\n\nCopyright (c) 2017\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteam-griffin%2Finstall-self-peers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteam-griffin%2Finstall-self-peers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteam-griffin%2Finstall-self-peers/lists"}