Skip to content

Commit 0c01e58

Browse files
author
Rishi Raj Jain
committed
await
1 parent 367ce2e commit 0c01e58

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/cli/src/commands/update.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ export async function updateCommand(projectPath: string) {
3535
};
3636

3737
// Can either give a json like package.json or just with deps and their new versions
38-
const updatedDependencies: Index | void = await new Promise((resolve, reject) =>
39-
run(ncuOptions).then(resolve).catch(reject)
40-
);
38+
const updatedDependencies: Index | void = await run(ncuOptions);
4139

4240
if (!updatedDependencies) return;
4341

0 commit comments

Comments
 (0)