INNER CODE UNIT · JavaScript
modules
madlabsinc/mevn-cli · src/commands/add/index.js:137
const modules = installCandidate.filter((dep) =>
availableModules.includes(dep),
);
// Add the respective prefix
const modulesWithPrefix = modules.map(
(module) =>
`${
module === 'oauth'
? 'nuxt-oauth' // nuxt-oauth
: module === 'content'
? `@nuxt/${module}`
: `@nuxtjs/${module}`
}`, // @nuxt/content has different prefix
);
// If the user opted for atleast a Nuxt.js module
if (modules.length) {