mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-22 12:28:44 -05:00
fix(audit): not implemented for pnpm error
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user