diff --git a/modules/module.ts b/modules/module.ts index d61c97a..8c6d26e 100644 --- a/modules/module.ts +++ b/modules/module.ts @@ -1,5 +1,10 @@ // modules/my-module.ts -import { defineNuxtModule, createResolver, addComponent } from "@nuxt/kit"; +import { + defineNuxtModule, + createResolver, + addComponent, + addImports, +} from "@nuxt/kit"; export interface ModuleOptions {} @@ -24,5 +29,12 @@ export default defineNuxtModule({ filePath: resolver.resolve(item.path), }); } + + addImports([ + { + name: "useRipple", + from: resolver.resolve("../src/composables/useRipple.ts"), + }, + ]); }, }); diff --git a/package.json b/package.json index cf9b1f3..3edb7e0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nuxt3-reusable-components", - "version": "1.2.5", + "version": "1.2.6", "private": false, "type": "module", "main": "index.js",