@monodog/backend 1.5.1 → 1.5.2
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/config-loader.js +2 -2
- package/package.json +1 -1
- package/src/config-loader.ts +2 -2
package/dist/config-loader.js
CHANGED
|
@@ -50,8 +50,8 @@ function loadConfig() {
|
|
|
50
50
|
// 1. Determine the path to the config file
|
|
51
51
|
// We assume the backend package is running from the monorepo root (cwd is root)
|
|
52
52
|
// or that we can navigate up to the root from the current file's location.
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
const rootPath = path.resolve(process.cwd(), '..', '..'); // Adjust based on your workspace folder depth from root if needed
|
|
54
|
+
const configPath = path.resolve(rootPath, 'monodog-conf.json');
|
|
55
55
|
createConfigFileIfMissing(rootPath);
|
|
56
56
|
if (!fs.existsSync(configPath)) {
|
|
57
57
|
console.error(`ERROR1: Configuration file not found at ${configPath}`);
|
package/package.json
CHANGED
package/src/config-loader.ts
CHANGED
|
@@ -40,8 +40,8 @@ export function loadConfig(): MonodogConfig {
|
|
|
40
40
|
// 1. Determine the path to the config file
|
|
41
41
|
// We assume the backend package is running from the monorepo root (cwd is root)
|
|
42
42
|
// or that we can navigate up to the root from the current file's location.
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
const rootPath = path.resolve(process.cwd(),'..','..'); // Adjust based on your workspace folder depth from root if needed
|
|
44
|
+
const configPath = path.resolve(rootPath, 'monodog-conf.json');
|
|
45
45
|
createConfigFileIfMissing(rootPath);
|
|
46
46
|
|
|
47
47
|
if (!fs.existsSync(configPath)) {
|