This commit is contained in:
Rishi Raj Jain
2023-08-22 02:15:43 +05:30
parent 367ce2e412
commit 0c01e58db9
+1 -3
View File
@@ -35,9 +35,7 @@ export async function updateCommand(projectPath: string) {
};
// Can either give a json like package.json or just with deps and their new versions
const updatedDependencies: Index | void = await new Promise((resolve, reject) =>
run(ncuOptions).then(resolve).catch(reject)
);
const updatedDependencies: Index | void = await run(ncuOptions);
if (!updatedDependencies) return;