Skip to content

Commit

Permalink
fix: split installation, make one wait for the other
Browse files Browse the repository at this point in the history
  • Loading branch information
maticzav committed Mar 20, 2019
1 parent 2138260 commit 614722e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,9 @@ class Emma extends React.Component<WithStdin<{}>, State> {
async installDependencies() {
this.setState({ status: 'LOADING' })
try {
await Promise.all([
install(Object.values(this.state.dependencies), 'dependency'),
install(Object.values(this.state.dependencies), 'devDependency'),
])
await install(Object.values(this.state.dependencies), 'dependency')
await install(Object.values(this.state.dependencies), 'devDependency')

this.setState({ status: 'INSTALLED' })
} catch (err) {
this.setState({ status: 'ERROR' })
Expand Down

0 comments on commit 614722e

Please sign in to comment.