@geekmidas/cli 1.10.0 → 1.10.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekmidas/cli",
3
- "version": "1.10.0",
3
+ "version": "1.10.2",
4
4
  "description": "CLI tools for building Lambda handlers, server applications, and generating OpenAPI specs",
5
5
  "private": false,
6
6
  "type": "module",
@@ -56,11 +56,11 @@
56
56
  "prompts": "~2.4.2",
57
57
  "tsx": "~4.20.3",
58
58
  "yaml": "~2.8.2",
59
- "@geekmidas/constructs": "~3.0.0",
59
+ "@geekmidas/constructs": "~3.0.2",
60
60
  "@geekmidas/envkit": "~1.0.3",
61
61
  "@geekmidas/errors": "~1.0.0",
62
- "@geekmidas/logger": "~1.0.0",
63
- "@geekmidas/schema": "~1.0.0"
62
+ "@geekmidas/schema": "~1.0.0",
63
+ "@geekmidas/logger": "~1.0.0"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@types/lodash.kebabcase": "^4.1.9",
@@ -27,22 +27,22 @@ export const CLI_VERSION = `~${pkg.version}`;
27
27
  * Run: pnpm --filter @geekmidas/cli sync-versions
28
28
  */
29
29
  export const GEEKMIDAS_VERSIONS = {
30
- '@geekmidas/audit': '~1.0.0',
31
- '@geekmidas/auth': '~1.0.0',
32
- '@geekmidas/cache': '~1.0.0',
33
- '@geekmidas/client': '~3.0.0',
30
+ '@geekmidas/audit': '~2.0.0',
31
+ '@geekmidas/auth': '~2.0.0',
32
+ '@geekmidas/cache': '~1.1.0',
33
+ '@geekmidas/client': '~4.0.0',
34
34
  '@geekmidas/cloud': '~1.0.0',
35
- '@geekmidas/constructs': '~2.0.0',
35
+ '@geekmidas/constructs': '~3.0.2',
36
36
  '@geekmidas/db': '~1.0.0',
37
37
  '@geekmidas/emailkit': '~1.0.0',
38
38
  '@geekmidas/envkit': '~1.0.3',
39
39
  '@geekmidas/errors': '~1.0.0',
40
40
  '@geekmidas/events': '~1.1.0',
41
41
  '@geekmidas/logger': '~1.0.0',
42
- '@geekmidas/rate-limit': '~1.0.0',
42
+ '@geekmidas/rate-limit': '~2.0.0',
43
43
  '@geekmidas/schema': '~1.0.0',
44
44
  '@geekmidas/services': '~1.0.1',
45
- '@geekmidas/storage': '~1.0.0',
45
+ '@geekmidas/storage': '~2.0.0',
46
46
  '@geekmidas/studio': '~1.0.0',
47
47
  '@geekmidas/telescope': '~1.0.0',
48
48
  '@geekmidas/testkit': '~1.0.2',
@@ -2,7 +2,7 @@ import { existsSync } from 'node:fs';
2
2
  import { join } from 'node:path';
3
3
  import prompts from 'prompts';
4
4
  import { loadWorkspaceConfig } from '../config.js';
5
- import { startWorkspaceServices } from '../dev/index.js';
5
+ import { resolveServicePorts, startWorkspaceServices } from '../dev/index.js';
6
6
  import { createStageSecrets } from '../secrets/generator.js';
7
7
  import {
8
8
  readStageSecrets,
@@ -72,12 +72,13 @@ export async function setupCommand(options: SetupOptions = {}): Promise<void> {
72
72
  logger.log('📄 Generated docker/.env with database passwords');
73
73
  }
74
74
 
75
- // 4. Start Docker services
75
+ // 4. Start Docker services with resolved ports
76
76
  if (!options.skipDocker) {
77
77
  const composeFile = join(workspace.root, 'docker-compose.yml');
78
78
  if (existsSync(composeFile)) {
79
79
  logger.log('');
80
- await startWorkspaceServices(workspace);
80
+ const resolvedPorts = await resolveServicePorts(workspace.root);
81
+ await startWorkspaceServices(workspace, resolvedPorts.dockerEnv);
81
82
  } else {
82
83
  logger.log('⚠️ No docker-compose.yml found. Skipping Docker services.');
83
84
  }