This commit is contained in:
parent
a93ec6ad3f
commit
c816c15c50
9 changed files with 100 additions and 67 deletions
apps/update-sources/src
|
@ -71,7 +71,7 @@ const prefetchNpmDeps = (workspaceDir: string): string => {
|
|||
};
|
||||
|
||||
|
||||
export default async() => {
|
||||
export default async(): Promise<string | null> => {
|
||||
console.log(styleText(['magenta'], '\nUpdating node modules:\n'));
|
||||
|
||||
const updates = {};
|
||||
|
@ -115,7 +115,9 @@ export default async() => {
|
|||
}
|
||||
}
|
||||
|
||||
return Object.entries(updates)
|
||||
.map(([key, dep]) => `${key}: ${dep}`)
|
||||
.join('\n');
|
||||
return Object.entries(updates).length > 0 ?
|
||||
Object.entries(updates)
|
||||
.map(([key, dep]) => `${key}: ${dep}`)
|
||||
.join('\n') :
|
||||
null;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue