@monodog/backend 1.2.7 → 1.2.8

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
@@ -133,8 +133,8 @@ function copyPackageToWorkspace(rootDir) {
133
133
  console.error("Error: Please provide the package name as an argument if you want to setup dashboard.");
134
134
  console.log("Usage: pnpm monodog-cli @monodog/dashboard --serve --root .");
135
135
  }
136
- if (packageName !== '@monodog/dashboard') {
137
- console.log("\n--- Skipping workspace setup for @monodog/dashboard to avoid self-copying. ---");
136
+ if (packageName !== '@monodog/backend') {
137
+ console.log("\n--- Skipping workspace setup for @monodog/backend to avoid self-copying. ---");
138
138
  return;
139
139
  }
140
140
  // const rootDir = process.cwd();
@@ -50,7 +50,7 @@ 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
- const rootPath = path.resolve(__dirname, '../../../'); // Adjust based on your folder depth if needed
53
+ const rootPath = path.resolve('../../'); // Adjust based on your workspace folder depth from root if needed
54
54
  const configPath = path.resolve(rootPath, 'monodog-conf.json');
55
55
  if (!fs.existsSync(configPath)) {
56
56
  console.error(`ERROR: Configuration file not found at ${configPath}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monodog/backend",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "Backend API server for monodog monorepo dashboard",
5
5
  "main": "dist/index.js",
6
6
  "license": "MIT",
package/src/cli.ts CHANGED
@@ -108,8 +108,8 @@ function copyPackageToWorkspace(rootDir: string): void {
108
108
  console.error("Error: Please provide the package name as an argument if you want to setup dashboard.");
109
109
  console.log("Usage: pnpm monodog-cli @monodog/dashboard --serve --root .");
110
110
  }
111
- if(packageName !== '@monodog/dashboard'){
112
- console.log("\n--- Skipping workspace setup for @monodog/dashboard to avoid self-copying. ---");
111
+ if(packageName !== '@monodog/backend'){
112
+ console.log("\n--- Skipping workspace setup for @monodog/backend to avoid self-copying. ---");
113
113
  return;
114
114
  }
115
115
 
@@ -35,7 +35,7 @@ export function loadConfig(): MonodogConfig {
35
35
  // 1. Determine the path to the config file
36
36
  // We assume the backend package is running from the monorepo root (cwd is root)
37
37
  // or that we can navigate up to the root from the current file's location.
38
- const rootPath = path.resolve(__dirname, '../../../'); // Adjust based on your folder depth if needed
38
+ const rootPath = path.resolve('../../'); // Adjust based on your workspace folder depth from root if needed
39
39
  const configPath = path.resolve(rootPath, 'monodog-conf.json');
40
40
 
41
41
  if (!fs.existsSync(configPath)) {