diff --git a/packages/module/package.json b/packages/module/package.json index 2c4fe39a3..1e4c3e78e 100644 --- a/packages/module/package.json +++ b/packages/module/package.json @@ -25,7 +25,7 @@ "dist" ], "scripts": { - "prepack": "nuxt-module-build build", + "prepack": "nuxt-module-build prepare && nuxt-module-build build", "dev": "nuxi dev playground", "dev:build": "nuxi build playground", "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground", diff --git a/packages/module/src/module.ts b/packages/module/src/module.ts index fd30fe75a..8ee3dfbe2 100644 --- a/packages/module/src/module.ts +++ b/packages/module/src/module.ts @@ -63,11 +63,7 @@ export default defineNuxtModule({ await installModule('@nuxtjs/tailwindcss') // Installs the `@nuxtjs/color-mode` module. - await installModule('@nuxtjs/color-mode', { - colorMode: { - classSuffix: '', - }, - }) + await installModule('@nuxtjs/color-mode') // Manually scan `componentsDir` for components and register them for auto imports try {