@alpic80/rivet-cli 1.24.0-aidon.11 → 1.24.0-aidon.13
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/bin/commands/serve.js +9 -0
- package/package.json +2 -2
package/bin/commands/serve.js
CHANGED
|
@@ -158,6 +158,9 @@ export async function serve(cliArgs = {}) {
|
|
|
158
158
|
app.get('/health', async (c) => c.text('Healthy like Popeye'));
|
|
159
159
|
app.post('/', async (c) => {
|
|
160
160
|
if (args.projectsRootDir) {
|
|
161
|
+
if (args.logActivity) {
|
|
162
|
+
console.error(chalk.red('Status 400 - Configured with projects-root-dir which requires a project file to be specified in URL,'));
|
|
163
|
+
}
|
|
161
164
|
return c.text('Configured with projects-root-dir which requires a project file to be specified in URL', 400);
|
|
162
165
|
}
|
|
163
166
|
const project = args.dev ? await loadProjectFromFile(projectFilePath) : initialProject;
|
|
@@ -186,10 +189,16 @@ export async function serve(cliArgs = {}) {
|
|
|
186
189
|
let project;
|
|
187
190
|
if (args.projectsRootDir) {
|
|
188
191
|
if (!graphFile) {
|
|
192
|
+
if (args.logActivity) {
|
|
193
|
+
console.error(chalk.red('Status 400 - A graphFile is required when specifying projects-root-dir,'));
|
|
194
|
+
}
|
|
189
195
|
return c.text('A graphFile is required when specifying projects-root-dir', 400);
|
|
190
196
|
}
|
|
191
197
|
const fileMissing = await testIfMissingFile(path.join(args.projectsRootDir, graphFile));
|
|
192
198
|
if (fileMissing) {
|
|
199
|
+
if (args.logActivity) {
|
|
200
|
+
console.error(chalk.red(`Status 400 - GraphFile ${graphFile} not found in root directory (${args.projectsRootDir})`));
|
|
201
|
+
}
|
|
193
202
|
return c.text(`GraphFile ${graphFile} not found in root directory (${args.projectsRootDir})`, 400);
|
|
194
203
|
}
|
|
195
204
|
project = await loadProjectFromFile(path.join(args.projectsRootDir, graphFile));
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@alpic80/rivet-cli",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"repository": "https://github.com/castortech/rivet",
|
|
5
|
-
"version": "1.24.0-aidon.
|
|
5
|
+
"version": "1.24.0-aidon.13",
|
|
6
6
|
"src": "bin/cli.ts",
|
|
7
7
|
"bin": {
|
|
8
8
|
"rivet": "bin/cli.js"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dev:serve": "tsx src/cli.ts serve --projects-root-dir C:/temp/aidon/Rivet_Files"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@alpic80/rivet-core": "^1.24.0-aidon.
|
|
27
|
+
"@alpic80/rivet-core": "^1.24.0-aidon.5",
|
|
28
28
|
"@alpic80/rivet-node": "^1.24.0-aidon.3",
|
|
29
29
|
"@hono/node-server": "^1.13.8",
|
|
30
30
|
"@ironclad/rivet-core": "npm:@alpic80/rivet-core@1.24.0-aidon.4",
|