Update index.mjs

This commit is contained in:
lowlighter
2021-06-07 16:45:30 +02:00
parent 61feca326d
commit 4d3dbe471f

View File

@@ -57,13 +57,13 @@ export default async function({login, q, imports, data, graphql, queries, accoun
//Spawn licensed process //Spawn licensed process
console.debug(`metrics/compute/${login}/plugins > licenses > running licensed`) console.debug(`metrics/compute/${login}/plugins > licenses > running licensed`)
try { try {
console.log(imports.run("npm list --production --all", {cwd:path})) console.log(await imports.run("npm list --production --all", {cwd:path}))
} }
catch (error) { catch (error) {
console.log(error) console.log(error)
} }
try { try {
console.log(imports.run("licensed list --format=json --licenses", {cwd:path})) console.log(await imports.run("licensed list --format=json --licenses", {cwd:path}))
} }
catch (error) { catch (error) {
console.log(error) console.log(error)