Socket
Socket
Sign inDemoInstall

lerna-update-wizard

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lerna-update-wizard - npm Package Compare versions

Comparing version 0.15.1 to 0.16.0

src/utils/composeCommand.js

2

package.json

@@ -6,3 +6,3 @@ {

},
"version": "0.15.1",
"version": "0.16.0",
"main": "index.js",

@@ -9,0 +9,0 @@ "license": "MIT",

@@ -20,2 +20,3 @@ const path = require("path");

const lines = require("./utils/lines");
const composeCommand = require("./utils/composeCommand");

@@ -387,3 +388,3 @@ inquirer.registerPrompt(

// PROMPT: Yarn workspaces lazy installation prompt
// PROMPT: Yarn workspaces lazy installation
if (workspaces && !flags.lazy && !flags.nonInteractive) {

@@ -502,11 +503,18 @@ ui.logBottom("");

} else {
const installCmd = (dependencyManager === "yarn"
? ["yarn", "add", sourceParam, `${targetDependency}@${targetVersion}`]
: [
"npm",
"install",
sourceParam,
`${targetDependency}@${targetVersion}`,
]
).join(" ");
const installCmd =
dependencyManager === "yarn"
? composeCommand(
"yarn",
"add",
sourceParam,
flags.installArgs,
`${targetDependency}@${targetVersion}`
)
: composeCommand(
"npm",
"install",
sourceParam,
flags.installArgs,
`${targetDependency}@${targetVersion}`
);

@@ -526,3 +534,6 @@ await runCommand(`cd ${packageDir} && ${installCmd}`, {

const installCmd = dependencyManager === "yarn" ? "yarn" : "npm install";
const installCmd = composeCommand(
dependencyManager === "yarn" ? "yarn" : "npm install",
flags.installArgs
);

@@ -529,0 +540,0 @@ await runCommand(`cd ${projectDir} && ${installCmd}`, {

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