@monodog/backend 1.1.18 → 1.1.20

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @monodog/backend@1.1.17 build /home/manoj/Documents/MonoDog/packages/backend
2
+ > @monodog/backend@1.1.19 build /home/manoj/Documents/MonoDog/packages/backend
3
3
  > rm -rf dist && tsc -p tsconfig.json
4
4
 
package/dist/cli.js CHANGED
@@ -44,6 +44,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
44
44
  */
45
45
  const fs = __importStar(require("fs"));
46
46
  const path = __importStar(require("path"));
47
+ const index_1 = require("./index"); // Assume index.ts exports this function
47
48
  // --- Argument Parsing ---
48
49
  // 1. Get arguments excluding the node executable and script name
49
50
  const args = process.argv.slice(2);
@@ -90,7 +91,7 @@ if (serve) {
90
91
  console.log(`Starting Monodog API server...`);
91
92
  console.log(`Analyzing monorepo at root: ${rootPath}`);
92
93
  // Start the Express server and begin analysis
93
- // startServer(rootPath);
94
+ (0, index_1.startServer)(rootPath);
94
95
  copyPackageToWorkspace(rootPath);
95
96
  }
96
97
  else {
@@ -146,7 +147,7 @@ function copyPackageToWorkspace(rootDir) {
146
147
  recursive: true,
147
148
  dereference: true,
148
149
  // Filter out node_modules inside the package itself to avoid deep recursion
149
- filter: (src) => !src.includes('node_modules')
150
+ filter: (src) => !src.includes('node_modules'),
150
151
  });
151
152
  console.log(`\n✅ Success! Contents of '${packageName}' copied to '${destinationPath}'`);
152
153
  // Post-copy instructions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monodog/backend",
3
- "version": "1.1.18",
3
+ "version": "1.1.20",
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
@@ -62,7 +62,7 @@ if (serve) {
62
62
  console.log(`Starting Monodog API server...`);
63
63
  console.log(`Analyzing monorepo at root: ${rootPath}`);
64
64
  // Start the Express server and begin analysis
65
- // startServer(rootPath);
65
+ startServer(rootPath);
66
66
  copyPackageToWorkspace(rootPath);
67
67
  } else {
68
68
  // Default mode: print usage or run a default report if no command is specified
@@ -128,7 +128,7 @@ function copyPackageToWorkspace(rootDir: string): void {
128
128
  recursive: true,
129
129
  dereference: true,
130
130
  // Filter out node_modules inside the package itself to avoid deep recursion
131
- filter: (src) => !src.includes('node_modules')
131
+ filter: (src: string): boolean => !src.includes('node_modules'),
132
132
  });
133
133
 
134
134
  console.log(`\n✅ Success! Contents of '${packageName}' copied to '${destinationPath}'`);