lerna-update-wizard
Advanced tools
Comparing version 0.15.1 to 0.16.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22924366
46
2248