@theholocron/cli 2.0.0-alpha.34 → 2.0.0-alpha.35

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 +38 -29
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -3581,34 +3581,43 @@ function vaultProviderName(loader) {
3581
3581
  }
3582
3582
  //#endregion
3583
3583
  //#region src/commands/setup.ts
3584
- const EDITORCONFIG = `\
3585
- root = true
3586
-
3587
- [*]
3588
- end_of_line = lf
3589
- charset = utf-8
3590
- trim_trailing_whitespace = true
3591
- insert_final_newline = true
3592
- indent_style = tab
3593
- indent_size = 4
3594
-
3595
- [.gitattributes]
3596
- indent_style = space
3597
- indent_size = 2
3598
-
3599
- [*.{json,yml,yaml}]
3600
- indent_style = space
3601
- indent_size = 2
3602
-
3603
- [*.md]
3604
- trim_trailing_whitespace = false
3605
- indent_style = space
3606
- indent_size = 2
3607
-
3608
- [.*{rc,ignore}]
3609
- indent_style = space
3610
- indent_size = 2
3611
- `;
3584
+ function editorconfigContent() {
3585
+ return [
3586
+ `# AUTO-GENERATED — do not edit directly.`,
3587
+ `# Source: theholocron/holocron · packages/cli/src/commands/setup.ts`,
3588
+ `# Synced: ${(/* @__PURE__ */ new Date()).toISOString()}`,
3589
+ `# Tool: holocron setup`,
3590
+ `# Changes: run \`holocron setup\` to regenerate.`,
3591
+ ``,
3592
+ `root = true`,
3593
+ ``,
3594
+ `[*]`,
3595
+ `end_of_line = lf`,
3596
+ `charset = utf-8`,
3597
+ `trim_trailing_whitespace = true`,
3598
+ `insert_final_newline = true`,
3599
+ `indent_style = tab`,
3600
+ `indent_size = 4`,
3601
+ ``,
3602
+ `[.gitattributes]`,
3603
+ `indent_style = space`,
3604
+ `indent_size = 2`,
3605
+ ``,
3606
+ `[*.{json,yml,yaml}]`,
3607
+ `indent_style = space`,
3608
+ `indent_size = 2`,
3609
+ ``,
3610
+ `[*.md]`,
3611
+ `trim_trailing_whitespace = false`,
3612
+ `indent_style = space`,
3613
+ `indent_size = 2`,
3614
+ ``,
3615
+ `[.*{rc,ignore}]`,
3616
+ `indent_style = space`,
3617
+ `indent_size = 2`,
3618
+ ``
3619
+ ].join("\n");
3620
+ }
3612
3621
  const EDITORCONFIG_CHECKER_CONFIG = JSON.stringify({
3613
3622
  Version: "v3.7.0",
3614
3623
  Verbose: false,
@@ -3910,7 +3919,7 @@ async function runSetup(input) {
3910
3919
  }));
3911
3920
  print(formatStep(steps[steps.length - 1]));
3912
3921
  steps.push(await runStep("source", "write .editorconfig", dryRun, async () => {
3913
- await source.writeRepoFile(".editorconfig", EDITORCONFIG);
3922
+ await source.writeRepoFile(".editorconfig", editorconfigContent());
3914
3923
  }));
3915
3924
  print(formatStep(steps[steps.length - 1]));
3916
3925
  steps.push(await runStep("source", "write .editorconfig-checker.json", dryRun, async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "2.0.0-alpha.34",
3
+ "version": "2.0.0-alpha.35",
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",