@icebreakers/monorepo 5.5.8 → 5.5.9
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 +33 -33
- package/dist/{commands-BmXeA5K-.mjs → commands-BCix_gOD.mjs} +718 -274
- package/dist/{create-flow-w-VLvOp5.mjs → create-flow-ghL18gPo.mjs} +2 -2
- package/dist/{index-BTR2XH8f.d.mts → index-DDQKKYet.d.mts} +51 -47
- package/dist/index.d.mts +36 -5
- package/dist/index.mjs +2 -2
- package/dist/tooling-entry.d.mts +1 -1
- package/dist/{types-90NVHAdA.mjs → types-W9fwiyx8.mjs} +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as defaultTemplate, N as resolveCreateNewProjectPlan, j as getCreateChoices, k as createNewProject } from "./commands-
|
|
2
|
-
import { m as logger, u as localize, y as fs } from "./types-
|
|
1
|
+
import { A as defaultTemplate, N as resolveCreateNewProjectPlan, j as getCreateChoices, k as createNewProject } from "./commands-BCix_gOD.mjs";
|
|
2
|
+
import { m as logger, u as localize, y as fs } from "./types-W9fwiyx8.mjs";
|
|
3
3
|
import { s as resolveCommandConfig } from "./config-p842Knhq.mjs";
|
|
4
4
|
import path from "pathe";
|
|
5
5
|
import process from "node:process";
|
|
@@ -215,6 +215,56 @@ declare function initMetadata(cwd: string): Promise<void>;
|
|
|
215
215
|
*/
|
|
216
216
|
declare function init(cwd: string, options?: InitCommandRuntimeOptions): Promise<void>;
|
|
217
217
|
//#endregion
|
|
218
|
+
//#region src/types/release.d.ts
|
|
219
|
+
interface ReleaseAfterPublishHookConfig {
|
|
220
|
+
/** 执行结果未知时是否允许重试;仅适用于可安全重复执行的脚本。默认 false。 */
|
|
221
|
+
idempotent?: boolean;
|
|
222
|
+
/** package.json 中要通过 `pnpm run` 执行的脚本名。 */
|
|
223
|
+
script: string;
|
|
224
|
+
/**
|
|
225
|
+
* 脚本失败时是否只记录警告并继续。
|
|
226
|
+
* @default false
|
|
227
|
+
*/
|
|
228
|
+
continueOnError?: boolean;
|
|
229
|
+
}
|
|
230
|
+
interface ReleaseCommandConfig {
|
|
231
|
+
/**
|
|
232
|
+
* version 与 publish 阶段执行的根 package.json 校验脚本。
|
|
233
|
+
* 配置后完整替换内置的 build、lint、test。
|
|
234
|
+
* @default ['build', 'lint', 'test']
|
|
235
|
+
*/
|
|
236
|
+
qualityScripts?: string[];
|
|
237
|
+
hooks?: {
|
|
238
|
+
/**
|
|
239
|
+
* qualityScripts 通过后追加执行的校验脚本。
|
|
240
|
+
* 任一脚本失败都会中止版本或发布流程。
|
|
241
|
+
* @default []
|
|
242
|
+
*/
|
|
243
|
+
verify?: string[];
|
|
244
|
+
/**
|
|
245
|
+
* pnpm version 前执行的根 package.json 脚本。
|
|
246
|
+
* @default []
|
|
247
|
+
*/
|
|
248
|
+
beforeVersion?: string[];
|
|
249
|
+
/**
|
|
250
|
+
* pnpm version 后执行的根 package.json 脚本。
|
|
251
|
+
* @default []
|
|
252
|
+
*/
|
|
253
|
+
afterVersion?: string[];
|
|
254
|
+
/**
|
|
255
|
+
* pnpm publish 前执行的根 package.json 脚本。
|
|
256
|
+
* @default []
|
|
257
|
+
*/
|
|
258
|
+
beforePublish?: string[];
|
|
259
|
+
/**
|
|
260
|
+
* npm metadata 与 GitHub Release 处理完成后执行的根 package.json 脚本。
|
|
261
|
+
* 在新发布或恢复未完成发布时执行;跨 runner 恢复会跳过已完成的脚本。
|
|
262
|
+
* @default []
|
|
263
|
+
*/
|
|
264
|
+
afterPublish?: ReleaseAfterPublishHookConfig[];
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
//#endregion
|
|
218
268
|
//#region src/types/config.d.ts
|
|
219
269
|
interface AiCommandConfig {
|
|
220
270
|
/**
|
|
@@ -591,52 +641,6 @@ interface HuskyToolingConfig {
|
|
|
591
641
|
*/
|
|
592
642
|
commitMsgCommand?: string;
|
|
593
643
|
}
|
|
594
|
-
interface ReleaseAfterPublishHookConfig {
|
|
595
|
-
/** package.json 中要通过 `pnpm run` 执行的脚本名。 */
|
|
596
|
-
script: string;
|
|
597
|
-
/**
|
|
598
|
-
* 脚本失败时是否只记录警告并继续。
|
|
599
|
-
* @default false
|
|
600
|
-
*/
|
|
601
|
-
continueOnError?: boolean;
|
|
602
|
-
}
|
|
603
|
-
interface ReleaseCommandConfig {
|
|
604
|
-
/**
|
|
605
|
-
* version 与 publish 阶段执行的根 package.json 校验脚本。
|
|
606
|
-
* 配置后完整替换内置的 build、lint、test。
|
|
607
|
-
* @default ['build', 'lint', 'test']
|
|
608
|
-
*/
|
|
609
|
-
qualityScripts?: string[];
|
|
610
|
-
hooks?: {
|
|
611
|
-
/**
|
|
612
|
-
* qualityScripts 通过后追加执行的校验脚本。
|
|
613
|
-
* 任一脚本失败都会中止版本或发布流程。
|
|
614
|
-
* @default []
|
|
615
|
-
*/
|
|
616
|
-
verify?: string[];
|
|
617
|
-
/**
|
|
618
|
-
* pnpm version 前执行的根 package.json 脚本。
|
|
619
|
-
* @default []
|
|
620
|
-
*/
|
|
621
|
-
beforeVersion?: string[];
|
|
622
|
-
/**
|
|
623
|
-
* pnpm version 后执行的根 package.json 脚本。
|
|
624
|
-
* @default []
|
|
625
|
-
*/
|
|
626
|
-
afterVersion?: string[];
|
|
627
|
-
/**
|
|
628
|
-
* pnpm publish 前执行的根 package.json 脚本。
|
|
629
|
-
* @default []
|
|
630
|
-
*/
|
|
631
|
-
beforePublish?: string[];
|
|
632
|
-
/**
|
|
633
|
-
* npm metadata 与 GitHub Release 处理完成后执行的根 package.json 脚本。
|
|
634
|
-
* 仅在确有 npm 包发布后执行。
|
|
635
|
-
* @default []
|
|
636
|
-
*/
|
|
637
|
-
afterPublish?: ReleaseAfterPublishHookConfig[];
|
|
638
|
-
};
|
|
639
|
-
}
|
|
640
644
|
/**
|
|
641
645
|
* `repoctl.config.ts` 中 `tooling` 总配置。
|
|
642
646
|
*
|
|
@@ -1018,4 +1022,4 @@ declare function createMonorepoVitestProjectConfig(options?: MonorepoVitestProje
|
|
|
1018
1022
|
*/
|
|
1019
1023
|
declare function defineVitestProjectConfig(input?: DefineVitestProjectConfigOptions): Promise<MonorepoVitestProjectConfigResult>;
|
|
1020
1024
|
//#endregion
|
|
1021
|
-
export { init as $, loadMonorepoToolingConfig as A, HuskyToolingConfig as B, defineCommitlintConfig as C, defineTsconfigConfig as D, defineStylelintConfig as E, CleanCommandConfig as F,
|
|
1025
|
+
export { init as $, loadMonorepoToolingConfig as A, HuskyToolingConfig as B, defineCommitlintConfig as C, defineTsconfigConfig as D, defineStylelintConfig as E, CleanCommandConfig as F, StylelintToolingConfig as G, LintStagedToolingConfig as H, CommitlintToolingConfig as I, UpgradeCommandConfig as J, ToolingConfig as K, CreateChoiceOption as L, SimpleGit as M, SimpleGitOptions as N, defineVitestConfig as O, AiCommandConfig as P, ReleaseCommandConfig as Q, CreateCommandConfig as R, createMonorepoVitestProjectConfig as S, defineLintStagedConfig as T, MirrorCommandConfig as U, InitCommandConfig as V, MonorepoConfig as W, VitestToolingConfig as X, VitestProjectToolingConfig as Y, ReleaseAfterPublishHookConfig as Z, createMonorepoEslintConfig as _, generateAgenticTemplates as _t, MonorepoCommitlintConfig as a, CreateNewProjectOptions as at, createMonorepoTsconfig as b, MonorepoLintStagedConfigOptions as c, getTemplateMap as ct, MonorepoVitestConfigOptions as d, AgenticTemplateFormat as dt, initMetadata as et, MonorepoVitestConfigOverrides as f, AgenticTemplateTask as ft, createMonorepoCommitlintConfig as g, generateAgenticTemplate as gt, MonorepoVitestProjectConfigResult as h, defaultAgenticBaseDir as ht, DefineVitestProjectConfigOptions as i, createNewProject as it, ConfigValues as j, defineVitestProjectConfig as k, MonorepoStylelintConfig as l, resolveCreateNewProjectPlan as lt, MonorepoVitestProjectConfigOptions as m, createTimestampFolderName as mt, DefineEslintConfigOptions as n, normalizeInitToolingTargets as nt, MonorepoEslintConfig as o, CreateNewProjectPlan as ot, MonorepoVitestConfigResult as p, GenerateAgenticTemplateOptions as pt, TsconfigToolingConfig as q, DefineVitestConfigOptions as r, initToolingTargets as rt, MonorepoLintStagedConfig as s, getCreateChoices as st, DefineConfigOptions as t, initTooling as tt, MonorepoTsconfig as u, templateMap as ut, createMonorepoLintStagedConfig as v, loadAgenticTasks as vt, defineEslintConfig as w, createMonorepoVitestConfig as x, createMonorepoStylelintConfig as y, CliOpts as yt, EslintToolingConfig as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as init, A as loadMonorepoToolingConfig, B as HuskyToolingConfig, C as defineCommitlintConfig, D as defineTsconfigConfig, E as defineStylelintConfig, F as CleanCommandConfig, G as
|
|
1
|
+
import { $ as init, A as loadMonorepoToolingConfig, B as HuskyToolingConfig, C as defineCommitlintConfig, D as defineTsconfigConfig, E as defineStylelintConfig, F as CleanCommandConfig, G as StylelintToolingConfig, H as LintStagedToolingConfig, I as CommitlintToolingConfig, J as UpgradeCommandConfig, K as ToolingConfig, L as CreateChoiceOption, M as SimpleGit, N as SimpleGitOptions, O as defineVitestConfig, P as AiCommandConfig, Q as ReleaseCommandConfig, R as CreateCommandConfig, S as createMonorepoVitestProjectConfig, T as defineLintStagedConfig, U as MirrorCommandConfig, V as InitCommandConfig, W as MonorepoConfig, X as VitestToolingConfig, Y as VitestProjectToolingConfig, Z as ReleaseAfterPublishHookConfig, _ as createMonorepoEslintConfig, _t as generateAgenticTemplates, a as MonorepoCommitlintConfig, at as CreateNewProjectOptions, b as createMonorepoTsconfig, c as MonorepoLintStagedConfigOptions, ct as getTemplateMap, d as MonorepoVitestConfigOptions, dt as AgenticTemplateFormat, et as initMetadata, f as MonorepoVitestConfigOverrides, ft as AgenticTemplateTask, g as createMonorepoCommitlintConfig, gt as generateAgenticTemplate, h as MonorepoVitestProjectConfigResult, ht as defaultAgenticBaseDir, i as DefineVitestProjectConfigOptions, it as createNewProject, j as ConfigValues, k as defineVitestProjectConfig, l as MonorepoStylelintConfig, lt as resolveCreateNewProjectPlan, m as MonorepoVitestProjectConfigOptions, mt as createTimestampFolderName, n as DefineEslintConfigOptions, nt as normalizeInitToolingTargets, o as MonorepoEslintConfig, ot as CreateNewProjectPlan, p as MonorepoVitestConfigResult, pt as GenerateAgenticTemplateOptions, q as TsconfigToolingConfig, r as DefineVitestConfigOptions, rt as initToolingTargets, s as MonorepoLintStagedConfig, st as getCreateChoices, t as DefineConfigOptions, tt as initTooling, u as MonorepoTsconfig, ut as templateMap, v as createMonorepoLintStagedConfig, vt as loadAgenticTasks, w as defineEslintConfig, x as createMonorepoVitestConfig, y as createMonorepoStylelintConfig, yt as CliOpts, z as EslintToolingConfig } from "./index-DDQKKYet.mjs";
|
|
2
2
|
import gitUrlParse from "git-url-parse";
|
|
3
3
|
import { mkdtemp, readFile, readdir, stat, writeFile } from "node:fs/promises";
|
|
4
4
|
import { execFileSync, spawnSync } from "node:child_process";
|
|
@@ -273,6 +273,27 @@ interface ReleaseNoteDocument {
|
|
|
273
273
|
compareUrls: string[];
|
|
274
274
|
}
|
|
275
275
|
//#endregion
|
|
276
|
+
//#region src/commands/release/lifecycle/types.d.ts
|
|
277
|
+
interface ReleaseTarget extends PublishedPackage {
|
|
278
|
+
target: string;
|
|
279
|
+
}
|
|
280
|
+
interface ReleaseLifecycleState {
|
|
281
|
+
writer: string;
|
|
282
|
+
schemaVersion: 1;
|
|
283
|
+
repository: string;
|
|
284
|
+
candidates: PublishedPackage[];
|
|
285
|
+
packages: ReleaseTarget[];
|
|
286
|
+
accepted: PublishedPackage[];
|
|
287
|
+
npm: 'pending' | 'running' | 'failed' | 'complete';
|
|
288
|
+
metadata: string[];
|
|
289
|
+
hooks: Record<string, 'pending' | 'running' | 'complete' | 'ignored'>;
|
|
290
|
+
complete: boolean;
|
|
291
|
+
}
|
|
292
|
+
interface ReleaseStateSnapshot {
|
|
293
|
+
revision: string;
|
|
294
|
+
state: ReleaseLifecycleState;
|
|
295
|
+
}
|
|
296
|
+
//#endregion
|
|
276
297
|
//#region src/commands/release/github/types.d.ts
|
|
277
298
|
interface GitHubPullRequest {
|
|
278
299
|
number: number;
|
|
@@ -331,9 +352,14 @@ interface UpdateReleaseOptions {
|
|
|
331
352
|
body: string;
|
|
332
353
|
}
|
|
333
354
|
interface GitHubOperations {
|
|
355
|
+
/** 读取跨 runner 的发布阶段记录;查询失败必须抛出。 */
|
|
356
|
+
readReleaseState?: (key: string) => Promise<ReleaseStateSnapshot | undefined>;
|
|
357
|
+
/** 以远端 revision 比较并交换,阻止并发覆盖。 */
|
|
358
|
+
writeReleaseState?: (key: string, state: ReleaseLifecycleState, revision?: string) => Promise<string>;
|
|
334
359
|
ensurePullRequest: (options: EnsurePullRequestOptions) => Promise<GitHubPullRequest>;
|
|
335
360
|
closeLegacyReleasePullRequests?: (options: CloseLegacyPullRequestsOptions) => Promise<void>;
|
|
336
361
|
ensureRelease: (options: EnsureReleaseOptions) => Promise<GitHubRelease>;
|
|
362
|
+
readTagTarget?: (tag: string) => Promise<string | undefined>;
|
|
337
363
|
ensureTag?: (options: EnsureTagOptions) => Promise<void>;
|
|
338
364
|
enrichReleaseNote?: (document: ReleaseNoteDocument) => Promise<ReleaseNoteDocument>;
|
|
339
365
|
readReleasePullRequestContributors?: (target: string) => Promise<string[]>;
|
|
@@ -347,12 +373,14 @@ declare class ReleaseCommandError extends Error {
|
|
|
347
373
|
constructor(message: string, exitCode?: number);
|
|
348
374
|
}
|
|
349
375
|
//#endregion
|
|
350
|
-
//#region src/commands/release/github/
|
|
376
|
+
//#region src/commands/release/github/errors.d.ts
|
|
351
377
|
export declare class GitHubApiError extends ReleaseCommandError {
|
|
352
378
|
readonly status: number;
|
|
353
379
|
readonly responseBody?: string | undefined;
|
|
354
380
|
constructor(message: string, status: number, responseBody?: string | undefined);
|
|
355
381
|
}
|
|
382
|
+
//#endregion
|
|
383
|
+
//#region src/commands/release/github/client.d.ts
|
|
356
384
|
export declare class GitHubClient implements GitHubOperations {
|
|
357
385
|
private readonly token;
|
|
358
386
|
private readonly repository;
|
|
@@ -365,6 +393,8 @@ export declare class GitHubClient implements GitHubOperations {
|
|
|
365
393
|
private getRepository;
|
|
366
394
|
private request;
|
|
367
395
|
private getRequest;
|
|
396
|
+
readReleaseState(key: string): Promise<ReleaseStateSnapshot | undefined>;
|
|
397
|
+
writeReleaseState(key: string, state: ReleaseLifecycleState, revision?: string): Promise<string>;
|
|
368
398
|
ensurePullRequest(options: EnsurePullRequestOptions): Promise<GitHubPullRequest>;
|
|
369
399
|
closeLegacyReleasePullRequests(options: CloseLegacyPullRequestsOptions): Promise<void>;
|
|
370
400
|
ensureRelease(options: EnsureReleaseOptions): Promise<GitHubRelease>;
|
|
@@ -372,6 +402,7 @@ export declare class GitHubClient implements GitHubOperations {
|
|
|
372
402
|
updateRelease(options: UpdateReleaseOptions): Promise<GitHubRelease>;
|
|
373
403
|
enrichReleaseNote(document: ReleaseNoteDocument): Promise<ReleaseNoteDocument>;
|
|
374
404
|
readReleasePullRequestContributors(target: string): Promise<string[]>;
|
|
405
|
+
readTagTarget(tag: string): Promise<string | undefined>;
|
|
375
406
|
ensureTag(options: EnsureTagOptions): Promise<void>;
|
|
376
407
|
}
|
|
377
408
|
//#endregion
|
|
@@ -408,7 +439,7 @@ export declare function releaseCi(options: ReleaseCiOptions): Promise<PublishedP
|
|
|
408
439
|
} | undefined>;
|
|
409
440
|
//#endregion
|
|
410
441
|
//#region src/commands/release/prerelease.d.ts
|
|
411
|
-
export declare function releasePrerelease(options: ReleaseOptions): Promise<PublishedPackage[] | undefined>;
|
|
442
|
+
export declare function releasePrerelease(options: ReleaseOptions, publish?: () => Promise<PublishedPackage[]>): Promise<PublishedPackage[] | undefined>;
|
|
412
443
|
export declare function enterPrerelease(tag: string, options: ReleaseOptions): Promise<void>;
|
|
413
444
|
export declare function exitPrerelease(options: ReleaseOptions): Promise<void>;
|
|
414
445
|
//#endregion
|
|
@@ -417,7 +448,7 @@ interface ReleaseReconcileOptions extends ReleaseOptions {
|
|
|
417
448
|
packageName?: string;
|
|
418
449
|
packageVersion?: string;
|
|
419
450
|
dryRun?: boolean;
|
|
420
|
-
github?: Pick<GitHubOperations, 'listReleases' | 'ensureRelease' | 'ensureTag' | 'enrichReleaseNote' | 'readReleasePullRequestContributors'>;
|
|
451
|
+
github?: Pick<GitHubOperations, 'listReleases' | 'ensureRelease' | 'ensureTag' | 'readTagTarget' | 'enrichReleaseNote' | 'readReleasePullRequestContributors'>;
|
|
421
452
|
}
|
|
422
453
|
export declare function reconcileRelease(options: ReleaseReconcileOptions): Promise<{
|
|
423
454
|
repaired: string[];
|
|
@@ -907,4 +938,4 @@ export declare function escapeStringRegexp(str: string): string;
|
|
|
907
938
|
*/
|
|
908
939
|
export declare function isMatch(str: string, arr: RegExp[]): boolean;
|
|
909
940
|
//#endregion
|
|
910
|
-
export { type AgenticTemplateFormat, type AgenticTemplateTask, AiCommandConfig, type CheckTemplatesOptions, CleanCommandConfig, CliOpts, type CommitMsgVerifyOptions, CommitlintToolingConfig, type ConfigInspection, type ConfigValues, CreateChoiceOption, CreateCommandConfig, type CreateNewProjectOptions, type CreateNewProjectPlan, DefineConfigOptions, DefineEslintConfigOptions, DefineVitestConfigOptions, DefineVitestProjectConfigOptions, type DoctorCheck, type DoctorReport, type DoctorStatus, type DoctorSummary, type EnsurePullRequestOptions, type EnsureReleaseOptions, type EnsureTagOptions, type EnvInfo, type EnvPathEntry, type EnvPaths, type EnvSnapshot, type EnvSupportBundle, EslintToolingConfig, type GenerateAgenticTemplateOptions, type GitHubClientOptions, type GitHubOperations, HuskyToolingConfig, InitCommandConfig, LintStagedToolingConfig, MirrorCommandConfig, MonorepoCommitlintConfig, MonorepoConfig, MonorepoEslintConfig, MonorepoLintStagedConfig, MonorepoLintStagedConfigOptions, MonorepoStylelintConfig, MonorepoTsconfig, MonorepoVitestConfigOptions, MonorepoVitestConfigOverrides, MonorepoVitestConfigResult, MonorepoVitestProjectConfigOptions, MonorepoVitestProjectConfigResult, type PreCommitVerifyOptions, type PrePushVerifyOptions, type RecommendedCheckMode, type RecommendedCheckOptions, type RecommendedCheckPlan, type RecommendedCheckPlanCommand, ReleaseAfterPublishHookConfig, ReleaseCommandConfig, type RepoctlLocale, type SimpleGit, type SimpleGitOptions, type SkillTarget, type StagedTypecheckOptions, StylelintToolingConfig, type SyncSkillsOptions, type TemplateHealthCheck, type TemplateHealthReport, type TemplateHealthStatus, type TemplateHealthSummary, ToolingConfig, TsconfigToolingConfig, UpgradeCommandConfig, type VerifyCommandOptions, VitestProjectToolingConfig, VitestToolingConfig, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoLintStagedConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, createNewProject, createReleasePullRequest, createTimestampFolderName, defaultAgenticBaseDir, defineCommitlintConfig, defineEslintConfig, defineLintStagedConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, generateAgenticTemplate, generateAgenticTemplates, getCreateChoices, getTemplateMap, init, initMetadata, initTooling, initToolingTargets, isGitignoreFile, loadAgenticTasks, loadMonorepoToolingConfig, normalizeInitToolingTargets, name as packageName, recoverUnpublished, resolveCreateNewProjectPlan, templateMap, toPublishGitignorePath, toWorkspaceAssetPath, toWorkspaceGitignorePath };
|
|
941
|
+
export { type AgenticTemplateFormat, type AgenticTemplateTask, AiCommandConfig, type CheckTemplatesOptions, CleanCommandConfig, CliOpts, type CommitMsgVerifyOptions, CommitlintToolingConfig, type ConfigInspection, type ConfigValues, CreateChoiceOption, CreateCommandConfig, type CreateNewProjectOptions, type CreateNewProjectPlan, DefineConfigOptions, DefineEslintConfigOptions, DefineVitestConfigOptions, DefineVitestProjectConfigOptions, type DoctorCheck, type DoctorReport, type DoctorStatus, type DoctorSummary, type EnsurePullRequestOptions, type EnsureReleaseOptions, type EnsureTagOptions, type EnvInfo, type EnvPathEntry, type EnvPaths, type EnvSnapshot, type EnvSupportBundle, EslintToolingConfig, type GenerateAgenticTemplateOptions, type GitHubClientOptions, type GitHubOperations, type GitHubRelease, HuskyToolingConfig, InitCommandConfig, LintStagedToolingConfig, MirrorCommandConfig, MonorepoCommitlintConfig, MonorepoConfig, MonorepoEslintConfig, MonorepoLintStagedConfig, MonorepoLintStagedConfigOptions, MonorepoStylelintConfig, MonorepoTsconfig, MonorepoVitestConfigOptions, MonorepoVitestConfigOverrides, MonorepoVitestConfigResult, MonorepoVitestProjectConfigOptions, MonorepoVitestProjectConfigResult, type PreCommitVerifyOptions, type PrePushVerifyOptions, type RecommendedCheckMode, type RecommendedCheckOptions, type RecommendedCheckPlan, type RecommendedCheckPlanCommand, type ReleaseAfterPublishHookConfig, type ReleaseCiOptions, type ReleaseCommandConfig, type ReleaseLifecycleState, type ReleaseStateSnapshot, type ReleaseTarget, type RepoctlLocale, type SimpleGit, type SimpleGitOptions, type SkillTarget, type StagedTypecheckOptions, StylelintToolingConfig, type SyncSkillsOptions, type TemplateHealthCheck, type TemplateHealthReport, type TemplateHealthStatus, type TemplateHealthSummary, ToolingConfig, TsconfigToolingConfig, UpgradeCommandConfig, type VerifyCommandOptions, VitestProjectToolingConfig, VitestToolingConfig, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoLintStagedConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, createNewProject, createReleasePullRequest, createTimestampFolderName, defaultAgenticBaseDir, defineCommitlintConfig, defineEslintConfig, defineLintStagedConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, generateAgenticTemplate, generateAgenticTemplates, getCreateChoices, getTemplateMap, init, initMetadata, initTooling, initToolingTargets, isGitignoreFile, loadAgenticTasks, loadMonorepoToolingConfig, normalizeInitToolingTargets, name as packageName, recoverUnpublished, resolveCreateNewProjectPlan, templateMap, toPublishGitignorePath, toWorkspaceAssetPath, toWorkspaceGitignorePath };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as runRecommendedCheck, B as escapeStringRegexp, C as createContext, D as collectEnvSupportBundle, E as collectEnvSnapshot, F as inspectMonorepoConfig, G as isGitignoreFile, H as setByPath, I as cleanProjects, J as toWorkspaceGitignorePath, K as toPublishGitignorePath, L as getSkillTargetPaths, M as getTemplateMap, N as resolveCreateNewProjectPlan, O as runDoctor, P as templateMap, Q as resolveRecommendedCheckPlan, R as skillTargets, S as normalizeInitToolingTargets, T as collectEnvPaths, U as getFileHash, V as isMatch, W as isFileChanged, X as getKnownRepoCheckCommands, Y as updateIssueTemplateConfig, Z as resolveFullWorkspaceCheckPlan, _ as parsePublishSummary, a as createReleasePullRequest, at as defaultAgenticBaseDir, b as initMetadata, c as prepareStable, ct as loadAgenticTasks, d as reconcileRelease, et as verifyCommitMsg, f as enterPrerelease, g as
|
|
1
|
+
import { $ as runRecommendedCheck, B as escapeStringRegexp, C as createContext, D as collectEnvSupportBundle, E as collectEnvSnapshot, F as inspectMonorepoConfig, G as isGitignoreFile, H as setByPath, I as cleanProjects, J as toWorkspaceGitignorePath, K as toPublishGitignorePath, L as getSkillTargetPaths, M as getTemplateMap, N as resolveCreateNewProjectPlan, O as runDoctor, P as templateMap, Q as resolveRecommendedCheckPlan, R as skillTargets, S as normalizeInitToolingTargets, T as collectEnvPaths, U as getFileHash, V as isMatch, W as isFileChanged, X as getKnownRepoCheckCommands, Y as updateIssueTemplateConfig, Z as resolveFullWorkspaceCheckPlan, _ as parsePublishSummary, a as createReleasePullRequest, at as defaultAgenticBaseDir, b as initMetadata, c as prepareStable, ct as loadAgenticTasks, d as reconcileRelease, et as verifyCommitMsg, f as enterPrerelease, g as GitHubApiError, h as GitHubClient, i as repairReleaseNotes, it as createTimestampFolderName, j as getCreateChoices, k as createNewProject, l as publishStable, lt as GitClient, m as releasePrerelease, n as upgradeMonorepo, nt as verifyPrePush, o as recoverUnpublished, ot as generateAgenticTemplate, p as exitPrerelease, q as toWorkspaceAssetPath, r as checkTemplates, rt as verifyStagedTypecheck, s as releaseCi, st as generateAgenticTemplates, tt as verifyPreCommit, u as releaseStable, v as setVscodeBinaryMirror, w as collectEnvInfo, x as initTooling, y as init, z as syncSkills } from "./commands-BCix_gOD.mjs";
|
|
2
2
|
import { i as getWorkspacePackages, n as getWorkspaceData, r as getWorkspacePackageSummaries, t as clearWorkspaceCache } from "./workspace-MCKewElu.mjs";
|
|
3
|
-
import { C as outputJson, D as remove, E as readJson, O as writeJSON, S as outputJSON, T as readJSON, _ as ensureFile, a as rootDir, b as isIgnorableFsError, g as ensureDir, h as copy, i as packageDir, k as writeJson, l as version, m as logger, n as assetsDir, o as templatesDir, r as cliName, s as name, t as initToolingTargets, v as exists, w as pathExists, x as outputFile } from "./types-
|
|
3
|
+
import { C as outputJson, D as remove, E as readJson, O as writeJSON, S as outputJSON, T as readJSON, _ as ensureFile, a as rootDir, b as isIgnorableFsError, g as ensureDir, h as copy, i as packageDir, k as writeJson, l as version, m as logger, n as assetsDir, o as templatesDir, r as cliName, s as name, t as initToolingTargets, v as exists, w as pathExists, x as outputFile } from "./types-W9fwiyx8.mjs";
|
|
4
4
|
import { a as loadMonorepoConfig, c as resolveToolingConfig, i as getRepoctlConfigCandidates, o as loadMonorepoConfigDetails, r as defineMonorepoConfig, s as resolveCommandConfig, t as configExtensions } from "./config-p842Knhq.mjs";
|
|
5
5
|
import { a as createMonorepoTsconfig, c as defineCommitlintConfig, d as defineStylelintConfig, f as defineTsconfigConfig, h as loadMonorepoToolingConfig, i as createMonorepoStylelintConfig, l as defineEslintConfig, m as defineVitestProjectConfig, n as createMonorepoEslintConfig, o as createMonorepoVitestConfig, p as defineVitestConfig, r as createMonorepoLintStagedConfig, s as createMonorepoVitestProjectConfig, t as createMonorepoCommitlintConfig, u as defineLintStagedConfig } from "./tooling-BfXlmCi-.mjs";
|
|
6
6
|
export { GitClient, GitHubApiError, GitHubClient, assetsDir, checkTemplates, cleanProjects, clearWorkspaceCache, cliName, collectEnvInfo, collectEnvPaths, collectEnvSnapshot, collectEnvSupportBundle, configExtensions, copy, createContext, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoLintStagedConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, createNewProject, createReleasePullRequest, createTimestampFolderName, defaultAgenticBaseDir, defineCommitlintConfig, defineEslintConfig, defineLintStagedConfig, defineMonorepoConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, ensureDir, ensureFile, enterPrerelease, escapeStringRegexp, exists, exitPrerelease, generateAgenticTemplate, generateAgenticTemplates, getCreateChoices, getFileHash, getKnownRepoCheckCommands, getRepoctlConfigCandidates, getSkillTargetPaths, getTemplateMap, getWorkspaceData, getWorkspacePackageSummaries, getWorkspacePackages, init, initMetadata, initTooling, initToolingTargets, inspectMonorepoConfig, isFileChanged, isGitignoreFile, isIgnorableFsError, isMatch, loadAgenticTasks, loadMonorepoConfig, loadMonorepoConfigDetails, loadMonorepoToolingConfig, logger, normalizeInitToolingTargets, outputFile, outputJSON, outputJson, packageDir, name as packageName, parsePublishSummary, pathExists, prepareStable, publishStable, readJSON, readJson, reconcileRelease, recoverUnpublished, releaseCi, releasePrerelease, releaseStable, remove, repairReleaseNotes, resolveCommandConfig, resolveCreateNewProjectPlan, resolveFullWorkspaceCheckPlan, resolveRecommendedCheckPlan, resolveToolingConfig, rootDir, runDoctor, runRecommendedCheck, setByPath, setVscodeBinaryMirror, skillTargets, syncSkills, templateMap, templatesDir, toPublishGitignorePath, toWorkspaceAssetPath, toWorkspaceGitignorePath, updateIssueTemplateConfig, upgradeMonorepo, verifyCommitMsg, verifyPreCommit, verifyPrePush, verifyStagedTypecheck, version, writeJSON, writeJson };
|
package/dist/tooling-entry.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as loadMonorepoToolingConfig, C as defineCommitlintConfig, D as defineTsconfigConfig, E as defineStylelintConfig, O as defineVitestConfig, S as createMonorepoVitestProjectConfig, T as defineLintStagedConfig, _ as createMonorepoEslintConfig, a as MonorepoCommitlintConfig, b as createMonorepoTsconfig, c as MonorepoLintStagedConfigOptions, d as MonorepoVitestConfigOptions, f as MonorepoVitestConfigOverrides, g as createMonorepoCommitlintConfig, h as MonorepoVitestProjectConfigResult, i as DefineVitestProjectConfigOptions, k as defineVitestProjectConfig, l as MonorepoStylelintConfig, m as MonorepoVitestProjectConfigOptions, n as DefineEslintConfigOptions, o as MonorepoEslintConfig, p as MonorepoVitestConfigResult, r as DefineVitestConfigOptions, s as MonorepoLintStagedConfig, t as DefineConfigOptions, u as MonorepoTsconfig, v as createMonorepoLintStagedConfig, w as defineEslintConfig, x as createMonorepoVitestConfig, y as createMonorepoStylelintConfig } from "./index-
|
|
1
|
+
import { A as loadMonorepoToolingConfig, C as defineCommitlintConfig, D as defineTsconfigConfig, E as defineStylelintConfig, O as defineVitestConfig, S as createMonorepoVitestProjectConfig, T as defineLintStagedConfig, _ as createMonorepoEslintConfig, a as MonorepoCommitlintConfig, b as createMonorepoTsconfig, c as MonorepoLintStagedConfigOptions, d as MonorepoVitestConfigOptions, f as MonorepoVitestConfigOverrides, g as createMonorepoCommitlintConfig, h as MonorepoVitestProjectConfigResult, i as DefineVitestProjectConfigOptions, k as defineVitestProjectConfig, l as MonorepoStylelintConfig, m as MonorepoVitestProjectConfigOptions, n as DefineEslintConfigOptions, o as MonorepoEslintConfig, p as MonorepoVitestConfigResult, r as DefineVitestConfigOptions, s as MonorepoLintStagedConfig, t as DefineConfigOptions, u as MonorepoTsconfig, v as createMonorepoLintStagedConfig, w as defineEslintConfig, x as createMonorepoVitestConfig, y as createMonorepoStylelintConfig } from "./index-DDQKKYet.mjs";
|
|
2
2
|
export { DefineConfigOptions, DefineEslintConfigOptions, DefineVitestConfigOptions, DefineVitestProjectConfigOptions, MonorepoCommitlintConfig, MonorepoEslintConfig, MonorepoLintStagedConfig, MonorepoLintStagedConfigOptions, MonorepoStylelintConfig, MonorepoTsconfig, MonorepoVitestConfigOptions, MonorepoVitestConfigOverrides, MonorepoVitestConfigResult, MonorepoVitestProjectConfigOptions, MonorepoVitestProjectConfigResult, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoLintStagedConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, defineCommitlintConfig, defineEslintConfig, defineLintStagedConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, loadMonorepoToolingConfig };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icebreakers/monorepo",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.5.
|
|
4
|
+
"version": "5.5.9",
|
|
5
5
|
"description": "Core engine and programmatic APIs for repoctl",
|
|
6
6
|
"author": "ice breaker <hi@sonofmagic.top>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
79
|
"@icebreakers/commitlint-config": "4.1.1",
|
|
80
|
-
"@icebreakers/eslint-config": "8.0.
|
|
81
|
-
"@icebreakers/monorepo-templates": "2.0.
|
|
80
|
+
"@icebreakers/eslint-config": "8.0.5",
|
|
81
|
+
"@icebreakers/monorepo-templates": "2.0.6",
|
|
82
82
|
"@icebreakers/stylelint-config": "5.1.3",
|
|
83
83
|
"@pnpm/find-workspace-dir": "^1000.1.5",
|
|
84
84
|
"@pnpm/logger": "^1100.0.0",
|