New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@team-griffin/install-self-peers

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@team-griffin/install-self-peers

A cli utility to automatically install the peer dependencies of the package you are developing. This is useful for if you are developing a library and some of your dependencies are actually peers.

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
399
increased by55.86%
Maintainers
1
Weekly downloads
 
Created
Source

install-self-peers

A cli utility to automatically install the peer dependencies of the package you are developing. This is useful for if you are developing a library and some of your dependencies are actually peers.

For example building react based libs.

npm i --save-dev @team-griffin/install-self-peers

yarn add --dev @team-griffin/install-self-peers

Usage

Manual

This package creates a bin, which you can execute:

$ ./node_modules/.bin/install-self-peers
Post-install script

Add the following script in package.json to trigger the cli after installing dependencies during development.

{
  "scripts": {
    "postinstall": "install-self-peers -- --ignore-scripts"
  }
}

Arguments

--npm (defaults: false) - This will generate an npm command rather than yarn

--no-execute - Will print to stdout instead of executing the command

Other args can be passed directly to yarn/npm by using --:
install-self-peers -- --ignore-scripts

License

MIT License

Copyright (c) 2017

FAQs

Package last updated on 08 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc