@theholocron/cli 4.18.0 → 4.18.1
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.mjs +13 -5
- package/dist/cli.mjs.map +1 -1
- package/package.json +5 -5
package/dist/cli.mjs
CHANGED
|
@@ -4484,6 +4484,7 @@ const { workflowHeader: workflowHeader$1 } = createHeader({
|
|
|
4484
4484
|
});
|
|
4485
4485
|
async function runSetup(input) {
|
|
4486
4486
|
const print = input.print ?? ((line) => console.log(line));
|
|
4487
|
+
const logger = getLogger();
|
|
4487
4488
|
const loader = input.loader ?? new PluginLoader(input.loaded.resolved, input.context);
|
|
4488
4489
|
await withSpinner("Loading plugins…", () => loader.load());
|
|
4489
4490
|
assertPluginsResolvable(loader, "setup");
|
|
@@ -4530,7 +4531,8 @@ async function runSetup(input) {
|
|
|
4530
4531
|
if (config.extraRequiredChecks) tasksConfig.extraRequiredChecks = config.extraRequiredChecks;
|
|
4531
4532
|
const requiredChecks = effectivePreset === "strict" ? ["DCO", ...createAstromech({
|
|
4532
4533
|
cwd: input.context.repoRoot,
|
|
4533
|
-
config: tasksConfig
|
|
4534
|
+
config: tasksConfig,
|
|
4535
|
+
logger
|
|
4534
4536
|
}).requiredChecks()] : [];
|
|
4535
4537
|
steps.push(await upsertBranchProtection(source, dryRun, requiredChecks));
|
|
4536
4538
|
print(formatStep(steps[steps.length - 1]));
|
|
@@ -4546,7 +4548,8 @@ async function runSetup(input) {
|
|
|
4546
4548
|
orgContext: {
|
|
4547
4549
|
org: config.org,
|
|
4548
4550
|
domain: config.domain
|
|
4549
|
-
}
|
|
4551
|
+
},
|
|
4552
|
+
logger
|
|
4550
4553
|
}).thinCallers();
|
|
4551
4554
|
for (const entry of tasks) {
|
|
4552
4555
|
const name = typeof entry === "string" ? entry : entry.name;
|
|
@@ -4649,7 +4652,10 @@ async function runSetup(input) {
|
|
|
4649
4652
|
message: "no test workflow configured"
|
|
4650
4653
|
});
|
|
4651
4654
|
else steps.push(await runStep("source", "write codecov.yml", dryRun, async () => {
|
|
4652
|
-
const content = createAstromech({
|
|
4655
|
+
const content = createAstromech({
|
|
4656
|
+
cwd: input.context.repoRoot,
|
|
4657
|
+
logger
|
|
4658
|
+
}).codecovConfig(existing);
|
|
4653
4659
|
await source.writeRepoFile("codecov.yml", content);
|
|
4654
4660
|
const packageCount = readWorkspacePackages(input.context.repoRoot).length;
|
|
4655
4661
|
return packageCount > 0 ? `${packageCount} components` : "no components";
|
|
@@ -5788,7 +5794,8 @@ async function runSync(input) {
|
|
|
5788
5794
|
orgContext: {
|
|
5789
5795
|
org: config.org,
|
|
5790
5796
|
domain: config.domain
|
|
5791
|
-
}
|
|
5797
|
+
},
|
|
5798
|
+
logger
|
|
5792
5799
|
}).thinCallers();
|
|
5793
5800
|
for (const entry of taskEntries) {
|
|
5794
5801
|
const name = typeof entry === "string" ? entry : entry.name;
|
|
@@ -5826,7 +5833,8 @@ async function runSync(input) {
|
|
|
5826
5833
|
if (config.holocronScript !== void 0) tasksConfig.holocronScript = config.holocronScript;
|
|
5827
5834
|
const desired = createAstromech({
|
|
5828
5835
|
cwd: input.context.repoRoot,
|
|
5829
|
-
config: tasksConfig
|
|
5836
|
+
config: tasksConfig,
|
|
5837
|
+
logger
|
|
5830
5838
|
}).packageScripts();
|
|
5831
5839
|
steps.push(await runSyncStep("local", "sync scripts", dryRun, async () => {
|
|
5832
5840
|
const changed = await mergePackageJsonScripts(input.context.repoRoot, desired);
|