@codedrifters/configulator 0.0.443 → 0.0.445
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/lib/index.d.mts +29 -8
- package/lib/index.d.ts +29 -8
- package/lib/index.js +26 -3
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +26 -3
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -42643,6 +42643,28 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends Component25 {
|
|
|
42643
42643
|
target.region
|
|
42644
42644
|
].join("-");
|
|
42645
42645
|
};
|
|
42646
|
+
/**
|
|
42647
|
+
* Build a diff job's `concurrency` setting from its job name.
|
|
42648
|
+
*
|
|
42649
|
+
* Always the object form, unlike {@link buildDeployConcurrency}: a diff job
|
|
42650
|
+
* has no legacy bare-string shape to stay byte-identical with, and
|
|
42651
|
+
* `cancel-in-progress` is load-bearing enough here to spell out. It must
|
|
42652
|
+
* stay `false` — a superseded diff cancelled mid-`CreateChangeSet`
|
|
42653
|
+
* leaves the fixed-name change set occupied for whichever run comes next,
|
|
42654
|
+
* which is the failure the group exists to prevent.
|
|
42655
|
+
*
|
|
42656
|
+
* Carries the branch under
|
|
42657
|
+
* {@link DeployWorkflowOptions.branchScopedConcurrency} for the same reason
|
|
42658
|
+
* the deploy group does: when stack names are derived from the branch, two
|
|
42659
|
+
* branches diff separate stacks and therefore separate change sets, so one
|
|
42660
|
+
* repo-wide lock across all of them would queue for nothing.
|
|
42661
|
+
*/
|
|
42662
|
+
this.buildDiffConcurrency = (diffJobName) => {
|
|
42663
|
+
return {
|
|
42664
|
+
group: this.branchScopedConcurrency ? `${diffJobName}-${BRANCH_NAME_EXPRESSION}` : diffJobName,
|
|
42665
|
+
"cancel-in-progress": false
|
|
42666
|
+
};
|
|
42667
|
+
};
|
|
42646
42668
|
/**
|
|
42647
42669
|
* Build the slug that makes a target unique among every target in the plan
|
|
42648
42670
|
* workflow, across every deploy component feeding it.
|
|
@@ -43275,6 +43297,7 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends Component25 {
|
|
|
43275
43297
|
contents: JobPermission7.READ,
|
|
43276
43298
|
idToken: JobPermission7.WRITE
|
|
43277
43299
|
},
|
|
43300
|
+
concurrency: this.buildDiffConcurrency(diffJobName),
|
|
43278
43301
|
if: jobCondition,
|
|
43279
43302
|
steps: [...this.diffSteps(target)]
|
|
43280
43303
|
});
|
|
@@ -44170,13 +44193,13 @@ var StarlightProject = class extends AstroProject {
|
|
|
44170
44193
|
if (turbo?.compileTask) {
|
|
44171
44194
|
turbo.compileTask.inputs.push("src/content/**");
|
|
44172
44195
|
}
|
|
44196
|
+
new SampleFile7(this, "src/content.config.ts", {
|
|
44197
|
+
contents: DEFAULT_CONTENT_CONFIG_TS
|
|
44198
|
+
});
|
|
44173
44199
|
if (userOptions.sampleContent === true) {
|
|
44174
44200
|
new SampleFile7(this, "src/content/docs/index.mdx", {
|
|
44175
44201
|
contents: DEFAULT_INDEX_MDX
|
|
44176
44202
|
});
|
|
44177
|
-
new SampleFile7(this, "src/content.config.ts", {
|
|
44178
|
-
contents: DEFAULT_CONTENT_CONFIG_TS
|
|
44179
|
-
});
|
|
44180
44203
|
}
|
|
44181
44204
|
}
|
|
44182
44205
|
};
|