@monodog/backend 1.3.2 → 1.3.4
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 +3 -4
- package/package.json +2 -2
- package/src/cli.ts +5 -5
- package/monodog-conf.json +0 -12
package/dist/cli.js
CHANGED
|
@@ -110,16 +110,15 @@ Example:
|
|
|
110
110
|
}
|
|
111
111
|
// --- Execution Logic ---
|
|
112
112
|
if (serve) {
|
|
113
|
-
console.log(`\nInitializing Configurations...`);
|
|
114
|
-
createConfigFileIfMissing(rootPath ?? process.cwd());
|
|
115
113
|
console.log(`Starting Monodog API server...`);
|
|
116
114
|
console.log(`Analyzing monorepo at root: ${rootPath}`);
|
|
117
115
|
// Start the Express server and begin analysis
|
|
118
116
|
(0, index_1.startServer)(rootPath, port, host);
|
|
119
|
-
copyPackageToWorkspace(rootPath);
|
|
120
117
|
}
|
|
121
118
|
else {
|
|
122
|
-
|
|
119
|
+
console.log(`\nInitializing Configurations...`);
|
|
120
|
+
createConfigFileIfMissing(rootPath ?? process.cwd());
|
|
121
|
+
copyPackageToWorkspace(rootPath);
|
|
123
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 .`);
|
|
124
123
|
}
|
|
125
124
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monodog/backend",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
4
4
|
"description": "Backend API server for monodog monorepo dashboard",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"clean": "rm -rf dist node_modules/.cache",
|
|
18
18
|
"lint": "eslint .",
|
|
19
19
|
"lint:fix": "eslint . --fix",
|
|
20
|
-
"db:url": "node dist/get-db-url.
|
|
20
|
+
"db:url": "node dist/get-db-url.js",
|
|
21
21
|
"generate": "DATABASE_URL=$(npm run db:url --silent 2>/dev/null | tr -d '\\n') prisma generate",
|
|
22
22
|
"migrate": "DATABASE_URL=$(npm run db:url --silent 2>/dev/null | tr -d '\\n') prisma migrate dev",
|
|
23
23
|
"serve": "DATABASE_URL=$(npm run db:url --silent 2>/dev/null | tr -d '\\n') node dist/cli.js --serve" },
|
package/src/cli.ts
CHANGED
|
@@ -83,16 +83,16 @@ Example:
|
|
|
83
83
|
// --- Execution Logic ---
|
|
84
84
|
|
|
85
85
|
if (serve) {
|
|
86
|
-
console.log(`\nInitializing Configurations...`);
|
|
87
|
-
createConfigFileIfMissing(rootPath ?? process.cwd());
|
|
88
|
-
|
|
89
86
|
console.log(`Starting Monodog API server...`);
|
|
90
87
|
console.log(`Analyzing monorepo at root: ${rootPath}`);
|
|
91
88
|
// Start the Express server and begin analysis
|
|
92
89
|
startServer(rootPath, port, host);
|
|
93
|
-
copyPackageToWorkspace(rootPath);
|
|
94
90
|
} else {
|
|
95
|
-
|
|
91
|
+
console.log(`\nInitializing Configurations...`);
|
|
92
|
+
|
|
93
|
+
createConfigFileIfMissing(rootPath ?? process.cwd());
|
|
94
|
+
copyPackageToWorkspace(rootPath);
|
|
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 .`);
|
|
97
97
|
}
|
|
98
98
|
|