@lark-apaas/fullstack-cli 1.1.66-alpha.20260902183957 → 1.1.66-alpha.20260902192310

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": "@lark-apaas/fullstack-cli",
3
- "version": "1.1.66-alpha.20260902183957",
3
+ "version": "1.1.66-alpha.20260902192310",
4
4
  "description": "CLI tool for fullstack template management",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -72,14 +72,16 @@ const publicPort = Number(process.env.SERVER_PORT || 3000);
72
72
  const logDir = path.resolve(projectRoot, process.env.LOG_DIR || 'logs');
73
73
  const readinessPath =
74
74
  process.env.MIAODA_NEST_READINESS_PATH || '/__innerapi__/capability/list';
75
- const clientBasePath =
76
- process.env.CLIENT_BASE_PATH?.startsWith('/') &&
77
- !process.env.CLIENT_BASE_PATH.startsWith('//')
78
- ? process.env.CLIENT_BASE_PATH.replace(/\/+$/, '')
79
- : '';
80
- const sourceReadinessPath = clientBasePath
81
- ? `${clientBasePath}/__innerapi__/capability/list`
82
- : readinessPath;
75
+ function resolveSourceReadinessPath(baseEnv) {
76
+ const clientBasePath =
77
+ baseEnv.CLIENT_BASE_PATH?.startsWith('/') &&
78
+ !baseEnv.CLIENT_BASE_PATH.startsWith('//')
79
+ ? baseEnv.CLIENT_BASE_PATH.replace(/\/+$/, '')
80
+ : '';
81
+ return clientBasePath
82
+ ? `${clientBasePath}/__innerapi__/capability/list`
83
+ : readinessPath;
84
+ }
83
85
  const sourceReadyTimeoutMs = positiveDuration(
84
86
  'MIAODA_NEST_SOURCE_READY_TIMEOUT_MS',
85
87
  60_000
@@ -1667,7 +1669,7 @@ async function startAndPromoteSource(baseEnv, expectedCapabilityIds) {
1667
1669
  candidate,
1668
1670
  sourceReadyTimeoutMs,
1669
1671
  expectedCapabilityIds,
1670
- sourceReadinessPath
1672
+ resolveSourceReadinessPath(baseEnv)
1671
1673
  );
1672
1674
  } catch (error) {
1673
1675
  try {