@monodog/backend 1.3.8 → 1.4.0
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/cli.js +1 -1
- package/dist/config-loader.js +3 -3
- package/package.json +1 -1
- package/src/cli.ts +1 -1
- package/src/config-loader.ts +3 -3
package/dist/cli.js
CHANGED
|
@@ -117,7 +117,7 @@ if (serve) {
|
|
|
117
117
|
}
|
|
118
118
|
else {
|
|
119
119
|
console.log(`\nInitializing Configurations...`);
|
|
120
|
-
createConfigFileIfMissing(rootPath ?? process.cwd());
|
|
120
|
+
// createConfigFileIfMissing(rootPath ?? process.cwd());
|
|
121
121
|
copyPackageToWorkspace(rootPath);
|
|
122
122
|
console.log(`Monodog CLI: No operation specified. Use --serve to start the API or -h for help. Ex: pnpm monodog-cli @monodog/dashboard --serve --root .`);
|
|
123
123
|
}
|
package/dist/config-loader.js
CHANGED
|
@@ -52,12 +52,12 @@ function loadConfig() {
|
|
|
52
52
|
// or that we can navigate up to the root from the current file's location.
|
|
53
53
|
let rootPath = path.resolve(process.cwd()); // Adjust based on your workspace folder depth from root if needed
|
|
54
54
|
let 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}`);
|
|
58
58
|
configPath = path.resolve(path.resolve('../../'), 'monodog-conf.json'); //get root config, Adjust based on your workspace folder depth from root if needed
|
|
59
59
|
if (!fs.existsSync(configPath)) {
|
|
60
|
-
console.error(`
|
|
60
|
+
console.error(`ERROR2: Configuration file not found at ${configPath}`);
|
|
61
61
|
configPath = path.resolve(rootPath, 'monodog-conf.json');
|
|
62
62
|
process.exit(1);
|
|
63
63
|
}
|
package/package.json
CHANGED
package/src/cli.ts
CHANGED
|
@@ -90,7 +90,7 @@ if (serve) {
|
|
|
90
90
|
} else {
|
|
91
91
|
console.log(`\nInitializing Configurations...`);
|
|
92
92
|
|
|
93
|
-
createConfigFileIfMissing(rootPath ?? process.cwd());
|
|
93
|
+
// createConfigFileIfMissing(rootPath ?? process.cwd());
|
|
94
94
|
copyPackageToWorkspace(rootPath);
|
|
95
95
|
|
|
96
96
|
console.log(`Monodog CLI: No operation specified. Use --serve to start the API or -h for help. Ex: pnpm monodog-cli @monodog/dashboard --serve --root .`);
|
package/src/config-loader.ts
CHANGED
|
@@ -38,13 +38,13 @@ export function loadConfig(): MonodogConfig {
|
|
|
38
38
|
// or that we can navigate up to the root from the current file's location.
|
|
39
39
|
let rootPath = path.resolve(process.cwd()); // Adjust based on your workspace folder depth from root if needed
|
|
40
40
|
let configPath = path.resolve(rootPath, 'monodog-conf.json');
|
|
41
|
-
|
|
41
|
+
createConfigFileIfMissing(rootPath);
|
|
42
42
|
|
|
43
43
|
if (!fs.existsSync(configPath)) {
|
|
44
|
-
|
|
44
|
+
console.error(`ERROR1: Configuration file not found at ${configPath}`);
|
|
45
45
|
configPath = path.resolve(path.resolve('../../'), 'monodog-conf.json'); //get root config, Adjust based on your workspace folder depth from root if needed
|
|
46
46
|
if (!fs.existsSync(configPath)) {
|
|
47
|
-
console.error(`
|
|
47
|
+
console.error(`ERROR2: Configuration file not found at ${configPath}`);
|
|
48
48
|
configPath = path.resolve(rootPath, 'monodog-conf.json');
|
|
49
49
|
process.exit(1);
|
|
50
50
|
}
|