@merkaly/nuxt 0.1.13 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.0.0"
6
6
  },
7
- "version": "0.1.13",
7
+ "version": "0.1.15",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { defineNuxtModule, createResolver, addPlugin, addRouteMiddleware, addImportsDir, addComponentsDir } from '@nuxt/kit';
1
+ import { defineNuxtModule, createResolver, useLogger, addPlugin, addRouteMiddleware, addImportsDir, addComponentsDir } from '@nuxt/kit';
2
2
  import { existsSync } from 'node:fs';
3
3
  import svgLoader from 'vite-svg-loader';
4
4
 
@@ -100,14 +100,14 @@ const module = defineNuxtModule({
100
100
  // ✅ Solo en producción
101
101
  ignoredHostnames: ["localhost"].concat(options.plausible?.localhost || "").filter(Boolean)
102
102
  }, nuxt.options.plausible || {});
103
+ const logger = useLogger("@merkaly/nuxt");
103
104
  const bootstrapConfigPath = rootResolver.resolve("bootstrap.config.ts");
104
- let BootstrapConfig;
105
- if (existsSync(bootstrapConfigPath)) {
106
- await import(bootstrapConfigPath).then((result) => BootstrapConfig = result.default).catch(() => BootstrapConfig = {});
107
- }
108
- if (!BootstrapConfig) {
109
- BootstrapConfig = {};
110
- }
105
+ logger.info(`Loading bootstrap.config.ts from: ${bootstrapConfigPath} (exists: ${existsSync(bootstrapConfigPath)})`);
106
+ const BootstrapConfig = await import(bootstrapConfigPath).then((m) => m.default || {}).catch((err) => {
107
+ logger.error(`Failed to load bootstrap.config.ts:`, err.message);
108
+ return {};
109
+ });
110
+ logger.info(`Bootstrap config keys: ${Object.keys(BootstrapConfig).join(", ") || "(empty)"}`);
111
111
  nuxt.options["bootstrapVueNext"] = defu(nuxt.options["bootstrapVueNext"] || {}, { plugin: { components: BootstrapConfig } });
112
112
  addPlugin({ src: moduleResolver.resolve("./runtime/plugins/api.global") });
113
113
  addPlugin({ src: moduleResolver.resolve("./runtime/plugins/auth0.client"), mode: "client" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@merkaly/nuxt",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/merkaly-io/nuxt.git"