-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3bd1e5c
commit 2b140bc
Showing
1 changed file
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,7 +94,7 @@ const npmInstall = async ( | |
|
||
// prompt the user if they want ncu to run "npm install" | ||
if (options.interactive && !process.env.NCU_DOCTOR) { | ||
console.info('') | ||
print(options, '') | ||
const response = await prompts({ | ||
type: 'confirm', | ||
name: 'value', | ||
|
@@ -210,8 +210,15 @@ async function runUpgrades(options: Options, timeout?: NodeJS.Timeout): Promise< | |
|
||
// suggest install command or auto-install | ||
if (options.upgrade) { | ||
// if workspaces, install from root project folder | ||
await npmInstall(isWorkspace ? ['package.json'] : packageFilepaths, analysis, options) | ||
// deno does not have an install command | ||
// The closest equivalent is deno cache, but it is optional. | ||
// See: https://deno.land/[email protected]/references/cheatsheet#nodejs---deno-cheatsheet | ||
if (options.packageManager === 'deno') { | ||
print(options, '') | ||
} else { | ||
// if workspaces, install from root project folder | ||
await npmInstall(isWorkspace ? ['package.json'] : packageFilepaths, analysis, options) | ||
} | ||
} | ||
|
||
return analysis | ||
|