Skip to content

Commit

Permalink
fix: update checking logic
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerzl committed Jan 15, 2025
1 parent 2249653 commit 5a63d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/module/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default defineNuxtModule<ModuleOptions>({

const modulesToInstall = ['@nuxtjs/tailwindcss', '@nuxtjs/color-mode']
for (const module of modulesToInstall) {
if (nuxt.options._installedModules.some(m => m.meta.name === module)) {
if (await findPath(await resolvePath(module))) {
await installModule(module)
}
else if (!suppressMissingModuleWarning) {
Expand Down

0 comments on commit 5a63d7a

Please sign in to comment.