@theholocron/cli 2.0.0-alpha.71 → 2.0.0-alpha.72

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.
Files changed (2) hide show
  1. package/dist/cli.mjs +14 -6
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -3261,14 +3261,22 @@ async function runSetup(input) {
3261
3261
  await source.writeRepoFile(".editorconfig-checker.json", EDITORCONFIG_CHECKER_CONFIG);
3262
3262
  }));
3263
3263
  print(formatStep(steps[steps.length - 1]));
3264
- steps.push(await runStep("source", "write codecov.yml", dryRun, async () => {
3264
+ {
3265
3265
  const packages = await readWorkspacePackages(input.context.repoRoot);
3266
3266
  const existing = await readFile(join(input.context.repoRoot, "codecov.yml"), "utf8").catch(() => null);
3267
- const content = existing != null ? mergeCodecovComponents(existing, packages) : codecovContent(packages);
3268
- await source.writeRepoFile("codecov.yml", content);
3269
- return packages.length > 0 ? `${packages.length} components` : "no components";
3270
- }));
3271
- print(formatStep(steps[steps.length - 1]));
3267
+ if (packages.length === 0 && existing == null) steps.push({
3268
+ capability: "source",
3269
+ step: "write codecov.yml",
3270
+ status: "skip",
3271
+ message: "no packages and no existing codecov.yml"
3272
+ });
3273
+ else steps.push(await runStep("source", "write codecov.yml", dryRun, async () => {
3274
+ const content = existing != null ? mergeCodecovComponents(existing, packages) : codecovContent(packages);
3275
+ await source.writeRepoFile("codecov.yml", content);
3276
+ return packages.length > 0 ? `${packages.length} components` : "no components";
3277
+ }));
3278
+ print(formatStep(steps[steps.length - 1]));
3279
+ }
3272
3280
  if (source.syncLabels) {
3273
3281
  steps.push(await runStep("source", "sync labels", dryRun, async () => {
3274
3282
  return source.syncLabels(CANONICAL_LABELS, STALE_LABELS);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "2.0.0-alpha.71",
3
+ "version": "2.0.0-alpha.72",
4
4
  "description": "The Holocron CLI — a pluggable, capability-based orchestrator for spinning up and operating software projects.",
5
5
  "homepage": "https://github.com/theholocron/holocron/tree/main/packages/cli#readme",
6
6
  "bugs": "https://github.com/theholocron/holocron/issues",