@topolo/cli 0.5.2 → 0.6.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.
@@ -591,6 +591,9 @@ function emitCloudcontrol() {
591
591
  const cc = { ...existing };
592
592
  cc.name = manifest.name;
593
593
  const deployableTargets = Object.values(manifest.targets).filter((t) => t.kind !== 'none');
594
+ const deployableEnvironments = new Set(
595
+ deployableTargets.flatMap((target) => target.environments || ENVS),
596
+ );
594
597
  cc.deploy_method = deployableTargets.length ? 'wrangler' : 'none';
595
598
  cc.ci_provider = existing.ci_provider || 'github_actions';
596
599
  cc.quality_policy = existing.quality_policy || {
@@ -600,7 +603,7 @@ function emitCloudcontrol() {
600
603
  };
601
604
  cc.repo_identity = existing.repo_identity || cc.repo_identity;
602
605
 
603
- cc.environments = ENVS.map((env) => {
606
+ cc.environments = ENVS.filter((env) => deployableEnvironments.has(env)).map((env) => {
604
607
  const publicTarget = firstPublicTarget(env);
605
608
  const host = publicTarget ? primaryHost(publicTarget, env) : null;
606
609
  return {