@monodog/backend 1.4.1 → 1.4.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/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
  }
@@ -52,7 +52,7 @@ 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
- createConfigFileIfMissing(rootPath);
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monodog/backend",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "Backend API server for monodog monorepo dashboard",
5
5
  "license": "MIT",
6
6
  "bin": {
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 .`);
@@ -38,7 +38,7 @@ 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
- createConfigFileIfMissing(rootPath);
41
+ // createConfigFileIfMissing(rootPath);
42
42
 
43
43
  if (!fs.existsSync(configPath)) {
44
44
  console.error(`ERROR1: Configuration file not found at ${configPath}`);