Skip to content

Commit

Permalink
cli: update 'download:plugins' script
Browse files Browse the repository at this point in the history
Fixes: #8053

The following commit updates the `download:plugins` script to report
when the mandatory `theiaPlugins` property is missing from the
`package.json` resulting in no plugins being downloaded.

Signed-off-by: vince-fugnitto <[email protected]>
  • Loading branch information
vince-fugnitto committed Jun 19, 2020
1 parent d017cb2 commit 52a43ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dev-packages/cli/src/download-plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ export default async function downloadPlugins(options: DownloadPluginsOptions =

await mkdirpAsPromised(pluginsDir);

if (!pck.theiaPlugins) {
console.log(red('error: missing mandatory \'theiaPlugins\' property.'));
return;
}

await Promise.all(Object.keys(pck.theiaPlugins).map(async plugin => {
if (!plugin) {
return;
Expand Down

0 comments on commit 52a43ce

Please sign in to comment.