cdk-real-drift 0.2.65 → 0.2.66
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/cli.js +5 -4
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -854,9 +854,9 @@ async function resolveStacks(a) {
|
|
|
854
854
|
}
|
|
855
855
|
if (matched === 0) throw new Error(`glob "${name}" matched no stacks defined by the CDK app (found: ${known()})`);
|
|
856
856
|
} else {
|
|
857
|
-
const
|
|
858
|
-
if (
|
|
859
|
-
add(hit.stackName, hit.region ?? fallbackRegion, hit.template);
|
|
857
|
+
const hits = discovered.filter((s) => s.stackName === name);
|
|
858
|
+
if (hits.length === 0) throw new Error(`stack "${name}" is not defined by the CDK app (found: ${known()})`);
|
|
859
|
+
for (const hit of hits) add(hit.stackName, hit.region ?? fallbackRegion, hit.template);
|
|
860
860
|
}
|
|
861
861
|
if (out.length === 0) throw new Error(`no stacks match ${a.stackNames.join(", ")} (found: ${known()})`);
|
|
862
862
|
return out;
|
|
@@ -13779,7 +13779,8 @@ async function runCheck(args) {
|
|
|
13779
13779
|
return 2;
|
|
13780
13780
|
}
|
|
13781
13781
|
if (stacks.length === 0) {
|
|
13782
|
-
console.
|
|
13782
|
+
if (a.json) console.log("[]");
|
|
13783
|
+
else console.error("note: the CDK app defines no stacks — nothing to check");
|
|
13783
13784
|
return 0;
|
|
13784
13785
|
}
|
|
13785
13786
|
if (!a.json) {
|