add some files
This commit is contained in:
parent
00a8fc630e
commit
5ab9b3db4b
@ -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"),
|
||||||
|
},
|
||||||
|
]);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user