add some files

This commit is contained in:
Arina Yakovenko 2024-07-08 12:53:06 +02:00
parent 00a8fc630e
commit 5ab9b3db4b
2 changed files with 14 additions and 2 deletions

View File

@ -1,5 +1,10 @@
// modules/my-module.ts // modules/my-module.ts
import { defineNuxtModule, createResolver, addComponent } from "@nuxt/kit"; import {
defineNuxtModule,
createResolver,
addComponent,
addImports,
} from "@nuxt/kit";
export interface ModuleOptions {} export interface ModuleOptions {}
@ -24,5 +29,12 @@ export default defineNuxtModule<ModuleOptions>({
filePath: resolver.resolve(item.path), filePath: resolver.resolve(item.path),
}); });
} }
addImports([
{
name: "useRipple",
from: resolver.resolve("../src/composables/useRipple.ts"),
},
]);
}, },
}); });

View File

@ -1,6 +1,6 @@
{ {
"name": "nuxt3-reusable-components", "name": "nuxt3-reusable-components",
"version": "1.2.5", "version": "1.2.6",
"private": false, "private": false,
"type": "module", "type": "module",
"main": "index.js", "main": "index.js",