From 3ca64abb2774ffd887921e7ce37218a7a0d676e7 Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Mon, 7 Jun 2021 23:09:03 +0200 Subject: [PATCH] Update index.mjs --- source/plugins/licenses/index.mjs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/plugins/licenses/index.mjs b/source/plugins/licenses/index.mjs index 4d0788a9..d43667ec 100644 --- a/source/plugins/licenses/index.mjs +++ b/source/plugins/licenses/index.mjs @@ -62,6 +62,12 @@ export default async function({login, q, imports, data, graphql, queries, accoun catch (error) { console.debug(error) } + try { + console.debug(await imports.run("npm list", {cwd:path})) + } + catch (error) { + console.debug(error) + } JSON.parse(await imports.run("licensed list --format=json --licenses", {cwd:path})).apps .map(({sources}) => sources?.flatMap(source => source.dependencies?.map(({dependency, license}) => { used[license] = (used[license] ?? 0) + 1