From 52a43ce94cf30dd95e7ac983151ebb5ece5b932d Mon Sep 17 00:00:00 2001 From: vince-fugnitto Date: Fri, 19 Jun 2020 11:31:56 -0400 Subject: [PATCH] cli: update 'download:plugins' script 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 --- dev-packages/cli/src/download-plugins.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dev-packages/cli/src/download-plugins.ts b/dev-packages/cli/src/download-plugins.ts index dd6b38b3d77c3..1ce96ee0cf55a 100644 --- a/dev-packages/cli/src/download-plugins.ts +++ b/dev-packages/cli/src/download-plugins.ts @@ -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;