Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

install-peers-cli

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

install-peers-cli - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

15

install.js

@@ -5,2 +5,3 @@ #!/usr/bin/env node

, path = require('path')
, program = require('commander')
, installNpm = require('./install-npm.js')

@@ -14,7 +15,15 @@ , installYarn = require('./install-yarn.js')

installPeerDeps();
program
.option('-f, --force-run', 'Force Run')
.parse(process.argv)
if (program.forceRun) {
installPeerDeps({ forceRun: true })
} else {
installPeerDeps()
}
// --- Subroutines
function installPeerDeps() {
function installPeerDeps({ forceRun = false }) {
var argv;

@@ -25,3 +34,3 @@

argv = JSON.parse(process.env['npm_config_argv']);
if (argv && argv['cooked'][0] !== 'install') {
if (argv && argv['cooked'][0] !== 'install' || !forceRun) {
console.log('Only run install-peer-deps after `install` command. Skipping.');

@@ -28,0 +37,0 @@ return;

3

package.json
{
"name": "install-peers-cli",
"version": "2.0.0",
"version": "2.1.0",
"description": "CLI to install project's peerDependencies, without side effects.",

@@ -32,4 +32,5 @@ "main": "index.js",

"dependencies": {
"commander": "^2.20.0",
"executioner": "^2.0.1"
}
}

Sorry, the diff of this file is not supported yet

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