@geekmidas/cli 0.33.0 → 0.34.0
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/index.cjs +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/dev/index.ts +5 -2
package/dist/index.cjs
CHANGED
|
@@ -27,7 +27,7 @@ const node_module = require_chunk.__toESM(require("node:module"));
|
|
|
27
27
|
|
|
28
28
|
//#region package.json
|
|
29
29
|
var name = "@geekmidas/cli";
|
|
30
|
-
var version = "0.
|
|
30
|
+
var version = "0.34.0";
|
|
31
31
|
var description = "CLI tools for building Lambda handlers, server applications, and generating OpenAPI specs";
|
|
32
32
|
var private$1 = false;
|
|
33
33
|
var type = "module";
|
|
@@ -1020,13 +1020,15 @@ async function devCommand(options) {
|
|
|
1020
1020
|
let appRoot = process.cwd();
|
|
1021
1021
|
let secretsRoot = process.cwd();
|
|
1022
1022
|
let workspaceAppName;
|
|
1023
|
+
let workspaceAppPort;
|
|
1023
1024
|
if (appName) try {
|
|
1024
1025
|
const appConfig = await require_config.loadAppConfig();
|
|
1025
1026
|
config = appConfig.gkmConfig;
|
|
1026
1027
|
appRoot = appConfig.appRoot;
|
|
1027
1028
|
secretsRoot = appConfig.workspaceRoot;
|
|
1028
1029
|
workspaceAppName = appConfig.appName;
|
|
1029
|
-
|
|
1030
|
+
workspaceAppPort = appConfig.app.port;
|
|
1031
|
+
logger$8.log(`📦 Running app: ${appConfig.appName} on port ${workspaceAppPort}`);
|
|
1030
1032
|
} catch {
|
|
1031
1033
|
const loadedConfig = await require_config.loadWorkspaceConfig();
|
|
1032
1034
|
if (loadedConfig.type === "workspace") {
|
|
@@ -1087,7 +1089,7 @@ async function devCommand(options) {
|
|
|
1087
1089
|
await (0, node_fs_promises.writeFile)(secretsJsonPath, JSON.stringify(appSecrets, null, 2));
|
|
1088
1090
|
logger$8.log(`🔐 Loaded ${Object.keys(appSecrets).length} secret(s)`);
|
|
1089
1091
|
}
|
|
1090
|
-
const devServer = new DevServer(resolved.providers[0], options.port
|
|
1092
|
+
const devServer = new DevServer(resolved.providers[0], options.port ?? workspaceAppPort ?? 3e3, options.portExplicit ?? false, enableOpenApi, telescope, studio, runtime, appRoot, secretsJsonPath);
|
|
1091
1093
|
await devServer.start();
|
|
1092
1094
|
const envParserFile = config.envParser.split("#")[0] ?? config.envParser;
|
|
1093
1095
|
const loggerFile = config.logger.split("#")[0] ?? config.logger;
|