Skip to content

Commit

Permalink
autoinstall: Print message to indicate installation in progress (#1316).
Browse files Browse the repository at this point in the history
  • Loading branch information
raineorshine committed Aug 23, 2023
1 parent a70f7fd commit bc695c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ const npmInstall = async (
if (options.install === 'always') {
print(options, '')
}
print(options, 'Installing dependencies...')

// only run npm install once in the root when in workspace mode
// npm install will install packages for all workspaces
Expand Down Expand Up @@ -159,8 +160,12 @@ const npmInstall = async (
stdout: (data: string) => {
stdout += data
},
stderr: (data: string) => {
console.error(chalk.red(data.toString()))
},
})
print(options, stdout, 'verbose')
print(options, 'Done')
} catch (err: any) {
// sometimes packages print errors to stdout instead of stderr
// if there is nothing on stderr, reject with stdout
Expand Down

0 comments on commit bc695c9

Please sign in to comment.