@theholocron/cli 5.0.0-alpha.112 → 5.0.0-alpha.114

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/index.d.mts CHANGED
@@ -744,9 +744,13 @@ interface LoadedConfig {
744
744
  filepath: string;
745
745
  }
746
746
  /**
747
- * Read + parse + resolve `holocron.config.*` from the given directory.
747
+ * Read + parse + resolve `holocron.config.*` starting from the given
748
+ * directory, walking up through ancestors to the nearest `.git` boundary
749
+ * when `cwd` itself has no match — every command is usable from any
750
+ * subdirectory of a repo, not only its exact root (see
751
+ * `@theholocron/datapad`'s own doc comment for the stop conditions).
748
752
  * Throws {@link ConfigFileError} when nothing is found or a file cannot
749
- * be loaded, or `ConfigError` when the config is invalid.
753
+ * be loaded, or `ConfigError` when the config fails schema checks.
750
754
  */
751
755
  declare function loadConfig(cwd: string): Promise<LoadedConfig>;
752
756
  //#endregion
package/dist/index.mjs CHANGED
@@ -495,14 +495,19 @@ function defineConfig(config) {
495
495
  */
496
496
  const execFileAsync = promisify(execFile);
497
497
  /**
498
- * Read + parse + resolve `holocron.config.*` from the given directory.
498
+ * Read + parse + resolve `holocron.config.*` starting from the given
499
+ * directory, walking up through ancestors to the nearest `.git` boundary
500
+ * when `cwd` itself has no match — every command is usable from any
501
+ * subdirectory of a repo, not only its exact root (see
502
+ * `@theholocron/datapad`'s own doc comment for the stop conditions).
499
503
  * Throws {@link ConfigFileError} when nothing is found or a file cannot
500
- * be loaded, or `ConfigError` when the config is invalid.
504
+ * be loaded, or `ConfigError` when the config fails schema checks.
501
505
  */
502
506
  async function loadConfig(cwd) {
503
507
  const found = await loadConfigFile({
504
508
  cwd,
505
- name: "holocron"
509
+ name: "holocron",
510
+ walkUp: true
506
511
  });
507
512
  if (!found) throw new ConfigFileError$1(`no holocron.config.{ts,js,mjs,cjs,json} found in ${cwd}. Create one — see the README for the schema.`);
508
513
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "5.0.0-alpha.112",
3
+ "version": "5.0.0-alpha.114",
4
4
  "description": "The Holocron CLI - a pluggable, capability-based orchestrator for spinning up and operating software projects.",
5
5
  "keywords": [
6
6
  "cli",
@@ -60,8 +60,8 @@
60
60
  "pino-pretty": "^13.1.3",
61
61
  "posthog-node": "^5.51.6",
62
62
  "yargs": "^18.1.0",
63
- "@theholocron/datapad": "5.0.0-alpha.112",
64
- "@theholocron/astromech": "5.0.0-alpha.112"
63
+ "@theholocron/datapad": "5.0.0-alpha.114",
64
+ "@theholocron/astromech": "5.0.0-alpha.114"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@commitlint/config-conventional": "^21.2.3",
@@ -80,7 +80,7 @@
80
80
  "tsx": "4.23.12",
81
81
  "typescript": "^5.9.3",
82
82
  "vitest": "^4.1.11",
83
- "@theholocron/rollup-plugin-transform-template": "5.0.0-alpha.112"
83
+ "@theholocron/rollup-plugin-transform-template": "5.0.0-alpha.114"
84
84
  },
85
85
  "engines": {
86
86
  "node": ">=22.0.0"