@go-to-k/cdkd 0.230.17 → 0.230.18

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.
@@ -1992,6 +1992,21 @@ async function bucketExists(client, bucketName) {
1992
1992
  //#endregion
1993
1993
  //#region src/synthesis/synthesizer.ts
1994
1994
  /**
1995
+ * CDK CLI compatibility: a `--app` value pointing at an existing directory is
1996
+ * treated as a pre-synthesized cloud assembly — synthesis (the subprocess
1997
+ * execution) is skipped and the manifest is read directly. A `--app` value that
1998
+ * is a command (e.g. "node app.ts") or any path that is not an existing
1999
+ * directory is synthesized normally.
2000
+ *
2001
+ * Exported so callers can pick an accurate status message
2002
+ * ("Reading cloud assembly..." vs "Synthesizing CDK app...") BEFORE invoking
2003
+ * {@link Synthesizer.synthesize}, which is the single place that branches on it.
2004
+ */
2005
+ function isPreSynthesizedAssembly(app) {
2006
+ const appPath = resolve(app);
2007
+ return existsSync(appPath) && statSync(appPath).isDirectory();
2008
+ }
2009
+ /**
1995
2010
  * CDK app synthesizer
1996
2011
  *
1997
2012
  * Replaces @aws-cdk/toolkit-lib with self-implemented:
@@ -2016,7 +2031,7 @@ var Synthesizer = class {
2016
2031
  */
2017
2032
  async synthesize(options) {
2018
2033
  const appPath = resolve(options.app);
2019
- if (existsSync(appPath) && statSync(appPath).isDirectory()) {
2034
+ if (isPreSynthesizedAssembly(options.app)) {
2020
2035
  this.logger.debug(`Using pre-synthesized cloud assembly at ${appPath}`);
2021
2036
  const manifest = this.assemblyReader.readManifest(appPath);
2022
2037
  const stacks = this.assemblyReader.getAllStacks(appPath, manifest);
@@ -14160,5 +14175,5 @@ var DeployEngine = class {
14160
14175
  };
14161
14176
 
14162
14177
  //#endregion
14163
- export { CFN_TEMPLATE_BODY_LIMIT as $, LockManager as A, runDockerForeground as B, findActionableSilentDrops as C, DiffCalculator as D, applyRoleArnIfSet as E, stringifyValue as F, getDefaultStateBucketName as G, AssetManifestLoader as H, WorkGraph as I, resolveCaptureObservedState as J, getLegacyStateBucketName as K, buildDockerImage as L, rebuildClientForBucketRegion as M, shouldRetainResource as N, DagBuilder as O, AssetPublisher as P, warnDeprecatedNoPrefixCliFlag as Q, formatDockerLoginError as R, ProviderRegistry as S, IntrinsicFunctionResolver as T, getDockerImageBySourceHash as U, runDockerStreaming as V, Synthesizer as W, resolveStateBucketWithDefault as X, resolveSkipPrefix as Y, resolveStateBucketWithDefaultAndSource as Z, green as _, withRetry as a, clearBucketRegionCache as at, IAMRoleProvider as b, computeImplicitDeleteEdges as c, isStatefulRecreateTargetSync as d, CFN_TEMPLATE_URL_LIMIT as et, renderStatefulReason as f, gray as g, cyan as h, withResourceDeadline as i, AssemblyReader as it, S3StateBackend as j, TemplateParser as k, extractDeploymentEventError as l, bold as m, DEFAULT_RESOURCE_WARN_AFTER_MS as n, findLargeInlineResources as nt, isRetryableTransientError as o, resolveBucketRegion as ot, formatResourceLine as p, resolveApp as q, DeployEngine as r, uploadCfnTemplate as rt, IMPLICIT_DELETE_DEPENDENCIES as s, DEFAULT_RESOURCE_TIMEOUT_MS as t, MIGRATE_TMP_PREFIX as tt, MULTI_REGION_RECREATE_BLOCKED_TYPES as u, red as v, CloudControlProvider as w, collectInlinePolicyNamesManagedBySiblings as x, yellow as y, getDockerCmd as z };
14164
- //# sourceMappingURL=deploy-engine-CAG2RhWS.js.map
14178
+ export { warnDeprecatedNoPrefixCliFlag as $, LockManager as A, runDockerForeground as B, findActionableSilentDrops as C, DiffCalculator as D, applyRoleArnIfSet as E, stringifyValue as F, isPreSynthesizedAssembly as G, AssetManifestLoader as H, WorkGraph as I, resolveApp as J, getDefaultStateBucketName as K, buildDockerImage as L, rebuildClientForBucketRegion as M, shouldRetainResource as N, DagBuilder as O, AssetPublisher as P, resolveStateBucketWithDefaultAndSource as Q, formatDockerLoginError as R, ProviderRegistry as S, IntrinsicFunctionResolver as T, getDockerImageBySourceHash as U, runDockerStreaming as V, Synthesizer as W, resolveSkipPrefix as X, resolveCaptureObservedState as Y, resolveStateBucketWithDefault as Z, green as _, withRetry as a, AssemblyReader as at, IAMRoleProvider as b, computeImplicitDeleteEdges as c, isStatefulRecreateTargetSync as d, CFN_TEMPLATE_BODY_LIMIT as et, renderStatefulReason as f, gray as g, cyan as h, withResourceDeadline as i, uploadCfnTemplate as it, S3StateBackend as j, TemplateParser as k, extractDeploymentEventError as l, bold as m, DEFAULT_RESOURCE_WARN_AFTER_MS as n, MIGRATE_TMP_PREFIX as nt, isRetryableTransientError as o, clearBucketRegionCache as ot, formatResourceLine as p, getLegacyStateBucketName as q, DeployEngine as r, findLargeInlineResources as rt, IMPLICIT_DELETE_DEPENDENCIES as s, resolveBucketRegion as st, DEFAULT_RESOURCE_TIMEOUT_MS as t, CFN_TEMPLATE_URL_LIMIT as tt, MULTI_REGION_RECREATE_BLOCKED_TYPES as u, red as v, CloudControlProvider as w, collectInlinePolicyNamesManagedBySiblings as x, yellow as y, getDockerCmd as z };
14179
+ //# sourceMappingURL=deploy-engine-CXgQSFYL.js.map