diff --git a/MlArror.vue b/MlArror.vue
new file mode 100644
index 0000000..4ac1c52
--- /dev/null
+++ b/MlArror.vue
@@ -0,0 +1,6 @@
+
+ Hello Nuxt3
+
+
+
diff --git a/index.ts b/index.ts
new file mode 100644
index 0000000..59a49db
--- /dev/null
+++ b/index.ts
@@ -0,0 +1,21 @@
+import { defineNuxtModule, addComponent } from "@nuxt/kit";
+import { resolve } from "path";
+
+export default defineNuxtModule({
+ meta: {
+ name: "my-module",
+ configKey: "myModule",
+ },
+ setup() {
+ // Register the component globally
+ addComponent({
+ name: "MlArror",
+ filePath: resolve(
+ __dirname,
+ "MlArror.vue",
+ "./components/Ml/Accordion/MlAccordionBase.vue",
+ "./components/Ml/Button/MlButton.vue"
+ ),
+ });
+ },
+});
diff --git a/package.json b/package.json
index f134e76..492fbf7 100644
--- a/package.json
+++ b/package.json
@@ -1,13 +1,14 @@
{
"name": "nuxt3-reusable-components",
- "version": "1.0.3",
+ "version": "1.0.9",
"private": false,
"type": "module",
- "main": "app.vue",
+ "main": "index.ts",
"files": [
- "app.vue",
- "components/**/*",
- "composables/**/*",
+ "index.ts",
+ "MlArror.vue",
+ "MlAccordionBase.vue",
+ "MlButton.vue",
"nuxt.config.ts",
"tailwind.config.js",
"package.json"
@@ -21,6 +22,8 @@
},
"dependencies": {
"@heroicons/vue": "^2.1.4",
+ "@nuxt/kit": "^3.12.3",
+ "@nuxtjs/color-mode": "^3.4.2",
"@nuxtjs/tailwindcss": "^6.12.0",
"@vueuse/core": "^10.11.0",
"classnames": "^2.5.1",
@@ -28,8 +31,7 @@
"swiper": "^11.1.4",
"tailwind-merge": "^2.3.0",
"typescript": "^5.5.3",
- "vue": "latest",
- "@nuxtjs/color-mode": "^3.4.2"
+ "vue": "latest"
},
"packageManager": "pnpm@9.1.1+sha512.14e915759c11f77eac07faba4d019c193ec8637229e62ec99eefb7cf3c3b75c64447882b7c485142451ee3a6b408059cdfb7b7fa0341b975f12d0f7629c71195",
"devDependencies": {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index f3734f9..0d9d0d8 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -11,6 +11,9 @@ importers:
'@heroicons/vue':
specifier: ^2.1.4
version: 2.1.4(vue@3.4.31(typescript@5.5.3))
+ '@nuxt/kit':
+ specifier: ^3.12.3
+ version: 3.12.3(magicast@0.3.4)(rollup@4.18.0)
'@nuxtjs/color-mode':
specifier: ^3.4.2
version: 3.4.2(magicast@0.3.4)(rollup@4.18.0)