@dyrected/nuxt 2.5.18 → 2.5.19

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.mjs CHANGED
@@ -76,11 +76,15 @@ const module = defineNuxtModule({
76
76
  if (configPath) {
77
77
  console.log("[dyrected/nuxt] Auto-detected config at:", configPath);
78
78
  runtimeConfig.configPath = configPath;
79
- let loadConfigPath = resolver.resolve("./runtime/server/plugins/loadConfig.ts");
80
- if (!existsSync(loadConfigPath)) {
81
- loadConfigPath = resolver.resolve("./runtime/server/plugins/loadConfig.mjs");
79
+ let loadConfigSrc = resolver.resolve("./runtime/server/plugins/loadConfig.ts");
80
+ if (!existsSync(loadConfigSrc)) {
81
+ loadConfigSrc = resolver.resolve("./runtime/server/plugins/loadConfig.mjs");
82
82
  }
83
- runtimeConfig.loadConfigPath = loadConfigPath;
83
+ addTemplate({
84
+ src: loadConfigSrc,
85
+ filename: "dyrected-load-config.ts",
86
+ write: true
87
+ });
84
88
  let dbPluginSrc = resolver.resolve("./runtime/server/plugins/db.ts");
85
89
  if (!existsSync(dbPluginSrc)) {
86
90
  dbPluginSrc = resolver.resolve("./runtime/server/plugins/db.mjs");
@@ -5,8 +5,7 @@ export default defineNitroPlugin(async (nitroApp) => {
5
5
  if (runtimeConfig?.configPath) {
6
6
  try {
7
7
  const configPath = runtimeConfig.configPath;
8
- const loadConfigPath = runtimeConfig.loadConfigPath;
9
- const { loadDyrectedConfig, ConfigLoadError } = await import(loadConfigPath);
8
+ const { loadDyrectedConfig, ConfigLoadError } = await import("./dyrected-load-config.ts");
10
9
  let userConfig = null;
11
10
  try {
12
11
  userConfig = await loadDyrectedConfig(configPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyrected/nuxt",
3
- "version": "2.5.18",
3
+ "version": "2.5.19",
4
4
  "type": "module",
5
5
  "main": "./dist/module.mjs",
6
6
  "types": "./dist/module.d.ts",
@@ -10,10 +10,10 @@
10
10
  "dependencies": {
11
11
  "@nuxt/kit": "^3.11.2",
12
12
  "h3": "^1.15.0",
13
- "@dyrected/core": "2.5.18",
14
- "@dyrected/sdk": "2.5.18",
15
- "@dyrected/admin": "2.5.18",
16
- "@dyrected/vue": "2.5.18"
13
+ "@dyrected/core": "2.5.19",
14
+ "@dyrected/sdk": "2.5.19",
15
+ "@dyrected/vue": "2.5.19",
16
+ "@dyrected/admin": "2.5.19"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "nuxt": "^3.0.0",