@geekmidas/cli 0.37.0 → 0.38.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 +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/dev/__tests__/entry-integration.spec.ts +86 -2
- package/src/dev/index.ts +6 -2
package/dist/index.mjs
CHANGED
|
@@ -26,7 +26,7 @@ import prompts from "prompts";
|
|
|
26
26
|
|
|
27
27
|
//#region package.json
|
|
28
28
|
var name = "@geekmidas/cli";
|
|
29
|
-
var version = "0.
|
|
29
|
+
var version = "0.38.0";
|
|
30
30
|
var description = "CLI tools for building Lambda handlers, server applications, and generating OpenAPI specs";
|
|
31
31
|
var private$1 = false;
|
|
32
32
|
var type = "module";
|
|
@@ -1579,7 +1579,8 @@ async function prepareEntryCredentials(options) {
|
|
|
1579
1579
|
workspaceAppPort = appConfig.app.port;
|
|
1580
1580
|
secretsRoot = appConfig.workspaceRoot;
|
|
1581
1581
|
appName = appConfig.appName;
|
|
1582
|
-
} catch {
|
|
1582
|
+
} catch (error) {
|
|
1583
|
+
logger$8.log(`⚠️ Could not load workspace config: ${error.message}`);
|
|
1583
1584
|
secretsRoot = findSecretsRoot(cwd);
|
|
1584
1585
|
appName = getAppNameFromCwd(cwd) ?? void 0;
|
|
1585
1586
|
}
|
|
@@ -1609,7 +1610,7 @@ async function entryDevCommand(options) {
|
|
|
1609
1610
|
if (!existsSync(entryPath)) throw new Error(`Entry file not found: ${entryPath}`);
|
|
1610
1611
|
const defaultEnv = loadEnvFiles(".env");
|
|
1611
1612
|
if (defaultEnv.loaded.length > 0) logger$8.log(`📦 Loaded env: ${defaultEnv.loaded.join(", ")}`);
|
|
1612
|
-
const { credentials, resolvedPort, secretsJsonPath, appName } = await prepareEntryCredentials({ explicitPort: options.port });
|
|
1613
|
+
const { credentials, resolvedPort, secretsJsonPath, appName } = await prepareEntryCredentials({ explicitPort: options.portExplicit ? options.port : void 0 });
|
|
1613
1614
|
if (appName) logger$8.log(`📦 App: ${appName} (port ${resolvedPort})`);
|
|
1614
1615
|
logger$8.log(`🚀 Starting entry file: ${entry} on port ${resolvedPort}`);
|
|
1615
1616
|
if (Object.keys(credentials).length > 1) logger$8.log(`🔐 Loaded ${Object.keys(credentials).length - 1} secret(s) + PORT`);
|