@theholocron/cli 4.6.0 → 4.8.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 +25 -1
- 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/index.d.mts
CHANGED
|
@@ -268,6 +268,22 @@ type WorkflowWithConfig = Record<string, unknown> & {
|
|
|
268
268
|
/** Storybook apps to deploy alongside docs. Each entry's `path` is appended to `paths:`. */
|
|
269
269
|
storybook?: StorybookDeployProject[];
|
|
270
270
|
};
|
|
271
|
+
/**
|
|
272
|
+
* A `tasks` manifest entry in object form. A bare string entry is shorthand
|
|
273
|
+
* for `{ name, ci: true, local: true }`.
|
|
274
|
+
*/
|
|
275
|
+
interface TaskEntryConfig {
|
|
276
|
+
name: string;
|
|
277
|
+
with?: WorkflowWithConfig;
|
|
278
|
+
paths?: string[];
|
|
279
|
+
linters?: string[];
|
|
280
|
+
/** Emit a `.github/workflows/<name>.yml` thin caller + include in `holocron ci`. Default `true`. */
|
|
281
|
+
ci?: boolean;
|
|
282
|
+
/** Write a `package.json` script + let `holocron run <name>` resolve the task. Default `true`. */
|
|
283
|
+
local?: boolean;
|
|
284
|
+
/** The task's CI check context is a required status check + part of `holocron ci`'s default run. */
|
|
285
|
+
required?: boolean;
|
|
286
|
+
}
|
|
271
287
|
interface HolocronConfig {
|
|
272
288
|
/** Project name. Derived from package.json when absent. */
|
|
273
289
|
name?: string;
|
|
@@ -355,12 +371,7 @@ interface HolocronConfig {
|
|
|
355
371
|
* ["lint", { "name": "release", "with": { "run-build": false } }]
|
|
356
372
|
* { "name": "deploy", "with": { "docs": true } }
|
|
357
373
|
*/
|
|
358
|
-
tasks?: Array<string |
|
|
359
|
-
name: string;
|
|
360
|
-
with?: WorkflowWithConfig;
|
|
361
|
-
paths?: string[];
|
|
362
|
-
linters?: string[];
|
|
363
|
-
}>;
|
|
374
|
+
tasks?: Array<string | TaskEntryConfig>;
|
|
364
375
|
/**
|
|
365
376
|
* Opt out of `holocron sync`'s `package.json` script writes. Default `true`.
|
|
366
377
|
*/
|
|
@@ -371,6 +382,12 @@ interface HolocronConfig {
|
|
|
371
382
|
* build (`"node packages/cli/dist/cli.mjs"`).
|
|
372
383
|
*/
|
|
373
384
|
holocronScript?: string;
|
|
385
|
+
/**
|
|
386
|
+
* Required status-check contexts not backed by a `required` task (codecov
|
|
387
|
+
* gates, the bundle-build check, …). `holocron setup` appends these to the
|
|
388
|
+
* task-derived list from `astro.requiredChecks()`.
|
|
389
|
+
*/
|
|
390
|
+
extraRequiredChecks?: string[];
|
|
374
391
|
providers: RawProvidersConfig;
|
|
375
392
|
apps?: AppConfig[];
|
|
376
393
|
doctor?: DoctorConfig;
|
|
@@ -439,14 +456,10 @@ interface ResolvedHolocronConfig {
|
|
|
439
456
|
org?: string;
|
|
440
457
|
domain?: string;
|
|
441
458
|
repo?: RepoConfig;
|
|
442
|
-
tasks?: Array<string |
|
|
443
|
-
name: string;
|
|
444
|
-
with?: WorkflowWithConfig;
|
|
445
|
-
paths?: string[];
|
|
446
|
-
linters?: string[];
|
|
447
|
-
}>;
|
|
459
|
+
tasks?: Array<string | TaskEntryConfig>;
|
|
448
460
|
syncScripts?: boolean;
|
|
449
461
|
holocronScript?: string;
|
|
462
|
+
extraRequiredChecks?: string[];
|
|
450
463
|
providers: ResolvedProvidersConfig;
|
|
451
464
|
apps: AppConfig[];
|
|
452
465
|
doctor: DoctorConfig;
|
|
@@ -542,4 +555,4 @@ interface LoadedConfig {
|
|
|
542
555
|
*/
|
|
543
556
|
declare function loadConfig(cwd: string): Promise<LoadedConfig>;
|
|
544
557
|
//#endregion
|
|
545
|
-
export { Analytics, AppConfig, Auth, AuthDescription, AuthError, AuthEvent, AuthEventType, AuthIdentity, AuthUser, CARDINALITY, Capability, CapabilityConfigPackage, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, ChromaticProjectConfig, Ci, CiRun, CiRunFilter, CiRunStatus, ComposedPreset, ConfigError, ConfigFileError, ConnectionStringOptions, CreateAuthUserInput, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, Dns, DnsRecord, DnsRecordType, DocsConfig, DoctorConfig, EnsureResult, EnvConfig, Environment, EnvironmentReviewer, Environments, Errors, FeatureResolverConfig, HolocronConfig, Issue, IssueSearchFilter, Issues, LabelDef, LifecycleResult, LifecycleSlot, LoadedConfig, LogConfig, Logs, MultiEntry, NormalizedAuthUser, Notifications, PagesConfig, ParseWebhookInput, ProviderApiError, ProviderIdentity, ProviderOptions, PullRequest, REQUIRED_CAPABILITIES, RawProviderEntry, RawProvidersConfig, RepoConfig, RepoProperties, RepoProtection, RepoRef, RepoSettings, type RequestOptions, ResolveTokenConfig, type ResolveTokenInput, ResolvedCapability, ResolvedHolocronConfig, ResolvedProviderEntry, ResolvedProvidersConfig, ResolvedTuple, type RestClient, type RestClientConfig, Ruleset, SecretScope, Secrets, SingleEntry, Source, StatusCategory, Storage, StorageBranch, StorybookDeployProject, TeamEntry, TeamPermission, Tooling, ToolingDoctorReport, TrackerDoctorReport, TrackerUser, Vault, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiDnsRecord, WikiProvisionOpts, WikiProxyConfig, Workers, WorkflowWithConfig, compose, createFeatureResolver, createResolveToken, createRestClient, defineConfig, deleteToken, getToken, isMulti, listStoredProviders, loadConfig, resolveConfig, resolveEntry, resolvePluginPackage, setToken };
|
|
558
|
+
export { Analytics, AppConfig, Auth, AuthDescription, AuthError, AuthEvent, AuthEventType, AuthIdentity, AuthUser, CARDINALITY, Capability, CapabilityConfigPackage, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, ChromaticProjectConfig, Ci, CiRun, CiRunFilter, CiRunStatus, ComposedPreset, ConfigError, ConfigFileError, ConnectionStringOptions, CreateAuthUserInput, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, Dns, DnsRecord, DnsRecordType, DocsConfig, DoctorConfig, EnsureResult, EnvConfig, Environment, EnvironmentReviewer, Environments, Errors, FeatureResolverConfig, HolocronConfig, Issue, IssueSearchFilter, Issues, LabelDef, LifecycleResult, LifecycleSlot, LoadedConfig, LogConfig, Logs, MultiEntry, NormalizedAuthUser, Notifications, PagesConfig, ParseWebhookInput, ProviderApiError, ProviderIdentity, ProviderOptions, PullRequest, REQUIRED_CAPABILITIES, RawProviderEntry, RawProvidersConfig, RepoConfig, RepoProperties, RepoProtection, RepoRef, RepoSettings, type RequestOptions, ResolveTokenConfig, type ResolveTokenInput, ResolvedCapability, ResolvedHolocronConfig, ResolvedProviderEntry, ResolvedProvidersConfig, ResolvedTuple, type RestClient, type RestClientConfig, Ruleset, SecretScope, Secrets, SingleEntry, Source, StatusCategory, Storage, StorageBranch, StorybookDeployProject, TaskEntryConfig, TeamEntry, TeamPermission, Tooling, ToolingDoctorReport, TrackerDoctorReport, TrackerUser, Vault, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiDnsRecord, WikiProvisionOpts, WikiProxyConfig, Workers, WorkflowWithConfig, compose, createFeatureResolver, createResolveToken, createRestClient, defineConfig, deleteToken, getToken, isMulti, listStoredProviders, loadConfig, resolveConfig, resolveEntry, resolvePluginPackage, setToken };
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/cli",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.0",
|
|
4
4
|
"description": "The Holocron CLI - a pluggable, capability-based orchestrator for spinning up and operating software projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"ora": "^9.4.1",
|
|
53
53
|
"posthog-node": "^5.51.6",
|
|
54
54
|
"yargs": "^18.1.0",
|
|
55
|
-
"@theholocron/astromech": "4.
|
|
56
|
-
"@theholocron/datapad": "4.
|
|
57
|
-
"@theholocron/logger": "4.
|
|
55
|
+
"@theholocron/astromech": "4.8.0",
|
|
56
|
+
"@theholocron/datapad": "4.8.0",
|
|
57
|
+
"@theholocron/logger": "4.8.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@theholocron/eslint-config": "^8.0.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"tsx": "4.23.12",
|
|
72
72
|
"typescript": "^5.9.3",
|
|
73
73
|
"vitest": "^4.1.11",
|
|
74
|
-
"@theholocron/rollup-plugin-transform-template": "4.
|
|
74
|
+
"@theholocron/rollup-plugin-transform-template": "4.8.0"
|
|
75
75
|
},
|
|
76
76
|
"engines": {
|
|
77
77
|
"node": ">=22.0.0"
|