@theholocron/cli 2.0.0-alpha.25 → 2.0.0-alpha.27

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 CHANGED
@@ -3588,23 +3588,31 @@ const ALEX_CONFIG = JSON.stringify({ allow: [
3588
3588
  "husky",
3589
3589
  "period"
3590
3590
  ] }, null, 2) + "\n";
3591
- const LABELER_CONFIG = `\
3592
- # AUTO-GENERATED by holocron — run \`holocron setup\` to regenerate.
3593
- bug:
3594
- - '^fix'
3595
-
3596
- dependencies:
3597
- - '^chore\\(deps'
3598
-
3599
- documentation:
3600
- - '^docs'
3601
-
3602
- enhancement:
3603
- - '^feat'
3604
-
3605
- github_actions:
3606
- - '^ci'
3607
- `;
3591
+ function labelerConfig() {
3592
+ return [
3593
+ `# AUTO-GENERATED — do not edit directly.`,
3594
+ `# Source: theholocron/holocron · packages/cli/src/commands/setup.ts`,
3595
+ `# Synced: ${(/* @__PURE__ */ new Date()).toISOString()}`,
3596
+ `# Tool: holocron setup`,
3597
+ `# Changes: run \`holocron setup\` to regenerate.`,
3598
+ ``,
3599
+ `bug:`,
3600
+ ` - '^fix'`,
3601
+ ``,
3602
+ `dependencies:`,
3603
+ ` - '^chore\\(deps'`,
3604
+ ``,
3605
+ `documentation:`,
3606
+ ` - '^docs'`,
3607
+ ``,
3608
+ `enhancement:`,
3609
+ ` - '^feat'`,
3610
+ ``,
3611
+ `github_actions:`,
3612
+ ` - '^ci'`,
3613
+ ``
3614
+ ].join("\n");
3615
+ }
3608
3616
  const DEPENDABOT_CONFIG = `\
3609
3617
  # AUTO-GENERATED by holocron — run \`holocron setup\` to regenerate.
3610
3618
  version: 2
@@ -3834,7 +3842,7 @@ async function runSetup(input) {
3834
3842
  if (loader.has("source") && (config.project.workflows ?? []).map((e) => typeof e === "string" ? e : e.name).includes("bookkeeping-pr")) {
3835
3843
  const source = loader.get("source");
3836
3844
  steps.push(await runStep("source", "write .github/labeler.yml", dryRun, async () => {
3837
- await source.writeRepoFile(".github/labeler.yml", LABELER_CONFIG);
3845
+ await source.writeRepoFile(".github/labeler.yml", labelerConfig());
3838
3846
  }));
3839
3847
  print(formatStep(steps[steps.length - 1]));
3840
3848
  }
@@ -4044,8 +4052,7 @@ async function loadJs(filepath) {
4044
4052
  }
4045
4053
  async function loadTs(filepath) {
4046
4054
  const { tsImport } = await import("tsx/esm/api");
4047
- const outer = await tsImport(pathToFileURL(filepath).href, import.meta.url);
4048
- return extractAndResolve(filepath, outer.default ?? outer);
4055
+ return extractAndResolve(filepath, await tsImport(pathToFileURL(filepath).href, import.meta.url));
4049
4056
  }
4050
4057
  function extractAndResolve(filepath, mod) {
4051
4058
  const raw = mod.default;
package/dist/index.mjs CHANGED
@@ -260,8 +260,7 @@ async function loadJs(filepath) {
260
260
  }
261
261
  async function loadTs(filepath) {
262
262
  const { tsImport } = await import("tsx/esm/api");
263
- const outer = await tsImport(pathToFileURL(filepath).href, import.meta.url);
264
- return extractAndResolve(filepath, outer.default ?? outer);
263
+ return extractAndResolve(filepath, await tsImport(pathToFileURL(filepath).href, import.meta.url));
265
264
  }
266
265
  function extractAndResolve(filepath, mod) {
267
266
  const raw = mod.default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "2.0.0-alpha.25",
3
+ "version": "2.0.0-alpha.27",
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",