fix(audit): not implemented for pnpm error

This commit is contained in:
Guillaume Chau
2019-04-11 22:57:01 +02:00
parent a684324d53
commit 08ea7911f3
@@ -1,4 +1,4 @@
const { hasProjectYarn, execa } = require('@vue/cli-shared-utils')
const { hasProjectYarn, hasProjectPnpm, execa } = require('@vue/cli-shared-utils')
const severity = {
critical: 0,
@@ -107,6 +107,15 @@ exports.auditProject = async function (cwd) {
status,
details
}
} else if (hasProjectPnpm(cwd)) {
// TODO pnpm audit
return {
status: {
status: 'error',
message: 'Not implemented for PNPM projects yet'
},
details: null
}
} else {
// TODO NPM audit
return {