@theholocron/cli 5.0.0-alpha.148 → 5.0.0-alpha.149
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 +5 -4
- package/dist/cli.mjs.map +1 -1
- package/dist/index.mjs +5 -4
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -510,12 +510,13 @@ async function loadConfig(cwd) {
|
|
|
510
510
|
});
|
|
511
511
|
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.`);
|
|
512
512
|
return {
|
|
513
|
-
resolved: resolveConfig(await deriveDefaults(
|
|
513
|
+
resolved: resolveConfig(await deriveDefaults(found)),
|
|
514
514
|
filepath: found.filepath
|
|
515
515
|
};
|
|
516
516
|
}
|
|
517
|
-
async function deriveDefaults(
|
|
518
|
-
const
|
|
517
|
+
async function deriveDefaults(found) {
|
|
518
|
+
const configDir = dirname(found.filepath);
|
|
519
|
+
const result = { ...found.config };
|
|
519
520
|
if (!result.name) result.name = await readPackageJsonName(configDir) ?? basename(configDir);
|
|
520
521
|
if (result.repo && !result.repo.name) {
|
|
521
522
|
const remote = await readGitRemote(configDir);
|
|
@@ -524,7 +525,7 @@ async function deriveDefaults(configDir, raw) {
|
|
|
524
525
|
name: remote.slug
|
|
525
526
|
};
|
|
526
527
|
}
|
|
527
|
-
const manifest = await loadTasksConfig(configDir);
|
|
528
|
+
const manifest = await loadTasksConfig(configDir, { holocron: found });
|
|
528
529
|
if (manifest.tasks) result.tasks = manifest.tasks;
|
|
529
530
|
if (manifest.syncScripts !== void 0) result.syncScripts = manifest.syncScripts;
|
|
530
531
|
if (manifest.holocronScript !== void 0) result.holocronScript = manifest.holocronScript;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/cli",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.149",
|
|
4
4
|
"description": "The Holocron CLI - a pluggable, capability-based orchestrator for spinning up and operating software projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"pino-pretty": "^13.1.3",
|
|
66
66
|
"posthog-node": "^5.51.6",
|
|
67
67
|
"yargs": "^18.1.0",
|
|
68
|
-
"@theholocron/astromech": "5.0.0-alpha.
|
|
69
|
-
"@theholocron/datapad": "5.0.0-alpha.
|
|
68
|
+
"@theholocron/astromech": "5.0.0-alpha.149",
|
|
69
|
+
"@theholocron/datapad": "5.0.0-alpha.149"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@commitlint/config-conventional": "^21.2.3",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"tsx": "4.23.12",
|
|
86
86
|
"typescript": "^5.9.3",
|
|
87
87
|
"vitest": "^4.1.11",
|
|
88
|
-
"@theholocron/rollup-plugin-transform-template": "5.0.0-alpha.
|
|
88
|
+
"@theholocron/rollup-plugin-transform-template": "5.0.0-alpha.149"
|
|
89
89
|
},
|
|
90
90
|
"engines": {
|
|
91
91
|
"node": ">=22.0.0"
|