@icebreakers/monorepo 6.5.4 → 6.6.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/{baseline-CQVDciG4.mjs → baseline-BS_u59AV.mjs} +1 -1
- package/dist/{catalog-6_tT0U3p.mjs → catalog-CiaAmiTm.mjs} +4 -4
- package/dist/cli.mjs +62 -62
- package/dist/{commands-CAyU1yqP.mjs → commands-DWtDkzcp.mjs} +176 -89
- package/dist/{config-CT_nsp4o.mjs → config-CmB-5xZ5.mjs} +3 -3
- package/dist/{create-flow-BV2NTOIE.mjs → create-flow-DNWJQGrz.mjs} +3 -3
- package/dist/{deps-CIrWBABk.mjs → deps-DWFcbBQu.mjs} +4 -4
- package/dist/{execute-e7SGX_Y0.mjs → execute-Bd-yrRBO.mjs} +2 -2
- package/dist/{execute-Y_6G_tEl.mjs → execute-CowTATMR.mjs} +2 -2
- package/dist/{format-jsSjadNe.mjs → format-C2UJ-Xzb.mjs} +1 -1
- package/dist/{index-C7KR7hT8.d.mts → index-CFxo1hPA.d.mts} +4 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +9 -9
- package/dist/{inputs-DOUYGoHq.mjs → inputs-Pn_oLgyr.mjs} +1 -1
- package/dist/{npm-tUIGIuFQ.mjs → npm-D3cb3ygy.mjs} +1 -1
- package/dist/{plan-DC33-_or.mjs → plan-C4S0SIsH.mjs} +2 -2
- package/dist/{run-DT6Q-jbq.mjs → run-5k6GII0n.mjs} +4 -4
- package/dist/{save-Foea-Ao9.mjs → save-LOJWHI5C.mjs} +3 -3
- package/dist/{scan-DA7VmNjC.mjs → scan-C6ZqUxK0.mjs} +9 -2
- package/dist/{template-drift-B18bgxT6.mjs → template-drift-D3Hwedod.mjs} +3 -3
- package/dist/tooling-entry.d.mts +1 -1
- package/dist/tooling-entry.mjs +2 -2
- package/dist/{transaction-B4vPaBcK.mjs → transaction-Cpnd5xhK.mjs} +2 -2
- package/dist/{tsconfig-DpOi_7HA.mjs → tsconfig-BSF6chfb.mjs} +49 -32
- package/dist/{vitest-Dh5Qm_3L.mjs → vitest-CgpUDzkr.mjs} +1 -1
- package/dist/{workspace-tasks-Ca1zWNKr.mjs → workspace-tasks-DucdLmBS.mjs} +51 -51
- package/package.json +6 -6
|
@@ -1395,9 +1395,12 @@ interface ReleaseRegistryConfig {
|
|
|
1395
1395
|
visibilityTimeoutMs?: number;
|
|
1396
1396
|
}
|
|
1397
1397
|
type NightlyProvider = 'npm' | 'pkg-pr-new';
|
|
1398
|
+
type NightlyVersioning = 'date' | 'snapshot';
|
|
1398
1399
|
interface ReleaseNightlyConfig {
|
|
1399
1400
|
/** Nightly publication backend. @default 'npm' */
|
|
1400
1401
|
provider?: NightlyProvider;
|
|
1402
|
+
/** npm defaults to date (<base>-dev.YYYYMMDD.N, UTC); pkg-pr-new only supports snapshot. */
|
|
1403
|
+
versioning?: NightlyVersioning;
|
|
1401
1404
|
/** Five-field UTC cron. Omit for manual nightly only; synchronize with repo upgrade. */
|
|
1402
1405
|
schedule?: string;
|
|
1403
1406
|
/** Timeout for each nightly quality script and verify hook, in positive safe integer milliseconds. @default 2700000 */
|
|
@@ -2220,4 +2223,4 @@ declare function createMonorepoVitestProjectConfig(options?: MonorepoVitestProje
|
|
|
2220
2223
|
* @returns 可直接传给 `defineProject()` 或与其他 Vite/Vitest 配置 merge 的项目级配置片段
|
|
2221
2224
|
*/
|
|
2222
2225
|
declare function defineVitestProjectConfig(input?: DefineVitestProjectConfigOptions): Promise<MonorepoVitestProjectConfigResult>;
|
|
2223
|
-
export { UpgradeKeepDecision as $,
|
|
2226
|
+
export { UpgradeKeepDecision as $, AdmissionDeclaration as $n, DependencyReport as $r, PublicApiReport as $t, WorkspaceMoveOptions as A, CodeownersPlan as An, OrganizationPresetManifest as Ar, CommitlintToolingConfig as At, AiCommandConfig as B, InstallSecurityExpectations as Bn, generateAgenticTemplate as Br, ProjectReferencesDiagnostic as Bt, MonorepoVitestConfigOverrides as C, WorkspacePackageManifest as Cn, TemplateCatalogEntry as Cr, DocsChannel as Ct, ConfigValues as D, CodeownersConfig as Dn, OrganizationPresetAsset as Dr, DocsReadinessConfig as Dt, MonorepoVitestProjectConfigResult as E, WorkspacePackageWithJsonPath as En, ConfigValueSource as Er, DocsDeploymentTarget as Et, WorkspaceRemovalEntry as F, initTooling as Fn, AgenticTemplateFormat as Fr, VitestProjectToolingConfig as Ft, MonorepoConfig as G, DoctorCheck as Gn, DependencyApplyResult as Gr, GitHooksInstallOptions as Gt, CreateCommandConfig as H, InstallSecurityPresetPlan as Hn, loadAgenticTasks as Hr, ProjectReferencesPlan as Ht, WorkspaceRemovalFile as I, normalizeInitToolingTargets as In, AgenticTemplateTask as Ir, VitestToolingConfig as It, UpgradeApplyResult as J, DoctorSummary as Jn, DependencyFixOptions as Jr, PublicApiDiagnostic as Jt, UpgradeCommandConfig as K, DoctorReport as Kn, DependencyConsistencyGroup as Kr, GitHooksInstallResult as Kt, WorkspaceRemovalOptions as L, initToolingTargets as Ln, GenerateAgenticTemplateOptions as Lr, ProjectReferencesApplyResult as Lt, WorkspaceMoveResult as M, WorkspaceOwnership as Mn, OrganizationPresetResolution as Mr, StylelintToolingConfig as Mt, WorkspaceMoveReview as N, init as Nn, OrganizationPresetSource as Nr, ToolingConfig as Nt, SimpleGit as O, CodeownersDiagnostic as On, OrganizationPresetDiagnostic as Or, DocsScriptDeploymentTarget as Ot, WorkspaceRemovalBlocker as P, initMetadata as Pn, OrganizationPresetTemplate as Pr, TsconfigToolingConfig as Pt, UpgradeInput as Q, DoctorSuppression as Qn, DependencyProtocol as Qr, PublicApiPackageConfig as Qt, WorkspaceRemovalPlan as R, InstallBuildDecision as Rn, createTimestampFolderName as Rr, ProjectReferencesCheck as Rt, MonorepoVitestConfigOptions as S, WorkspacePackage as Sn, TemplateCatalogDiagnostic as Sr, EnvCacheVariable as St, MonorepoVitestProjectConfigOptions as T, WorkspacePackageSummaryData as Tn, ConfigSourceLayer as Tr, DocsCommandConfig as Tt, InitCommandConfig as U, InstallSecurityReport as Un, CliOpts as Ur, GitHookCheck as Ut, CreateChoiceOption as V, InstallSecurityOptions as Vn, generateAgenticTemplates as Vr, ProjectReferencesOperation as Vt, MirrorCommandConfig as W, InstallSecuritySetting as Wn, DependenciesCommandConfig as Wr, GitHooksConfig as Wt, UpgradeFilePlan as X, DoctorCommandConfig as Xn, DependencyGroupStatus as Xr, PublicApiEntryReport as Xt, UpgradeBaselineChange as Y, DoctorSuppressionReport as Yn, DependencyFixPlan as Yr, PublicApiEntryConfig as Yt, UpgradeFileStatus as Z, DoctorOptions as Zn, DependencyOccurrence as Zr, PublicApiOptions as Zt, DefineVitestProjectConfigOptions as _, WorkspaceImpactOptions as _n, templateMap as _r, EnvCacheFinding as _t, createMonorepoTsconfig as a, WorkspaceBoundariesReport as an, DependencyAdmissionRule as ar, UpgradePlan as at, MonorepoStylelintConfig as b, GetWorkspacePackagesOptions as bn, ResolveTemplateCatalogOptions as br, EnvCacheSuppression as bt, createMonorepoCommitlintConfig as c, WorkspaceBoundaryRule as cn, CreateNewProjectOptions as cr, NightlyVersioning as ct, defineCommitlintConfig as d, WorkspaceGraph as dn, resolveRemoteTemplateSource as dr, ReleaseNightlyConfig as dt, DependencySection as ei, PublicApiUpdatePlan as en, DependencyAdmissionConfig as er, UpgradeMergeDetails as et, defineEslintConfig as f, WorkspaceGraphDiagnostic as fn, ResolvedTemplateSource as fr, ReleaseRegistryConfig as ft, DefineVitestConfigOptions as g, WorkspaceGraphOptions as gn, getTemplateMap as gr, EnvCacheEvidence as gt, DefineEslintConfigOptions as h, WorkspaceGraphNode as hn, getCreateChoices as hr, EnvCacheConfig as ht, defineVitestProjectConfig as i, WorkspaceBoundariesConfig as in, DependencyAdmissionReport as ir, UpgradeOverrideFinding as it, WorkspaceMovePlan as j, CodeownersReport as jn, OrganizationPresetReference as jr, EslintToolingConfig as jt, SimpleGitOptions as k, CodeownersOptions as kn, OrganizationPresetLayer as kr, DocsSiteConfig as kt, createMonorepoEslintConfig as l, WorkspaceBoundarySelector as ln, CreateNewProjectPlan as lr, ReleaseAfterPublishHookConfig as lt, DefineConfigOptions as m, WorkspaceGraphFilter as mn, TemplateSourceRequest as mr, ReleaseBranchesConfig as mt, createMonorepoVitestProjectConfig as n, CleanCommandConfig as nn, DependencyAdmissionFinding as nr, UpgradeMigrationsPlan as nt, defineTsconfigConfig as o, WorkspaceBoundaryException as on, applyCreateNewProjectPlan as or, UpgradeWorkspacePolicy as ot, defineStylelintConfig as p, WorkspaceGraphEdge as pn, TemplateSourceOptions as pr, ReleaseBranchRule as pt, UpgradeApplyOptions as q, DoctorStatus as qn, DependencyFileChange as qr, PublicApiConfig as qt, defineVitestConfig as r, BoundarySeverity as rn, DependencyAdmissionOptions as rr, UpgradeOptions as rt, loadMonorepoToolingConfig as s, WorkspaceBoundaryFinding as sn, createNewProject as sr, NightlyProvider as st, createMonorepoVitestConfig as t, DependencyVersionGroup as ti, PublicApiUpdateResult as tn, DependencyAdmissionException as tr, UpgradeMigrationStep as tt, createMonorepoStylelintConfig as u, WorkspaceDependencyType as un, resolveCreateNewProjectPlan as ur, ReleaseCommandConfig as ut, MonorepoCommitlintConfig as v, WorkspaceImpactResult as vn, resolveTemplateCatalog as vr, EnvCacheOptions as vt, MonorepoVitestConfigResult as w, WorkspacePackageSummary as wn, ConfigDiagnostic as wr, DocsCloudflareWorkersTarget as wt, MonorepoTsconfig as x, WorkspaceData as xn, TemplateCatalog as xr, EnvCacheTask as xt, MonorepoEslintConfig as y, WorkspaceWhyResult as yn, CreateTemplateDefinition as yr, EnvCacheReport as yt, WorkspaceRemovalResult as z, InstallPolicyKey as zn, defaultAgenticBaseDir as zr, ProjectReferencesConfig as zt };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as UpgradeKeepDecision, $n as
|
|
1
|
+
import { $ as UpgradeKeepDecision, $n as AdmissionDeclaration, $r as DependencyReport, $t as PublicApiReport, A as WorkspaceMoveOptions, An as CodeownersPlan, Ar as OrganizationPresetManifest, At as CommitlintToolingConfig, B as AiCommandConfig, Bn as InstallSecurityExpectations, Br as generateAgenticTemplate, Bt as ProjectReferencesDiagnostic, C as MonorepoVitestConfigOverrides, Cn as WorkspacePackageManifest, Cr as TemplateCatalogEntry, Ct as DocsChannel, D as ConfigValues, Dn as CodeownersConfig, Dr as OrganizationPresetAsset, Dt as DocsReadinessConfig, E as MonorepoVitestProjectConfigResult, En as WorkspacePackageWithJsonPath, Er as ConfigValueSource, Et as DocsDeploymentTarget, F as WorkspaceRemovalEntry, Fn as initTooling, Fr as AgenticTemplateFormat, Ft as VitestProjectToolingConfig, G as MonorepoConfig, Gn as DoctorCheck, Gr as DependencyApplyResult, Gt as GitHooksInstallOptions, H as CreateCommandConfig, Hn as InstallSecurityPresetPlan, Hr as loadAgenticTasks, Ht as ProjectReferencesPlan, I as WorkspaceRemovalFile, In as normalizeInitToolingTargets, Ir as AgenticTemplateTask, It as VitestToolingConfig, J as UpgradeApplyResult, Jn as DoctorSummary, Jr as DependencyFixOptions, Jt as PublicApiDiagnostic, K as UpgradeCommandConfig, Kn as DoctorReport, Kr as DependencyConsistencyGroup, Kt as GitHooksInstallResult, L as WorkspaceRemovalOptions, Ln as initToolingTargets, Lr as GenerateAgenticTemplateOptions, Lt as ProjectReferencesApplyResult, M as WorkspaceMoveResult, Mn as WorkspaceOwnership, Mr as OrganizationPresetResolution, Mt as StylelintToolingConfig, N as WorkspaceMoveReview, Nn as init, Nr as OrganizationPresetSource, Nt as ToolingConfig, O as SimpleGit, On as CodeownersDiagnostic, Or as OrganizationPresetDiagnostic, Ot as DocsScriptDeploymentTarget, P as WorkspaceRemovalBlocker, Pn as initMetadata, Pr as OrganizationPresetTemplate, Pt as TsconfigToolingConfig, Q as UpgradeInput, Qn as DoctorSuppression, Qr as DependencyProtocol, Qt as PublicApiPackageConfig, R as WorkspaceRemovalPlan, Rn as InstallBuildDecision, Rr as createTimestampFolderName, Rt as ProjectReferencesCheck, S as MonorepoVitestConfigOptions, Sn as WorkspacePackage, Sr as TemplateCatalogDiagnostic, St as EnvCacheVariable, T as MonorepoVitestProjectConfigOptions, Tn as WorkspacePackageSummaryData, Tr as ConfigSourceLayer, Tt as DocsCommandConfig, U as InitCommandConfig, Un as InstallSecurityReport, Ur as CliOpts, Ut as GitHookCheck, V as CreateChoiceOption, Vn as InstallSecurityOptions, Vr as generateAgenticTemplates, Vt as ProjectReferencesOperation, W as MirrorCommandConfig, Wn as InstallSecuritySetting, Wr as DependenciesCommandConfig, Wt as GitHooksConfig, X as UpgradeFilePlan, Xn as DoctorCommandConfig, Xr as DependencyGroupStatus, Xt as PublicApiEntryReport, Y as UpgradeBaselineChange, Yn as DoctorSuppressionReport, Yr as DependencyFixPlan, Yt as PublicApiEntryConfig, Z as UpgradeFileStatus, Zn as DoctorOptions, Zr as DependencyOccurrence, Zt as PublicApiOptions, _ as DefineVitestProjectConfigOptions, _n as WorkspaceImpactOptions, _r as templateMap, _t as EnvCacheFinding, a as createMonorepoTsconfig, an as WorkspaceBoundariesReport, ar as DependencyAdmissionRule, at as UpgradePlan, b as MonorepoStylelintConfig, bn as GetWorkspacePackagesOptions, br as ResolveTemplateCatalogOptions, bt as EnvCacheSuppression, c as createMonorepoCommitlintConfig, cn as WorkspaceBoundaryRule, cr as CreateNewProjectOptions, ct as NightlyVersioning, d as defineCommitlintConfig, dn as WorkspaceGraph, dr as resolveRemoteTemplateSource, dt as ReleaseNightlyConfig, ei as DependencySection, en as PublicApiUpdatePlan, er as DependencyAdmissionConfig, et as UpgradeMergeDetails, f as defineEslintConfig, fn as WorkspaceGraphDiagnostic, fr as ResolvedTemplateSource, ft as ReleaseRegistryConfig, g as DefineVitestConfigOptions, gn as WorkspaceGraphOptions, gr as getTemplateMap, gt as EnvCacheEvidence, h as DefineEslintConfigOptions, hn as WorkspaceGraphNode, hr as getCreateChoices, ht as EnvCacheConfig, i as defineVitestProjectConfig, in as WorkspaceBoundariesConfig, ir as DependencyAdmissionReport, it as UpgradeOverrideFinding, j as WorkspaceMovePlan, jn as CodeownersReport, jr as OrganizationPresetReference, jt as EslintToolingConfig, k as SimpleGitOptions, kn as CodeownersOptions, kr as OrganizationPresetLayer, kt as DocsSiteConfig, l as createMonorepoEslintConfig, ln as WorkspaceBoundarySelector, lr as CreateNewProjectPlan, lt as ReleaseAfterPublishHookConfig, m as DefineConfigOptions, mn as WorkspaceGraphFilter, mr as TemplateSourceRequest, mt as ReleaseBranchesConfig, n as createMonorepoVitestProjectConfig, nn as CleanCommandConfig, nr as DependencyAdmissionFinding, nt as UpgradeMigrationsPlan, o as defineTsconfigConfig, on as WorkspaceBoundaryException, or as applyCreateNewProjectPlan, ot as UpgradeWorkspacePolicy, p as defineStylelintConfig, pn as WorkspaceGraphEdge, pr as TemplateSourceOptions, pt as ReleaseBranchRule, q as UpgradeApplyOptions, qn as DoctorStatus, qr as DependencyFileChange, qt as PublicApiConfig, r as defineVitestConfig, rn as BoundarySeverity, rr as DependencyAdmissionOptions, rt as UpgradeOptions, s as loadMonorepoToolingConfig, sn as WorkspaceBoundaryFinding, sr as createNewProject, st as NightlyProvider, t as createMonorepoVitestConfig, ti as DependencyVersionGroup, tn as PublicApiUpdateResult, tr as DependencyAdmissionException, tt as UpgradeMigrationStep, u as createMonorepoStylelintConfig, un as WorkspaceDependencyType, ur as resolveCreateNewProjectPlan, ut as ReleaseCommandConfig, v as MonorepoCommitlintConfig, vn as WorkspaceImpactResult, vr as resolveTemplateCatalog, vt as EnvCacheOptions, w as MonorepoVitestConfigResult, wn as WorkspacePackageSummary, wr as ConfigDiagnostic, wt as DocsCloudflareWorkersTarget, x as MonorepoTsconfig, xn as WorkspaceData, xr as TemplateCatalog, xt as EnvCacheTask, y as MonorepoEslintConfig, yn as WorkspaceWhyResult, yr as CreateTemplateDefinition, yt as EnvCacheReport, z as WorkspaceRemovalResult, zn as InstallPolicyKey, zr as defaultAgenticBaseDir, zt as ProjectReferencesConfig } from "./index-CFxo1hPA.mjs";
|
|
2
2
|
import { writeFile } from "node:fs/promises";
|
|
3
3
|
import { execFileSync, spawnSync } from "node:child_process";
|
|
4
4
|
import crypto from "node:crypto";
|
|
@@ -3032,4 +3032,4 @@ export declare function escapeStringRegexp(str: string): string;
|
|
|
3032
3032
|
* 判断字符串是否命中任意一个正则,用于过滤要同步的资产文件。
|
|
3033
3033
|
*/
|
|
3034
3034
|
export declare function isMatch(str: string, arr: RegExp[]): boolean;
|
|
3035
|
-
export { type AdmissionDeclaration, type AffectedCheckCommand, type AffectedCheckMatrix, type AffectedCheckMatrixJob, type AffectedCheckMatrixOptions, type AffectedCheckOptions, type AffectedCheckPlan, type AffectedCheckSettings, type AffectedFallback, type AffectedFile, type AffectedGitRange, type AffectedPackage, type AgenticTemplateFormat, type AgenticTemplateTask, AiCommandConfig, type ArtifactFile, type AutoChangesetApplyOptions, type AutoChangesetApproval, type AutoChangesetDecision, type AutoChangesetDependencyField, type AutoChangesetLevel, type AutoChangesetOptions, type AutoChangesetPolicy, type AutoChangesetReport, type AutoChangesetRevision, type AutoChangesetWorkflowOptions, type BootstrapConsumerReport, type BootstrapManifest, type BootstrapOptions, type BootstrapPackage, type BootstrapPlan, type BootstrapReport, type BootstrapSource, type BoundarySeverity, type CheckExecutionOptions, type CheckExecutionReport, type CheckExecutionStatus, type CheckExecutionTask, type CheckTemplatesOptions, type CleanCommandConfig, CliOpts, type CodeownersConfig, type CodeownersDiagnostic, type CodeownersOptions, type CodeownersPlan, type CodeownersReport, type CommitMsgVerifyOptions, type CommitlintToolingConfig, type ConfigDiagnostic, type ConfigInspection, ConfigSourceLayer, ConfigValueSource, type ConfigValues, type ConsumerApplicability, type ConsumerHost, type ConsumerPackageApplicability, type ConsumerRuntimeContext, CreateChoiceOption, CreateCommandConfig, type CreateNewProjectOptions, type CreateNewProjectPlan, type CreateTemplateDefinition, DefineConfigOptions, DefineEslintConfigOptions, DefineVitestConfigOptions, DefineVitestProjectConfigOptions, DependenciesCommandConfig, type DependencyAdmissionConfig, type DependencyAdmissionException, type DependencyAdmissionFinding, type DependencyAdmissionOptions, type DependencyAdmissionReport, type DependencyAdmissionRule, DependencyApplyResult, DependencyConsistencyGroup, DependencyFileChange, DependencyFixOptions, DependencyFixPlan, DependencyGroupStatus, DependencyOccurrence, DependencyProtocol, DependencyReport, DependencySection, DependencyVersionGroup, DocsChannel, DocsCloudflareWorkersTarget, DocsCommandConfig, type DocsDeploymentPlan, type DocsDeploymentReport, type DocsDeploymentResult, type DocsDeploymentStage, type DocsDeploymentStageKey, DocsDeploymentTarget, type DocsOptions, type DocsProviderReceipt, DocsReadinessConfig, DocsScriptDeploymentTarget, DocsSiteConfig, type DocsStateStore, type DoctorCheck, type DoctorCommandConfig, type DoctorFixPlan, type DoctorFixResult, type DoctorOptions, type DoctorReport, type DoctorStatus, type DoctorSummary, type DoctorSuppression, type DoctorSuppressionReport, type EnsurePullRequestOptions, type EnsureReleaseOptions, type EnsureTagOptions, type EnvCacheConfig, type EnvCacheEvidence, type EnvCacheFinding, type EnvCacheOptions, type EnvCacheReport, type EnvCacheSuppression, type EnvCacheTask, type EnvCacheVariable, type EnvInfo, type EnvPathEntry, type EnvPaths, type EnvSnapshot, type EnvSupportBundle, type EslintToolingConfig, type FreezeSnapshotSourceOptions, type GenerateAgenticTemplateOptions, type GenerateFile, type GenerateOptions, type GeneratePlan, type GenerateResult, type GeneratorName, GetWorkspacePackagesOptions, type GitHookCheck, type GitHooksConfig, type GitHooksInstallOptions, type GitHooksInstallResult, type GitHubClientOptions, type GitHubOperations, type GitHubRelease, type GitUrlMetadata, InitCommandConfig, type InstallBuildDecision, type InstallPolicyKey, type InstallSecurityExpectations, type InstallSecurityOptions, type InstallSecurityPresetPlan, type InstallSecurityReport, type InstallSecuritySetting, type MaintenanceFile, type MaintenancePresetChange, type MaintenancePresetUpgrade, type MaintenanceUpgradeOptions, type MaintenanceUpgradeReport, type MaintenanceVersionChange, MirrorCommandConfig, MonorepoCommitlintConfig, MonorepoConfig, MonorepoEslintConfig, MonorepoStylelintConfig, MonorepoTsconfig, MonorepoVitestConfigOptions, MonorepoVitestConfigOverrides, MonorepoVitestConfigResult, MonorepoVitestProjectConfigOptions, MonorepoVitestProjectConfigResult, type NightlyConsumerReport, type NightlyOptions, type NightlyPackage, type NightlyProvider, type NightlyReport, OrganizationPresetAsset, type OrganizationPresetAssetPlan, type OrganizationPresetAssetResult, OrganizationPresetDiagnostic, OrganizationPresetLayer, OrganizationPresetManifest, OrganizationPresetReference, OrganizationPresetResolution, OrganizationPresetSource, OrganizationPresetTemplate, type PackageCheckCommand, type PackageCheckDiagnostic, type PackageCheckManifestOptions, type PackageCheckOptions, type PackageCheckReport, type PackageCheckResult, type PeerCheckStatus, type PeerCompatibilityCheck, type PeerCompatibilityReport, type PlaywrightCapabilityOptions, type PlaywrightInteraction, type PreCommitVerifyOptions, type PrePushVerifyOptions, type PrepareBootstrapOptions, type PrepareSnapshotOptions, type PreparedSnapshot, type PreparedSnapshotConsumerOptions, type PreparedSnapshotConsumerReport, type PreparedSnapshotManifest, type PreparedSnapshotPublishOptions, type PreparedSnapshotPublishReport, ProjectReferencesApplyResult, ProjectReferencesCheck, ProjectReferencesConfig, ProjectReferencesDiagnostic, ProjectReferencesOperation, ProjectReferencesPlan, type PublicApiConfig, type PublicApiDiagnostic, type PublicApiEntryConfig, type PublicApiEntryReport, type PublicApiOptions, type PublicApiPackageConfig, type PublicApiReport, type PublicApiUpdatePlan, type PublicApiUpdateResult, type RecommendedCheckMode, type RecommendedCheckOptions, type RecommendedCheckPlan, type RecommendedCheckPlanCommand, type ReleaseAfterPublishHookConfig, type ReleaseBootstrapStage, type ReleaseBranchRule, type ReleaseBranchesConfig, type ReleaseCiOptions, type ReleaseCiStage, type StageReceipt as ReleaseCiStageResult, type ReleaseCommandConfig, type ReleaseCompletionRecord, type ReleaseLifecycleState, type ReleaseNightlyConfig, type ReleaseOidcArtifactAuditOptions, type ReleaseOidcAuditOptions, type ReleaseOidcAuditPackage, type ReleaseOidcAuditReport, type ReleaseOidcPackageResult, type ReleasePlan, type ReleasePlanOptions, type ReleasePlanPackage, type ReleasePreparationGeneratedFile, type ReleasePreparationGeneratedFileContext, type ReleasePreparationPolicy, type ReleasePreparationValidationFile, type ReleasePreparationValidationOptions, type ReleasePreparationValidationReport, type ReleaseRegistryConfig, type ReleaseStateSnapshot, type ReleaseTarget, type RepoctlLocale, type ResolveTemplateCatalogOptions, type ResolvedTemplateRemoteSource, type ResolvedTemplateSource, type SimpleGit, type SimpleGitOptions, type SkillTarget, type SnapshotBuildPackage, type SnapshotBuildPlan, type SnapshotBuildPlanOptions, type SnapshotDependency, type SnapshotIdentity, type SnapshotOptions, type SnapshotPackage, type SnapshotPreparationContext, type SnapshotPreparationReceipt, type SnapshotPreparationResult, type SnapshotReferenceGitlink, type SnapshotReport, type SnapshotRunEvidence, type SnapshotSource, type SnapshotWorkflowOptions, type SnapshotWorkflowPolicy, type SnapshotWorkflows, type StagedTypecheckOptions, type StorybookArgs, type StorybookCapabilityOptions, type StylelintToolingConfig, type SyncSkillsOptions, type TemplateCatalog, type TemplateCatalogDiagnostic, type TemplateCatalogEntry, type TemplateDriftCollection, type TemplateDriftFile, type TemplateDriftOptions, type TemplateDriftOwner, type TemplateDriftRegistry, type TemplateDriftReport, type TemplateHealthCheck, type TemplateHealthReport, type TemplateHealthStatus, type TemplateHealthSummary, type TemplateInstance, type TemplateInstanceBaseline, type TemplateInstanceInfo, type TemplateInstanceRegistry, type TemplateInstanceSource, type TemplateLinkOptions, type TemplateLinkPlan, type TemplateRemoteSource, type TemplateSourceOptions, type TemplateSourceRequest, type TemplateUpgradeChange, type TemplateUpgradeEntry, type TemplateUpgradeOptions, type TemplateUpgradePlan, type TemplateUpgradeRecoveryResult, type TemplateUpgradeResult, type TemplateValidationDiagnostic, type TemplateValidationOptions, type TemplateValidationParameterSet, type TemplateValidationPlan, type TemplateValidationReport, type TemplateValidationSample, type TemplateValidationStage, type TemplateValidationStep, type TemplateVersionComparison, type TemplateVersionEvidence, type ToolingCapability, type ToolingCapabilityFile, type ToolingCapabilityOptions, type ToolingCapabilityPlan, type ToolingCapabilityResult, type ToolingConfig, type TsconfigToolingConfig, type TurboAnalysisLimitation, type TurboAnalysisOptions, type TurboCriticalPath, type TurboHashEvidence, type TurboRunAnalysis, type TurboTaskAnalysis, UpgradeApplyOptions, UpgradeApplyResult, UpgradeBaselineChange, UpgradeCommandConfig, UpgradeFilePlan, UpgradeFileStatus, UpgradeInput, UpgradeKeepDecision, UpgradeMergeDetails, UpgradeMigrationStep, UpgradeMigrationsPlan, UpgradeOptions, UpgradeOverrideFinding, UpgradePlan, UpgradeWorkspacePolicy, type VerifiedSnapshotRun, type VerifyCommandOptions, type VerifySnapshotRunOptions, type VitestProjectToolingConfig, type VitestToolingConfig, type WorkspaceArtifactApplyOptions, type WorkspaceArtifactOptions, type WorkspaceArtifactPlan, type WorkspaceArtifactResult, type WorkspaceBoundariesConfig, type WorkspaceBoundariesReport, type WorkspaceBoundaryException, type WorkspaceBoundaryFinding, type WorkspaceBoundaryRule, type WorkspaceBoundarySelector, WorkspaceData, type WorkspaceDependencyType, type WorkspaceGraph, type WorkspaceGraphDiagnostic, type WorkspaceGraphEdge, type WorkspaceGraphFilter, type WorkspaceGraphNode, type WorkspaceGraphOptions, type WorkspaceImpactOptions, type WorkspaceImpactResult, type WorkspaceLocation, WorkspaceMoveOptions, WorkspaceMovePlan, WorkspaceMoveResult, WorkspaceMoveReview, type WorkspaceOwnership, WorkspacePackage, WorkspacePackageManifest, WorkspacePackageSummary, WorkspacePackageSummaryData, WorkspacePackageWithJsonPath, WorkspaceRemovalBlocker, WorkspaceRemovalEntry, WorkspaceRemovalFile, WorkspaceRemovalOptions, WorkspaceRemovalPlan, WorkspaceRemovalResult, type WorkspaceTask, type WorkspaceTaskCatalog, type WorkspaceTaskOptions, type WorkspaceTaskPackage, type WorkspaceWhyResult, applyCreateNewProjectPlan, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, createNewProject, createReleasePullRequest, createTimestampFolderName, defaultAgenticBaseDir, defineCommitlintConfig, defineEslintConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, generateAgenticTemplate, generateAgenticTemplates, getCreateChoices, getTemplateMap, init, initMetadata, initTooling, initToolingTargets, isGitignoreFile, listTemplateInstances, loadAgenticTasks, loadMonorepoToolingConfig, loadTemplateBaseline, loadTemplateInstanceRegistry, normalizeInitToolingTargets, rebuildTemplateInstanceBaseline, recoverUnpublished, relocateTemplateInstance, resolveCreateNewProjectPlan, resolveRemoteTemplateSource, resolveTemplateCatalog, templateMap, toPublishGitignorePath, toWorkspaceAssetPath, toWorkspaceGitignorePath };
|
|
3035
|
+
export { type AdmissionDeclaration, type AffectedCheckCommand, type AffectedCheckMatrix, type AffectedCheckMatrixJob, type AffectedCheckMatrixOptions, type AffectedCheckOptions, type AffectedCheckPlan, type AffectedCheckSettings, type AffectedFallback, type AffectedFile, type AffectedGitRange, type AffectedPackage, type AgenticTemplateFormat, type AgenticTemplateTask, AiCommandConfig, type ArtifactFile, type AutoChangesetApplyOptions, type AutoChangesetApproval, type AutoChangesetDecision, type AutoChangesetDependencyField, type AutoChangesetLevel, type AutoChangesetOptions, type AutoChangesetPolicy, type AutoChangesetReport, type AutoChangesetRevision, type AutoChangesetWorkflowOptions, type BootstrapConsumerReport, type BootstrapManifest, type BootstrapOptions, type BootstrapPackage, type BootstrapPlan, type BootstrapReport, type BootstrapSource, type BoundarySeverity, type CheckExecutionOptions, type CheckExecutionReport, type CheckExecutionStatus, type CheckExecutionTask, type CheckTemplatesOptions, type CleanCommandConfig, CliOpts, type CodeownersConfig, type CodeownersDiagnostic, type CodeownersOptions, type CodeownersPlan, type CodeownersReport, type CommitMsgVerifyOptions, type CommitlintToolingConfig, type ConfigDiagnostic, type ConfigInspection, ConfigSourceLayer, ConfigValueSource, type ConfigValues, type ConsumerApplicability, type ConsumerHost, type ConsumerPackageApplicability, type ConsumerRuntimeContext, CreateChoiceOption, CreateCommandConfig, type CreateNewProjectOptions, type CreateNewProjectPlan, type CreateTemplateDefinition, DefineConfigOptions, DefineEslintConfigOptions, DefineVitestConfigOptions, DefineVitestProjectConfigOptions, DependenciesCommandConfig, type DependencyAdmissionConfig, type DependencyAdmissionException, type DependencyAdmissionFinding, type DependencyAdmissionOptions, type DependencyAdmissionReport, type DependencyAdmissionRule, DependencyApplyResult, DependencyConsistencyGroup, DependencyFileChange, DependencyFixOptions, DependencyFixPlan, DependencyGroupStatus, DependencyOccurrence, DependencyProtocol, DependencyReport, DependencySection, DependencyVersionGroup, DocsChannel, DocsCloudflareWorkersTarget, DocsCommandConfig, type DocsDeploymentPlan, type DocsDeploymentReport, type DocsDeploymentResult, type DocsDeploymentStage, type DocsDeploymentStageKey, DocsDeploymentTarget, type DocsOptions, type DocsProviderReceipt, DocsReadinessConfig, DocsScriptDeploymentTarget, DocsSiteConfig, type DocsStateStore, type DoctorCheck, type DoctorCommandConfig, type DoctorFixPlan, type DoctorFixResult, type DoctorOptions, type DoctorReport, type DoctorStatus, type DoctorSummary, type DoctorSuppression, type DoctorSuppressionReport, type EnsurePullRequestOptions, type EnsureReleaseOptions, type EnsureTagOptions, type EnvCacheConfig, type EnvCacheEvidence, type EnvCacheFinding, type EnvCacheOptions, type EnvCacheReport, type EnvCacheSuppression, type EnvCacheTask, type EnvCacheVariable, type EnvInfo, type EnvPathEntry, type EnvPaths, type EnvSnapshot, type EnvSupportBundle, type EslintToolingConfig, type FreezeSnapshotSourceOptions, type GenerateAgenticTemplateOptions, type GenerateFile, type GenerateOptions, type GeneratePlan, type GenerateResult, type GeneratorName, GetWorkspacePackagesOptions, type GitHookCheck, type GitHooksConfig, type GitHooksInstallOptions, type GitHooksInstallResult, type GitHubClientOptions, type GitHubOperations, type GitHubRelease, type GitUrlMetadata, InitCommandConfig, type InstallBuildDecision, type InstallPolicyKey, type InstallSecurityExpectations, type InstallSecurityOptions, type InstallSecurityPresetPlan, type InstallSecurityReport, type InstallSecuritySetting, type MaintenanceFile, type MaintenancePresetChange, type MaintenancePresetUpgrade, type MaintenanceUpgradeOptions, type MaintenanceUpgradeReport, type MaintenanceVersionChange, MirrorCommandConfig, MonorepoCommitlintConfig, MonorepoConfig, MonorepoEslintConfig, MonorepoStylelintConfig, MonorepoTsconfig, MonorepoVitestConfigOptions, MonorepoVitestConfigOverrides, MonorepoVitestConfigResult, MonorepoVitestProjectConfigOptions, MonorepoVitestProjectConfigResult, type NightlyConsumerReport, type NightlyOptions, type NightlyPackage, type NightlyProvider, type NightlyReport, type NightlyVersioning, OrganizationPresetAsset, type OrganizationPresetAssetPlan, type OrganizationPresetAssetResult, OrganizationPresetDiagnostic, OrganizationPresetLayer, OrganizationPresetManifest, OrganizationPresetReference, OrganizationPresetResolution, OrganizationPresetSource, OrganizationPresetTemplate, type PackageCheckCommand, type PackageCheckDiagnostic, type PackageCheckManifestOptions, type PackageCheckOptions, type PackageCheckReport, type PackageCheckResult, type PeerCheckStatus, type PeerCompatibilityCheck, type PeerCompatibilityReport, type PlaywrightCapabilityOptions, type PlaywrightInteraction, type PreCommitVerifyOptions, type PrePushVerifyOptions, type PrepareBootstrapOptions, type PrepareSnapshotOptions, type PreparedSnapshot, type PreparedSnapshotConsumerOptions, type PreparedSnapshotConsumerReport, type PreparedSnapshotManifest, type PreparedSnapshotPublishOptions, type PreparedSnapshotPublishReport, ProjectReferencesApplyResult, ProjectReferencesCheck, ProjectReferencesConfig, ProjectReferencesDiagnostic, ProjectReferencesOperation, ProjectReferencesPlan, type PublicApiConfig, type PublicApiDiagnostic, type PublicApiEntryConfig, type PublicApiEntryReport, type PublicApiOptions, type PublicApiPackageConfig, type PublicApiReport, type PublicApiUpdatePlan, type PublicApiUpdateResult, type RecommendedCheckMode, type RecommendedCheckOptions, type RecommendedCheckPlan, type RecommendedCheckPlanCommand, type ReleaseAfterPublishHookConfig, type ReleaseBootstrapStage, type ReleaseBranchRule, type ReleaseBranchesConfig, type ReleaseCiOptions, type ReleaseCiStage, type StageReceipt as ReleaseCiStageResult, type ReleaseCommandConfig, type ReleaseCompletionRecord, type ReleaseLifecycleState, type ReleaseNightlyConfig, type ReleaseOidcArtifactAuditOptions, type ReleaseOidcAuditOptions, type ReleaseOidcAuditPackage, type ReleaseOidcAuditReport, type ReleaseOidcPackageResult, type ReleasePlan, type ReleasePlanOptions, type ReleasePlanPackage, type ReleasePreparationGeneratedFile, type ReleasePreparationGeneratedFileContext, type ReleasePreparationPolicy, type ReleasePreparationValidationFile, type ReleasePreparationValidationOptions, type ReleasePreparationValidationReport, type ReleaseRegistryConfig, type ReleaseStateSnapshot, type ReleaseTarget, type RepoctlLocale, type ResolveTemplateCatalogOptions, type ResolvedTemplateRemoteSource, type ResolvedTemplateSource, type SimpleGit, type SimpleGitOptions, type SkillTarget, type SnapshotBuildPackage, type SnapshotBuildPlan, type SnapshotBuildPlanOptions, type SnapshotDependency, type SnapshotIdentity, type SnapshotOptions, type SnapshotPackage, type SnapshotPreparationContext, type SnapshotPreparationReceipt, type SnapshotPreparationResult, type SnapshotReferenceGitlink, type SnapshotReport, type SnapshotRunEvidence, type SnapshotSource, type SnapshotWorkflowOptions, type SnapshotWorkflowPolicy, type SnapshotWorkflows, type StagedTypecheckOptions, type StorybookArgs, type StorybookCapabilityOptions, type StylelintToolingConfig, type SyncSkillsOptions, type TemplateCatalog, type TemplateCatalogDiagnostic, type TemplateCatalogEntry, type TemplateDriftCollection, type TemplateDriftFile, type TemplateDriftOptions, type TemplateDriftOwner, type TemplateDriftRegistry, type TemplateDriftReport, type TemplateHealthCheck, type TemplateHealthReport, type TemplateHealthStatus, type TemplateHealthSummary, type TemplateInstance, type TemplateInstanceBaseline, type TemplateInstanceInfo, type TemplateInstanceRegistry, type TemplateInstanceSource, type TemplateLinkOptions, type TemplateLinkPlan, type TemplateRemoteSource, type TemplateSourceOptions, type TemplateSourceRequest, type TemplateUpgradeChange, type TemplateUpgradeEntry, type TemplateUpgradeOptions, type TemplateUpgradePlan, type TemplateUpgradeRecoveryResult, type TemplateUpgradeResult, type TemplateValidationDiagnostic, type TemplateValidationOptions, type TemplateValidationParameterSet, type TemplateValidationPlan, type TemplateValidationReport, type TemplateValidationSample, type TemplateValidationStage, type TemplateValidationStep, type TemplateVersionComparison, type TemplateVersionEvidence, type ToolingCapability, type ToolingCapabilityFile, type ToolingCapabilityOptions, type ToolingCapabilityPlan, type ToolingCapabilityResult, type ToolingConfig, type TsconfigToolingConfig, type TurboAnalysisLimitation, type TurboAnalysisOptions, type TurboCriticalPath, type TurboHashEvidence, type TurboRunAnalysis, type TurboTaskAnalysis, UpgradeApplyOptions, UpgradeApplyResult, UpgradeBaselineChange, UpgradeCommandConfig, UpgradeFilePlan, UpgradeFileStatus, UpgradeInput, UpgradeKeepDecision, UpgradeMergeDetails, UpgradeMigrationStep, UpgradeMigrationsPlan, UpgradeOptions, UpgradeOverrideFinding, UpgradePlan, UpgradeWorkspacePolicy, type VerifiedSnapshotRun, type VerifyCommandOptions, type VerifySnapshotRunOptions, type VitestProjectToolingConfig, type VitestToolingConfig, type WorkspaceArtifactApplyOptions, type WorkspaceArtifactOptions, type WorkspaceArtifactPlan, type WorkspaceArtifactResult, type WorkspaceBoundariesConfig, type WorkspaceBoundariesReport, type WorkspaceBoundaryException, type WorkspaceBoundaryFinding, type WorkspaceBoundaryRule, type WorkspaceBoundarySelector, WorkspaceData, type WorkspaceDependencyType, type WorkspaceGraph, type WorkspaceGraphDiagnostic, type WorkspaceGraphEdge, type WorkspaceGraphFilter, type WorkspaceGraphNode, type WorkspaceGraphOptions, type WorkspaceImpactOptions, type WorkspaceImpactResult, type WorkspaceLocation, WorkspaceMoveOptions, WorkspaceMovePlan, WorkspaceMoveResult, WorkspaceMoveReview, type WorkspaceOwnership, WorkspacePackage, WorkspacePackageManifest, WorkspacePackageSummary, WorkspacePackageSummaryData, WorkspacePackageWithJsonPath, WorkspaceRemovalBlocker, WorkspaceRemovalEntry, WorkspaceRemovalFile, WorkspaceRemovalOptions, WorkspaceRemovalPlan, WorkspaceRemovalResult, type WorkspaceTask, type WorkspaceTaskCatalog, type WorkspaceTaskOptions, type WorkspaceTaskPackage, type WorkspaceWhyResult, applyCreateNewProjectPlan, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, createNewProject, createReleasePullRequest, createTimestampFolderName, defaultAgenticBaseDir, defineCommitlintConfig, defineEslintConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, generateAgenticTemplate, generateAgenticTemplates, getCreateChoices, getTemplateMap, init, initMetadata, initTooling, initToolingTargets, isGitignoreFile, listTemplateInstances, loadAgenticTasks, loadMonorepoToolingConfig, loadTemplateBaseline, loadTemplateInstanceRegistry, normalizeInitToolingTargets, rebuildTemplateInstanceBaseline, recoverUnpublished, relocateTemplateInstance, resolveCreateNewProjectPlan, resolveRemoteTemplateSource, resolveTemplateCatalog, templateMap, toPublishGitignorePath, toWorkspaceAssetPath, toWorkspaceGitignorePath };
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { A as packageDir, I as ConfigValidationError, L as assertMonorepoConfig, M as rootDir, N as templatesDir, O as assetsDir, P as version, R as validateMonorepoConfig, _ as listToolingCapabilities, d as loadMonorepoConfig, f as loadMonorepoConfigDetails, h as resolveOrganizationPresets, i as loadMonorepoToolingConfig, j as packageName, k as cliName, l as defineMonorepoConfig, m as resolveToolingConfig, n as defineTsconfigConfig, p as resolveCommandConfig, s as configExtensions, t as createMonorepoTsconfig, u as getRepoctlConfigCandidates } from "./tsconfig-
|
|
2
|
-
import { $ as WorkspaceGraphQueryError, At as outputJson, B as saveKnipBaseline, Bt as getWorkspacePackages, Ct as ensureDir, Dt as isIgnorableFsError, Ft as writeJSON, I as getKnipConfigurationSuggestions, It as writeJson, J as getWorkspaceGraph, Lt as clearWorkspaceCache, M as formatEnvironmentCache, Mt as readJSON, Nt as readJson, Ot as outputFile, P as checkEnvironmentCache, Pt as remove, Q as whyWorkspaceDependency, R as planKnipCheck, Rt as getWorkspaceData, St as copy, Tt as exists, Ut as GitClient, W as analyzeTurboRuns, X as filterWorkspaceGraph, Z as getWorkspaceImpact, _ as planTemplateLink, a as inspectWorkspaceOwners, b as planGenerate, c as loadTemplateInstanceRegistry, f as recoverTemplateUpgrade, ft as setByPath, g as applyTemplateLinkPlan, i as planCodeowners, jt as pathExists, kt as outputJSON, l as rebuildTemplateInstanceBaseline, m as planTemplateUpgrade, n as locateWorkspace, o as listTemplateInstances, p as applyTemplateUpgradePlan, r as applyCodeownersPlan, s as loadTemplateBaseline, t as getWorkspaceTaskCatalog, tt as resolveWorkspaceGraphNode, u as relocateTemplateInstance, wt as ensureFile, x as generators, y as applyGeneratePlan, z as runKnipCheck, zt as getWorkspacePackageSummaries } from "./workspace-tasks-
|
|
3
|
-
import { a as resolveFullWorkspaceCheckPlan, c as verifyCommitMsg, d as logger, i as getKnownRepoCheckCommands, l as verifyPreCommit, o as resolveRecommendedCheckPlan, r as resolveAffectedCheckPlan, s as runRecommendedCheck, t as runCheckWithReport } from "./execute-
|
|
4
|
-
import { $ as formatUpgradePlan, $t as resolveCreateNewProjectPlan, A as applyProjectReferencesPlan, B as installGitHooks, Bt as createContext, C as createNightlyPlan, Ct as prepareBootstrap, D as createSnapshotPlan, Dt as createBootstrapPlan, E as releaseSnapshot, F as detectMaintenanceVersionChange, Ft as init, G as planDocsDeployment, Gt as runDoctor, H as planInstallSecurityPreset, Ht as collectEnvPaths, I as applyOrganizationPresetAssets, It as initMetadata, J as checkPublicApi, Jt as planUpgrade, K as checkPeerDependencies, Kt as applyDoctorFixPlan, L as planOrganizationPresetAssets, Lt as initTooling, M as checkPackages, Mt as createAutoChangesetPlan, N as getMaintenanceWorkflow, Nt as getAutoChangesetWorkflow, O as checkProjectReferences, Ot as parsePublishSummary, P as prepareMaintenanceUpgrade, Pt as setVscodeBinaryMirror, Q as upgradeMonorepo, R as applyDevContainerPlan, Rt as normalizeInitToolingTargets, S as createReleasePlan, St as auditReleaseOidc, U as deployDocs, Ut as collectEnvSnapshot, V as applyInstallSecurityPreset, Vt as collectEnvInfo, W as DocsDeploymentError, Wt as collectEnvSupportBundle, X as planPublicApiUpdate, Xt as applyCreateNewProjectPlan, Y as applyPublicApiUpdate, Yt as applyUpgradePlan, Z as formatPublicApiReport, Zt as createNewProject, _ as createSnapshotBuildPlan, _n as generateAgenticTemplate, _t as GitHubClient, a as planWorkspaceMove, an as resolveTemplateCatalog, at as readReleasePreparationPolicy, bt as verifyBootstrapPublication, c as applyToolingCapability, cn as inspectMonorepoConfig, ct as recoverUnpublished, d as planTemplateValidation, dn as validateConfigFile, dt as publishStable, en as getCreateChoices, et as checkTemplates, f as getSnapshotWorkflows, fn as cleanProjects, ft as releaseStable, g as prepareSnapshot, gn as defaultAgenticBaseDir, gt as releasePrerelease, h as publishPreparedSnapshot, hn as createTimestampFolderName, ht as exitPrerelease, i as applyWorkspaceMovePlan, it as validateReleasePreparation, j as planProjectReferences, jt as applyAutoChangeset, k as syncProjectReferences, l as planToolingCapability, ln as explainMonorepoConfig, lt as releaseCi, mn as verifyPrePush, mt as enterPrerelease, n as applyWorkspaceRemovalPlan, nn as templateMap, nt as skillTargets, o as applyWorkspaceArtifactPlan, ot as repairReleaseNotes, pn as verifyStagedTypecheck, pt as reconcileRelease, q as resolveAffectedCheckMatrix, qt as planDoctorFix, r as planWorkspaceRemoval, rn as resolveRemoteTemplateSource, rt as syncSkills, s as planWorkspaceArtifact, sn as updateIssueTemplateConfig, st as createReleasePullRequest, tn as getTemplateMap, tt as getSkillTargetPaths, u as validateTemplate, un as sanitizeConfigReport, ut as prepareStable, v as verifySnapshotRun, vn as generateAgenticTemplates, vt as GitHubApiError, w as releaseNightly, wt as snapshotPlanDigest, x as verifyPreparedSnapshotConsumer, xt as publishBootstrap, y as freezeSnapshotSource, yn as loadAgenticTasks, yt as releaseBootstrap, z as planDevContainer, zt as initToolingTargets } from "./commands-
|
|
5
|
-
import { c as selectCommandOverrides, s as resolveCommandValues } from "./scan-
|
|
6
|
-
import { B as toWorkspaceAssetPath, E as checkDependencyAdmission, R as isGitignoreFile, T as checkWorkspaceBoundaries, V as toWorkspaceGitignorePath, b as resolveReleaseBranches, f as inspectInstallSecurity, i as hasTemplateDriftIssues, l as getDoctorRuleIds, r as formatTemplateDriftReport, t as checkTemplateDrift, z as toPublishGitignorePath } from "./template-drift-
|
|
7
|
-
import { a as createMonorepoCommitlintConfig, c as defineCommitlintConfig, i as defineVitestProjectConfig, l as defineEslintConfig, n as createMonorepoVitestProjectConfig, o as createMonorepoEslintConfig, r as defineVitestConfig, s as createMonorepoStylelintConfig, t as createMonorepoVitestConfig, u as defineStylelintConfig } from "./vitest-
|
|
8
|
-
import { i as applyDependencyFixPlan, r as planDependencyFix, t as checkDependencies } from "./deps-
|
|
9
|
-
import { i as applyCatalogMigrationPlan, n as checkCatalogs, r as planCatalogMigration } from "./catalog-
|
|
1
|
+
import { A as packageDir, I as ConfigValidationError, L as assertMonorepoConfig, M as rootDir, N as templatesDir, O as assetsDir, P as version, R as validateMonorepoConfig, _ as listToolingCapabilities, d as loadMonorepoConfig, f as loadMonorepoConfigDetails, h as resolveOrganizationPresets, i as loadMonorepoToolingConfig, j as packageName, k as cliName, l as defineMonorepoConfig, m as resolveToolingConfig, n as defineTsconfigConfig, p as resolveCommandConfig, s as configExtensions, t as createMonorepoTsconfig, u as getRepoctlConfigCandidates } from "./tsconfig-BSF6chfb.mjs";
|
|
2
|
+
import { $ as WorkspaceGraphQueryError, At as outputJson, B as saveKnipBaseline, Bt as getWorkspacePackages, Ct as ensureDir, Dt as isIgnorableFsError, Ft as writeJSON, I as getKnipConfigurationSuggestions, It as writeJson, J as getWorkspaceGraph, Lt as clearWorkspaceCache, M as formatEnvironmentCache, Mt as readJSON, Nt as readJson, Ot as outputFile, P as checkEnvironmentCache, Pt as remove, Q as whyWorkspaceDependency, R as planKnipCheck, Rt as getWorkspaceData, St as copy, Tt as exists, Ut as GitClient, W as analyzeTurboRuns, X as filterWorkspaceGraph, Z as getWorkspaceImpact, _ as planTemplateLink, a as inspectWorkspaceOwners, b as planGenerate, c as loadTemplateInstanceRegistry, f as recoverTemplateUpgrade, ft as setByPath, g as applyTemplateLinkPlan, i as planCodeowners, jt as pathExists, kt as outputJSON, l as rebuildTemplateInstanceBaseline, m as planTemplateUpgrade, n as locateWorkspace, o as listTemplateInstances, p as applyTemplateUpgradePlan, r as applyCodeownersPlan, s as loadTemplateBaseline, t as getWorkspaceTaskCatalog, tt as resolveWorkspaceGraphNode, u as relocateTemplateInstance, wt as ensureFile, x as generators, y as applyGeneratePlan, z as runKnipCheck, zt as getWorkspacePackageSummaries } from "./workspace-tasks-DucdLmBS.mjs";
|
|
3
|
+
import { a as resolveFullWorkspaceCheckPlan, c as verifyCommitMsg, d as logger, i as getKnownRepoCheckCommands, l as verifyPreCommit, o as resolveRecommendedCheckPlan, r as resolveAffectedCheckPlan, s as runRecommendedCheck, t as runCheckWithReport } from "./execute-CowTATMR.mjs";
|
|
4
|
+
import { $ as formatUpgradePlan, $t as resolveCreateNewProjectPlan, A as applyProjectReferencesPlan, B as installGitHooks, Bt as createContext, C as createNightlyPlan, Ct as prepareBootstrap, D as createSnapshotPlan, Dt as createBootstrapPlan, E as releaseSnapshot, F as detectMaintenanceVersionChange, Ft as init, G as planDocsDeployment, Gt as runDoctor, H as planInstallSecurityPreset, Ht as collectEnvPaths, I as applyOrganizationPresetAssets, It as initMetadata, J as checkPublicApi, Jt as planUpgrade, K as checkPeerDependencies, Kt as applyDoctorFixPlan, L as planOrganizationPresetAssets, Lt as initTooling, M as checkPackages, Mt as createAutoChangesetPlan, N as getMaintenanceWorkflow, Nt as getAutoChangesetWorkflow, O as checkProjectReferences, Ot as parsePublishSummary, P as prepareMaintenanceUpgrade, Pt as setVscodeBinaryMirror, Q as upgradeMonorepo, R as applyDevContainerPlan, Rt as normalizeInitToolingTargets, S as createReleasePlan, St as auditReleaseOidc, U as deployDocs, Ut as collectEnvSnapshot, V as applyInstallSecurityPreset, Vt as collectEnvInfo, W as DocsDeploymentError, Wt as collectEnvSupportBundle, X as planPublicApiUpdate, Xt as applyCreateNewProjectPlan, Y as applyPublicApiUpdate, Yt as applyUpgradePlan, Z as formatPublicApiReport, Zt as createNewProject, _ as createSnapshotBuildPlan, _n as generateAgenticTemplate, _t as GitHubClient, a as planWorkspaceMove, an as resolveTemplateCatalog, at as readReleasePreparationPolicy, bt as verifyBootstrapPublication, c as applyToolingCapability, cn as inspectMonorepoConfig, ct as recoverUnpublished, d as planTemplateValidation, dn as validateConfigFile, dt as publishStable, en as getCreateChoices, et as checkTemplates, f as getSnapshotWorkflows, fn as cleanProjects, ft as releaseStable, g as prepareSnapshot, gn as defaultAgenticBaseDir, gt as releasePrerelease, h as publishPreparedSnapshot, hn as createTimestampFolderName, ht as exitPrerelease, i as applyWorkspaceMovePlan, it as validateReleasePreparation, j as planProjectReferences, jt as applyAutoChangeset, k as syncProjectReferences, l as planToolingCapability, ln as explainMonorepoConfig, lt as releaseCi, mn as verifyPrePush, mt as enterPrerelease, n as applyWorkspaceRemovalPlan, nn as templateMap, nt as skillTargets, o as applyWorkspaceArtifactPlan, ot as repairReleaseNotes, pn as verifyStagedTypecheck, pt as reconcileRelease, q as resolveAffectedCheckMatrix, qt as planDoctorFix, r as planWorkspaceRemoval, rn as resolveRemoteTemplateSource, rt as syncSkills, s as planWorkspaceArtifact, sn as updateIssueTemplateConfig, st as createReleasePullRequest, tn as getTemplateMap, tt as getSkillTargetPaths, u as validateTemplate, un as sanitizeConfigReport, ut as prepareStable, v as verifySnapshotRun, vn as generateAgenticTemplates, vt as GitHubApiError, w as releaseNightly, wt as snapshotPlanDigest, x as verifyPreparedSnapshotConsumer, xt as publishBootstrap, y as freezeSnapshotSource, yn as loadAgenticTasks, yt as releaseBootstrap, z as planDevContainer, zt as initToolingTargets } from "./commands-DWtDkzcp.mjs";
|
|
5
|
+
import { c as selectCommandOverrides, s as resolveCommandValues } from "./scan-C6ZqUxK0.mjs";
|
|
6
|
+
import { B as toWorkspaceAssetPath, E as checkDependencyAdmission, R as isGitignoreFile, T as checkWorkspaceBoundaries, V as toWorkspaceGitignorePath, b as resolveReleaseBranches, f as inspectInstallSecurity, i as hasTemplateDriftIssues, l as getDoctorRuleIds, r as formatTemplateDriftReport, t as checkTemplateDrift, z as toPublishGitignorePath } from "./template-drift-D3Hwedod.mjs";
|
|
7
|
+
import { a as createMonorepoCommitlintConfig, c as defineCommitlintConfig, i as defineVitestProjectConfig, l as defineEslintConfig, n as createMonorepoVitestProjectConfig, o as createMonorepoEslintConfig, r as defineVitestConfig, s as createMonorepoStylelintConfig, t as createMonorepoVitestConfig, u as defineStylelintConfig } from "./vitest-CgpUDzkr.mjs";
|
|
8
|
+
import { i as applyDependencyFixPlan, r as planDependencyFix, t as checkDependencies } from "./deps-DWFcbBQu.mjs";
|
|
9
|
+
import { i as applyCatalogMigrationPlan, n as checkCatalogs, r as planCatalogMigration } from "./catalog-CiaAmiTm.mjs";
|
|
10
10
|
import crypto from "node:crypto";
|
|
11
11
|
import { Buffer } from "node:buffer";
|
|
12
12
|
// src/utils/hash.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as packageDir } from "./tsconfig-
|
|
2
|
-
import { at as record } from "./workspace-tasks-
|
|
1
|
+
import { A as packageDir } from "./tsconfig-BSF6chfb.mjs";
|
|
2
|
+
import { at as record } from "./workspace-tasks-DucdLmBS.mjs";
|
|
3
3
|
import { findWorkspaceDir } from "@pnpm/find-workspace-dir";
|
|
4
4
|
import path from "pathe";
|
|
5
5
|
import process from "node:process";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as summarizeKnip, r as parseKnipOutput, t as compareKnipBaseline } from "./baseline-
|
|
2
|
-
import { t as knipConfigurationInputs } from "./inputs-
|
|
3
|
-
import { planKnipCheck } from "./plan-
|
|
4
|
-
import { U as stopCheckProcessTree } from "./workspace-tasks-
|
|
1
|
+
import { i as summarizeKnip, r as parseKnipOutput, t as compareKnipBaseline } from "./baseline-BS_u59AV.mjs";
|
|
2
|
+
import { t as knipConfigurationInputs } from "./inputs-Pn_oLgyr.mjs";
|
|
3
|
+
import { planKnipCheck } from "./plan-C4S0SIsH.mjs";
|
|
4
|
+
import { U as stopCheckProcessTree } from "./workspace-tasks-DucdLmBS.mjs";
|
|
5
5
|
import process from "node:process";
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
7
7
|
import { Buffer } from "node:buffer";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ht as isWithin, mt as assertSafePath, ot as safeFile } from "./workspace-tasks-
|
|
2
|
-
import { n as validateKnipBaseline } from "./baseline-
|
|
3
|
-
import { knipRoot } from "./plan-
|
|
1
|
+
import { ht as isWithin, mt as assertSafePath, ot as safeFile } from "./workspace-tasks-DucdLmBS.mjs";
|
|
2
|
+
import { n as validateKnipBaseline } from "./baseline-BS_u59AV.mjs";
|
|
3
|
+
import { knipRoot } from "./plan-C4S0SIsH.mjs";
|
|
4
4
|
import path from "pathe";
|
|
5
5
|
import { link, lstat, open, readFile, rename, unlink } from "node:fs/promises";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Ht as findWorkspacePackages, _t as localize, at as record, it as readInput, rt as hash } from "./workspace-tasks-
|
|
1
|
+
import { F as mergeConfigValues, I as ConfigValidationError, L as assertMonorepoConfig, Q as replaceDocsTarget, W as commandSchemas, et as validateSchema, f as loadMonorepoConfigDetails, q as defaultNightlyVersioning, u as getRepoctlConfigCandidates } from "./tsconfig-BSF6chfb.mjs";
|
|
2
|
+
import { Ht as findWorkspacePackages, _t as localize, at as record, it as readInput, rt as hash } from "./workspace-tasks-DucdLmBS.mjs";
|
|
3
3
|
import { findWorkspaceDir } from "@pnpm/find-workspace-dir";
|
|
4
4
|
import path from "pathe";
|
|
5
5
|
import { access, realpath } from "node:fs/promises";
|
|
@@ -137,6 +137,13 @@ function resolveCommandValues(name, project = {}, overrides = {}, options = {})
|
|
|
137
137
|
values: overrides
|
|
138
138
|
}
|
|
139
139
|
], name === "docs" ? replaceDocsTarget : void 0);
|
|
140
|
+
if (name === "release") {
|
|
141
|
+
const nightly = values["nightly"];
|
|
142
|
+
if (nightly.versioning === void 0) {
|
|
143
|
+
nightly.versioning = defaultNightlyVersioning(nightly.provider ?? "npm");
|
|
144
|
+
sources["nightly.versioning"] = { kind: "default" };
|
|
145
|
+
}
|
|
146
|
+
}
|
|
140
147
|
const origins = Object.fromEntries(Object.entries(sources).map(([field, source]) => [field, source.kind === "preset" ? "project" : source.kind]));
|
|
141
148
|
if (name === "create" && values["type"] === void 0) {
|
|
142
149
|
values["type"] = values["defaultTemplate"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as relativeFile, I as ConfigValidationError, P as version, T as readOptional, f as loadMonorepoConfigDetails,
|
|
2
|
-
import { Et as fs$2, J as getWorkspaceGraph, Y as parseDependencyReference, _t as localize, at as record$4, nt as workspaceDependencyTypes, rt as hash$1, ut as hasLegacyToolingReference } from "./workspace-tasks-
|
|
3
|
-
import { a as dependencySections, i as rangesOverlap, r as parseSpecifier, t as scanDependencies } from "./scan-
|
|
1
|
+
import { D as relativeFile, I as ConfigValidationError, J as resolveNightlyConfig, P as version, T as readOptional, f as loadMonorepoConfigDetails, it as __exportAll, p as resolveCommandConfig, w as hash } from "./tsconfig-BSF6chfb.mjs";
|
|
2
|
+
import { Et as fs$2, J as getWorkspaceGraph, Y as parseDependencyReference, _t as localize, at as record$4, nt as workspaceDependencyTypes, rt as hash$1, ut as hasLegacyToolingReference } from "./workspace-tasks-DucdLmBS.mjs";
|
|
3
|
+
import { a as dependencySections, i as rangesOverlap, r as parseSpecifier, t as scanDependencies } from "./scan-C6ZqUxK0.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import { findWorkspaceDir } from "@pnpm/find-workspace-dir";
|
|
6
6
|
import path from "pathe";
|
package/dist/tooling-entry.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as MonorepoVitestConfigOverrides, E as MonorepoVitestProjectConfigResult, S as MonorepoVitestConfigOptions, T as MonorepoVitestProjectConfigOptions, _ as DefineVitestProjectConfigOptions, a as createMonorepoTsconfig, b as MonorepoStylelintConfig, c as createMonorepoCommitlintConfig, d as defineCommitlintConfig, f as defineEslintConfig, g as DefineVitestConfigOptions, h as DefineEslintConfigOptions, i as defineVitestProjectConfig, l as createMonorepoEslintConfig, m as DefineConfigOptions, n as createMonorepoVitestProjectConfig, o as defineTsconfigConfig, p as defineStylelintConfig, r as defineVitestConfig, s as loadMonorepoToolingConfig, t as createMonorepoVitestConfig, u as createMonorepoStylelintConfig, v as MonorepoCommitlintConfig, w as MonorepoVitestConfigResult, x as MonorepoTsconfig, y as MonorepoEslintConfig } from "./index-
|
|
1
|
+
import { C as MonorepoVitestConfigOverrides, E as MonorepoVitestProjectConfigResult, S as MonorepoVitestConfigOptions, T as MonorepoVitestProjectConfigOptions, _ as DefineVitestProjectConfigOptions, a as createMonorepoTsconfig, b as MonorepoStylelintConfig, c as createMonorepoCommitlintConfig, d as defineCommitlintConfig, f as defineEslintConfig, g as DefineVitestConfigOptions, h as DefineEslintConfigOptions, i as defineVitestProjectConfig, l as createMonorepoEslintConfig, m as DefineConfigOptions, n as createMonorepoVitestProjectConfig, o as defineTsconfigConfig, p as defineStylelintConfig, r as defineVitestConfig, s as loadMonorepoToolingConfig, t as createMonorepoVitestConfig, u as createMonorepoStylelintConfig, v as MonorepoCommitlintConfig, w as MonorepoVitestConfigResult, x as MonorepoTsconfig, y as MonorepoEslintConfig } from "./index-CFxo1hPA.mjs";
|
|
2
2
|
export { DefineConfigOptions, DefineEslintConfigOptions, DefineVitestConfigOptions, DefineVitestProjectConfigOptions, MonorepoCommitlintConfig, MonorepoEslintConfig, MonorepoStylelintConfig, MonorepoTsconfig, MonorepoVitestConfigOptions, MonorepoVitestConfigOverrides, MonorepoVitestConfigResult, MonorepoVitestProjectConfigOptions, MonorepoVitestProjectConfigResult, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, defineCommitlintConfig, defineEslintConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, loadMonorepoToolingConfig };
|
package/dist/tooling-entry.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as loadMonorepoToolingConfig, n as defineTsconfigConfig, t as createMonorepoTsconfig } from "./tsconfig-
|
|
2
|
-
import { a as createMonorepoCommitlintConfig, c as defineCommitlintConfig, i as defineVitestProjectConfig, l as defineEslintConfig, n as createMonorepoVitestProjectConfig, o as createMonorepoEslintConfig, r as defineVitestConfig, s as createMonorepoStylelintConfig, t as createMonorepoVitestConfig, u as defineStylelintConfig } from "./vitest-
|
|
1
|
+
import { i as loadMonorepoToolingConfig, n as defineTsconfigConfig, t as createMonorepoTsconfig } from "./tsconfig-BSF6chfb.mjs";
|
|
2
|
+
import { a as createMonorepoCommitlintConfig, c as defineCommitlintConfig, i as defineVitestProjectConfig, l as defineEslintConfig, n as createMonorepoVitestProjectConfig, o as createMonorepoEslintConfig, r as defineVitestConfig, s as createMonorepoStylelintConfig, t as createMonorepoVitestConfig, u as defineStylelintConfig } from "./vitest-CgpUDzkr.mjs";
|
|
3
3
|
export { createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, defineCommitlintConfig, defineEslintConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, loadMonorepoToolingConfig };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _t as localize, at as record, ot as safeFile, pt as stageFileTransaction, rt as hash, st as updateManifest } from "./workspace-tasks-
|
|
2
|
-
import { a as dependencySections, i as rangesOverlap, n as equivalentRanges, o as matchGroup, r as parseSpecifier } from "./scan-
|
|
1
|
+
import { _t as localize, at as record, ot as safeFile, pt as stageFileTransaction, rt as hash, st as updateManifest } from "./workspace-tasks-DucdLmBS.mjs";
|
|
2
|
+
import { a as dependencySections, i as rangesOverlap, n as equivalentRanges, o as matchGroup, r as parseSpecifier } from "./scan-C6ZqUxK0.mjs";
|
|
3
3
|
import { isDeepStrictEqual } from "node:util";
|
|
4
4
|
// src/commands/deps/report.ts
|
|
5
5
|
function classify(group) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
2
|
import { findWorkspaceDir } from "@pnpm/find-workspace-dir";
|
|
3
|
-
import path, { normalize } from "pathe";
|
|
3
|
+
import path$1, { normalize } from "pathe";
|
|
4
4
|
import process from "node:process";
|
|
5
5
|
import { lstat, readFile, realpath } from "node:fs/promises";
|
|
6
6
|
import fs$1, { existsSync, readFileSync } from "node:fs";
|
|
@@ -10,7 +10,7 @@ import { AsyncLocalStorage } from "node:async_hooks";
|
|
|
10
10
|
import { satisfies, valid, validRange } from "semver";
|
|
11
11
|
import validatePackageName from "validate-npm-package-name";
|
|
12
12
|
import { createHash } from "node:crypto";
|
|
13
|
-
import path$
|
|
13
|
+
import path$2, * as path from "node:path";
|
|
14
14
|
import { fileURLToPath } from "node:url";
|
|
15
15
|
import { parse as parse$1 } from "comment-json";
|
|
16
16
|
// \0rolldown/runtime.js
|
|
@@ -218,6 +218,9 @@ const presetReferencesSchema = array(object({
|
|
|
218
218
|
}, ["packageName", "version"]));
|
|
219
219
|
// src/core/nightly/config.ts
|
|
220
220
|
const defaultNightlyQualityTimeoutMs = 27e5;
|
|
221
|
+
function defaultNightlyVersioning(provider) {
|
|
222
|
+
return provider === "npm" ? "date" : "snapshot";
|
|
223
|
+
}
|
|
221
224
|
const months = [
|
|
222
225
|
"JAN",
|
|
223
226
|
"FEB",
|
|
@@ -266,10 +269,14 @@ function isNightlyQualityTimeout(value) {
|
|
|
266
269
|
function resolveNightlyConfig(config = {}) {
|
|
267
270
|
const provider = config.provider ?? "npm";
|
|
268
271
|
if (provider !== "npm" && provider !== "pkg-pr-new") throw new Error("Nightly provider must be npm or pkg-pr-new.");
|
|
272
|
+
const versioning = config.versioning === void 0 ? defaultNightlyVersioning(provider) : config.versioning;
|
|
273
|
+
if (versioning !== "date" && versioning !== "snapshot") throw new Error("Nightly versioning must be date or snapshot.");
|
|
274
|
+
if (provider === "pkg-pr-new" && versioning !== "snapshot") throw new Error("Nightly pkg-pr-new only supports snapshot versioning because commit URLs are immutable.");
|
|
269
275
|
if (config.schedule !== void 0 && !isNightlySchedule(config.schedule)) throw new Error("Nightly schedule must be a valid five-field UTC GitHub Actions cron expression.");
|
|
270
276
|
if (config.qualityTimeoutMs !== void 0 && !isNightlyQualityTimeout(config.qualityTimeoutMs)) throw new Error("Nightly quality timeout must be a positive safe integer in milliseconds.");
|
|
271
277
|
return {
|
|
272
278
|
provider,
|
|
279
|
+
versioning,
|
|
273
280
|
...config.schedule === void 0 ? {} : { schedule: config.schedule.trim().toUpperCase().replaceAll(/\s+/gu, " ") },
|
|
274
281
|
...config.qualityTimeoutMs === void 0 ? {} : { qualityTimeoutMs: config.qualityTimeoutMs }
|
|
275
282
|
};
|
|
@@ -495,6 +502,7 @@ const commandSchemas = {
|
|
|
495
502
|
release: object({
|
|
496
503
|
nightly: object({
|
|
497
504
|
provider: choices("npm", "pkg-pr-new"),
|
|
505
|
+
versioning: choices("date", "snapshot"),
|
|
498
506
|
schedule: {
|
|
499
507
|
expected: "five-field UTC GitHub Actions cron",
|
|
500
508
|
accepts: isNightlySchedule
|
|
@@ -832,6 +840,15 @@ function validateMonorepoConfig(value) {
|
|
|
832
840
|
}
|
|
833
841
|
validateSchema(Object.fromEntries(Object.entries(value).filter(([key]) => key !== "extends" && !key.startsWith("$") && key !== "_layers")), rootSchema, "", diagnostics);
|
|
834
842
|
validateTemplateSources(value, diagnostics);
|
|
843
|
+
const release = isRecord(value["commands"]) && isRecord(value["commands"]["release"]) ? value["commands"]["release"] : void 0;
|
|
844
|
+
const nightly = isRecord(release?.["nightly"]) ? release["nightly"] : void 0;
|
|
845
|
+
if (nightly?.["provider"] === "pkg-pr-new" && nightly["versioning"] === "date") diagnostics.push({
|
|
846
|
+
id: "config.conflict",
|
|
847
|
+
path: "commands.release.nightly.versioning",
|
|
848
|
+
actualType: "string",
|
|
849
|
+
expected: "snapshot for pkg-pr-new",
|
|
850
|
+
suggestion: "Use snapshot versioning with immutable pkg-pr-new commit URLs, or select the npm provider."
|
|
851
|
+
});
|
|
835
852
|
const upgrade = isRecord(value["commands"]) && isRecord(value["commands"]["upgrade"]) ? value["commands"]["upgrade"] : void 0;
|
|
836
853
|
if (upgrade?.["overwrite"] === true && (upgrade["noOverwrite"] === true || upgrade["skipOverwrite"] === true)) diagnostics.push({
|
|
837
854
|
id: "config.conflict",
|
|
@@ -941,39 +958,39 @@ const version = packageMetadata.version;
|
|
|
941
958
|
/**
|
|
942
959
|
* @icebreakers/monorepo 包的根目录。
|
|
943
960
|
*/
|
|
944
|
-
const packageDir = path
|
|
961
|
+
const packageDir = path.dirname(packageJsonPath);
|
|
945
962
|
/**
|
|
946
963
|
* CLI 提供的模板/资产目录来源于 @icebreakers/monorepo-templates。
|
|
947
964
|
* 这里只解析 package.json 路径,避免 CLI 启动时加载模板包入口。
|
|
948
965
|
*/
|
|
949
|
-
const templatesPackageDir = path
|
|
950
|
-
const assetsDir = path
|
|
951
|
-
const templatesDir = path
|
|
966
|
+
const templatesPackageDir = path.dirname(require.resolve("@icebreakers/monorepo-templates/package.json"));
|
|
967
|
+
const assetsDir = path.join(templatesPackageDir, "assets");
|
|
968
|
+
const templatesDir = path.join(templatesPackageDir, "templates");
|
|
952
969
|
/**
|
|
953
970
|
* monorepo 根目录,方便需要跳出当前包的逻辑(例如定位工作区文件)。
|
|
954
971
|
*/
|
|
955
|
-
const workspaceRootDir = path
|
|
956
|
-
const rootDir = existsSync(path
|
|
972
|
+
const workspaceRootDir = path.resolve(packageDir, "..", "..");
|
|
973
|
+
const rootDir = existsSync(path.join(workspaceRootDir, "pnpm-workspace.yaml")) ? workspaceRootDir : packageDir;
|
|
957
974
|
// src/core/file-transaction/paths.ts
|
|
958
975
|
function hash(content) {
|
|
959
976
|
return createHash("sha256").update(content).digest("hex");
|
|
960
977
|
}
|
|
961
978
|
async function canonicalDirectory(directory) {
|
|
962
|
-
const requested = path.normalize(directory);
|
|
979
|
+
const requested = path$1.normalize(directory);
|
|
963
980
|
try {
|
|
964
|
-
const resolved = path.normalize(await realpath(requested));
|
|
981
|
+
const resolved = path$1.normalize(await realpath(requested));
|
|
965
982
|
if (!(await lstat(resolved)).isDirectory()) throw new Error(`Not a directory: ${directory}`);
|
|
966
983
|
return resolved;
|
|
967
984
|
} catch (error) {
|
|
968
985
|
if (error.code !== "ENOENT") throw error;
|
|
969
|
-
const parent = path.dirname(requested);
|
|
986
|
+
const parent = path$1.dirname(requested);
|
|
970
987
|
const networkRoot = /^\/\/[^/]+(?:\/[^/]+)?\/?$/.test(requested);
|
|
971
|
-
if (parent === requested || path.parse(requested).root === requested || networkRoot) throw error;
|
|
972
|
-
return path.join(await canonicalDirectory(parent), path.basename(requested));
|
|
988
|
+
if (parent === requested || path$1.parse(requested).root === requested || networkRoot) throw error;
|
|
989
|
+
return path$1.join(await canonicalDirectory(parent), path$1.basename(requested));
|
|
973
990
|
}
|
|
974
991
|
}
|
|
975
992
|
function relativeFile(relative) {
|
|
976
|
-
if (typeof relative !== "string" || !relative || path.isAbsolute(relative) || relative.includes("\\") || relative.split("/").some((part) => !part || [
|
|
993
|
+
if (typeof relative !== "string" || !relative || path$1.isAbsolute(relative) || relative.includes("\\") || relative.split("/").some((part) => !part || [
|
|
977
994
|
".",
|
|
978
995
|
"..",
|
|
979
996
|
".git"
|
|
@@ -986,7 +1003,7 @@ async function checkedPath(root, relative, owned, source = false) {
|
|
|
986
1003
|
let current = root;
|
|
987
1004
|
const parts = relative.split("/");
|
|
988
1005
|
for (const [index, part] of parts.entries()) {
|
|
989
|
-
current = path.join(current, part);
|
|
1006
|
+
current = path$1.join(current, part);
|
|
990
1007
|
try {
|
|
991
1008
|
const info = await lstat(current, { bigint: true });
|
|
992
1009
|
const ownLink = owned && info.ino === owned.ino && info.dev === owned.dev;
|
|
@@ -995,7 +1012,7 @@ async function checkedPath(root, relative, owned, source = false) {
|
|
|
995
1012
|
if (error.code !== "ENOENT") throw error;
|
|
996
1013
|
}
|
|
997
1014
|
}
|
|
998
|
-
return path.join(root, relative);
|
|
1015
|
+
return path$1.join(root, relative);
|
|
999
1016
|
}
|
|
1000
1017
|
/** Reject linked components and non-files; missing parents are valid planned additions. */
|
|
1001
1018
|
function checkedFile(root, relative, owned) {
|
|
@@ -1021,7 +1038,7 @@ const presetManifestName = "repoctl.preset.json";
|
|
|
1021
1038
|
const hashPresetFile = (content) => createHash("sha256").update(content).digest("hex");
|
|
1022
1039
|
/** Portable relative paths; preset declarations cannot escape their package or target root. */
|
|
1023
1040
|
function presetRelativePath(value) {
|
|
1024
|
-
if (!value || value !== value.trim() || value.includes("\\") || /[:*?"<>|]/u.test(value) || Array.from(value).some((character) => character.charCodeAt(0) < 32) || path.isAbsolute(value) || value.split("/").some((part) => !part || part === "." || part === ".." || /[. ]$/u.test(part) || /^(?:con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\..*)?$/iu.test(part))) throw new Error("Preset paths must be portable relative file paths without parent traversal.");
|
|
1041
|
+
if (!value || value !== value.trim() || value.includes("\\") || /[:*?"<>|]/u.test(value) || Array.from(value).some((character) => character.charCodeAt(0) < 32) || path$1.isAbsolute(value) || value.split("/").some((part) => !part || part === "." || part === ".." || /[. ]$/u.test(part) || /^(?:con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\..*)?$/iu.test(part))) throw new Error("Preset paths must be portable relative file paths without parent traversal.");
|
|
1025
1042
|
return value;
|
|
1026
1043
|
}
|
|
1027
1044
|
/** Package roots may be pnpm links; symlinks inside the package are never followed. */
|
|
@@ -1029,12 +1046,12 @@ async function readPresetFile(root, relative) {
|
|
|
1029
1046
|
const parts = presetRelativePath(relative).split("/");
|
|
1030
1047
|
let filename = root;
|
|
1031
1048
|
for (const [index, part] of parts.entries()) {
|
|
1032
|
-
filename = path.join(filename, part);
|
|
1049
|
+
filename = path$1.join(filename, part);
|
|
1033
1050
|
const info = await lstat(filename);
|
|
1034
1051
|
if (info.isSymbolicLink() || (index === parts.length - 1 ? !info.isFile() : !info.isDirectory())) throw new Error(`Preset input is not an ordinary file path: ${relative}`);
|
|
1035
1052
|
if (index === parts.length - 1 && info.size > 1048576) throw new Error(`Preset input exceeds 1 MiB: ${relative}`);
|
|
1036
1053
|
}
|
|
1037
|
-
if (path.normalize(await realpath(filename)) !== filename) throw new Error(`Preset input path changed: ${relative}`);
|
|
1054
|
+
if (path$1.normalize(await realpath(filename)) !== filename) throw new Error(`Preset input path changed: ${relative}`);
|
|
1038
1055
|
const content = await readFile(filename);
|
|
1039
1056
|
if (content.length > 1048576) throw new Error(`Preset input exceeds 1 MiB: ${relative}`);
|
|
1040
1057
|
return {
|
|
@@ -1052,20 +1069,20 @@ function parsePresetJson(content, name) {
|
|
|
1052
1069
|
}
|
|
1053
1070
|
/** Resolve data paths only. Package exports and JavaScript entrypoints are never loaded. */
|
|
1054
1071
|
async function installedPresetDirectory(packageName, fromDirectory) {
|
|
1055
|
-
const require = createRequire(path.join(fromDirectory, "__repoctl_preset__.cjs"));
|
|
1072
|
+
const require = createRequire(path$1.join(fromDirectory, "__repoctl_preset__.cjs"));
|
|
1056
1073
|
const localPaths = /* @__PURE__ */ new Set();
|
|
1057
|
-
let parent = path.resolve(fromDirectory);
|
|
1074
|
+
let parent = path$1.resolve(fromDirectory);
|
|
1058
1075
|
while (true) {
|
|
1059
|
-
localPaths.add(path.join(parent, "node_modules"));
|
|
1060
|
-
const next = path.dirname(parent);
|
|
1076
|
+
localPaths.add(path$1.join(parent, "node_modules"));
|
|
1077
|
+
const next = path$1.dirname(parent);
|
|
1061
1078
|
if (next === parent) break;
|
|
1062
1079
|
parent = next;
|
|
1063
1080
|
}
|
|
1064
1081
|
for (const directory of require.resolve.paths(packageName) ?? []) {
|
|
1065
|
-
if (!localPaths.has(path.normalize(directory))) continue;
|
|
1066
|
-
const candidate = path.join(directory, packageName);
|
|
1082
|
+
if (!localPaths.has(path$1.normalize(directory))) continue;
|
|
1083
|
+
const candidate = path$1.join(directory, packageName);
|
|
1067
1084
|
try {
|
|
1068
|
-
const root = path.normalize(await realpath(candidate));
|
|
1085
|
+
const root = path$1.normalize(await realpath(candidate));
|
|
1069
1086
|
if ((await lstat(root)).isDirectory()) return root;
|
|
1070
1087
|
} catch (error) {
|
|
1071
1088
|
if (!["ENOENT", "ENOTDIR"].includes(error.code ?? "")) throw error;
|
|
@@ -1183,7 +1200,7 @@ function parseOrganizationPresetManifest(value) {
|
|
|
1183
1200
|
/** Read installed data only: no importing package entrypoints, download, cache write or lifecycle execution. */
|
|
1184
1201
|
async function resolveOrganizationPresets(cwd, references) {
|
|
1185
1202
|
const result = {
|
|
1186
|
-
workspaceDir: normalize(path$
|
|
1203
|
+
workspaceDir: normalize(path$2.resolve(cwd)),
|
|
1187
1204
|
layers: [],
|
|
1188
1205
|
diagnostics: [],
|
|
1189
1206
|
inputs: [],
|
|
@@ -1347,7 +1364,7 @@ const configExtensions = [
|
|
|
1347
1364
|
"cjs"
|
|
1348
1365
|
];
|
|
1349
1366
|
function getRepoctlConfigCandidates(cwd) {
|
|
1350
|
-
return configExtensions.map((ext) => path.resolve(cwd, `repoctl.config.${ext}`));
|
|
1367
|
+
return configExtensions.map((ext) => path$1.resolve(cwd, `repoctl.config.${ext}`));
|
|
1351
1368
|
}
|
|
1352
1369
|
function findConfigFiles(cwd) {
|
|
1353
1370
|
return getRepoctlConfigCandidates(cwd).filter((file) => fs$1.existsSync(file));
|
|
@@ -1377,12 +1394,12 @@ async function loadConfigInternal(cwd, refresh = false) {
|
|
|
1377
1394
|
});
|
|
1378
1395
|
for (const layer of layers ?? []) assertMonorepoConfig(layer.config ?? {});
|
|
1379
1396
|
assertMonorepoConfig(config ?? {});
|
|
1380
|
-
const matchedConfigFile = configFile && fs$1.existsSync(configFile) ? findConfigFiles(cwd).find((file) => path.basename(file).toLowerCase() === path.basename(configFile).toLowerCase()) : void 0;
|
|
1397
|
+
const matchedConfigFile = configFile && fs$1.existsSync(configFile) ? findConfigFiles(cwd).find((file) => path$1.basename(file).toLowerCase() === path$1.basename(configFile).toLowerCase()) : void 0;
|
|
1381
1398
|
const files = await Promise.all([.../* @__PURE__ */ new Set([
|
|
1382
1399
|
configFile,
|
|
1383
1400
|
...(layers ?? []).map((layer) => layer.configFile),
|
|
1384
1401
|
...dependencies
|
|
1385
|
-
])].filter((file) => Boolean(file && fs$1.existsSync(file))).map(async (file) => path.normalize(await realpath(file))));
|
|
1402
|
+
])].filter((file) => Boolean(file && fs$1.existsSync(file))).map(async (file) => path$1.normalize(await realpath(file))));
|
|
1386
1403
|
const file = matchedConfigFile ? await realpath(matchedConfigFile) : configFile && fs$1.existsSync(configFile) ? await realpath(configFile) : null;
|
|
1387
1404
|
const presets = await resolveOrganizationPresets(cwd, config?.presets ?? []);
|
|
1388
1405
|
const failures = presets.diagnostics.filter((item) => item.status === "fail");
|
|
@@ -1451,7 +1468,7 @@ function defineMonorepoConfig(config) {
|
|
|
1451
1468
|
* @returns 配置文件路径和解析后的配置对象;未找到时 file 为 null、config 为空对象
|
|
1452
1469
|
*/
|
|
1453
1470
|
async function loadMonorepoConfigDetails(cwd, options = {}) {
|
|
1454
|
-
const directory = path.resolve(cwd);
|
|
1471
|
+
const directory = path$1.resolve(cwd);
|
|
1455
1472
|
const key = `${directory}:${legacyHookConfigEnabled() ? "legacy-hooks" : "current"}`;
|
|
1456
1473
|
if (options.refresh) cache.delete(key);
|
|
1457
1474
|
if (!cache.has(key)) cache.set(key, loadConfigInternal(directory, options.refresh));
|
|
@@ -1553,4 +1570,4 @@ async function defineTsconfigConfig(input = {}) {
|
|
|
1553
1570
|
const resolved = resolveConfigInput(input);
|
|
1554
1571
|
return createMonorepoTsconfig(mergeTsconfig(await loadToolingSection("tsconfig", resolved.cwd) ?? {}, resolved.options));
|
|
1555
1572
|
}
|
|
1556
|
-
export {
|
|
1573
|
+
export { isRecord as $, packageDir as A, normalizeTemplateSourceRequest as B, checkedFile as C, relativeFile as D, readOptionalSource as E, mergeConfigValues as F, isUpgradeExpiry as G, sourceRequestKey as H, ConfigValidationError as I, resolveNightlyConfig as J, defaultNightlyQualityTimeoutMs as K, assertMonorepoConfig as L, rootDir as M, templatesDir as N, assetsDir as O, version as P, replaceDocsTarget as Q, validateMonorepoConfig as R, canonicalDirectory as S, readOptional as T, templateSourcePath as U, registryUrl as V, commandSchemas as W, presetVersion as X, presetPackageName as Y, withLegacyHookConfig as Z, listToolingCapabilities as _, loadToolingSection as a, presetRelativePath as b, config_exports as c, loadMonorepoConfig as d, validateSchema as et, loadMonorepoConfigDetails as f, presetAssetTarget as g, resolveOrganizationPresets as h, loadMonorepoToolingConfig as i, __exportAll as it, packageName as j, cliName as k, defineMonorepoConfig as l, resolveToolingConfig as m, defineTsconfigConfig as n, splitConfigPath as nt, resolveConfigInput as o, resolveCommandConfig as p, defaultNightlyVersioning as q, isDefineConfigWrapper as r, commandConfigDirectory as rt, configExtensions as s, createMonorepoTsconfig as t, appendConfigPath as tt, getRepoctlConfigCandidates as u, installedPresetDirectory as v, hash as w, readPresetFile as x, parsePresetJson as y, normalizeTemplateRemoteSource as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as loadToolingSection, o as resolveConfigInput, r as isDefineConfigWrapper } from "./tsconfig-
|
|
1
|
+
import { a as loadToolingSection, o as resolveConfigInput, r as isDefineConfigWrapper } from "./tsconfig-BSF6chfb.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
import fs from "node:fs";
|