@theholocron/cli 4.5.0 → 4.7.0
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 +6 -2
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +26 -13
- package/dist/index.mjs +1 -0
- package/package.json +5 -5
package/dist/cli.mjs
CHANGED
|
@@ -4,6 +4,7 @@ import { existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSy
|
|
|
4
4
|
import path, { basename, dirname, join, relative, resolve } from "node:path";
|
|
5
5
|
import { checkbox, input, select } from "@inquirer/prompts";
|
|
6
6
|
import { KNOWN_WORKFLOWS, WORKFLOW_CHECK_CONTEXTS, WORKFLOW_TEMPLATES, createAstromech, deriveDeployPaths, extractPreviewConfig, generateCombinedDeployContent, generateThinCallerContent, lintThinCallerWith, normalizeWorkflowWith } from "@theholocron/astromech";
|
|
7
|
+
import { loadTasksConfig } from "@theholocron/astromech/config";
|
|
7
8
|
import yargs from "yargs";
|
|
8
9
|
import { hideBin } from "yargs/helpers";
|
|
9
10
|
import { AuthError, ProviderApiError, ProviderApiError as ProviderApiError$1, createRestClient } from "@theholocron/http-client";
|
|
@@ -282,6 +283,7 @@ function resolveConfig(raw) {
|
|
|
282
283
|
tasks: raw.tasks,
|
|
283
284
|
syncScripts: raw.syncScripts,
|
|
284
285
|
holocronScript: raw.holocronScript,
|
|
286
|
+
extraRequiredChecks: raw.extraRequiredChecks,
|
|
285
287
|
providers,
|
|
286
288
|
apps: raw.apps ?? [],
|
|
287
289
|
doctor: raw.doctor ?? {},
|
|
@@ -7064,11 +7066,13 @@ try {
|
|
|
7064
7066
|
type: "boolean",
|
|
7065
7067
|
default: false,
|
|
7066
7068
|
describe: "Fail (exit 1) if this repo has no such task, instead of skipping."
|
|
7067
|
-
}), (argv) => {
|
|
7069
|
+
}), async (argv) => {
|
|
7068
7070
|
const { logger } = buildCliLogger(argv, { command: "run" });
|
|
7071
|
+
const config = await loadTasksConfig(argv.cwd).catch(() => void 0);
|
|
7069
7072
|
const report = createAstromech({
|
|
7070
7073
|
cwd: argv.cwd,
|
|
7071
|
-
logger
|
|
7074
|
+
logger,
|
|
7075
|
+
config
|
|
7072
7076
|
}).run(argv.task, {
|
|
7073
7077
|
passthrough: argv.passthrough ?? [],
|
|
7074
7078
|
dryRun: argv.dryRun,
|