@icebreakers/monorepo 5.0.3 → 5.1.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.
@@ -1,5 +1,5 @@
1
- import { C as resolveCreateNewProjectPlan, b as defaultTemplate, x as getCreateChoices, y as createNewProject } from "./commands-KNarzvFs.mjs";
2
- import { d as logger, g as fs } from "./types-DYEKpMcN.mjs";
1
+ import { D as createNewProject, O as defaultTemplate, j as resolveCreateNewProjectPlan, k as getCreateChoices } from "./commands-BD9u8I6D.mjs";
2
+ import { d as logger, g as fs } from "./types-S6igCe0w.mjs";
3
3
  import { s as resolveCommandConfig } from "./config-p842Knhq.mjs";
4
4
  import path from "pathe";
5
5
  import process from "node:process";
@@ -50,6 +50,11 @@ interface CliOpts {
50
50
  * @default false
51
51
  */
52
52
  noOverwrite?: boolean;
53
+ /**
54
+ * 是否允许覆盖未标记的自定义 release workflow。
55
+ * @default false
56
+ */
57
+ overwriteRelease?: boolean;
53
58
  }
54
59
  //#endregion
55
60
  //#region src/commands/ai.d.ts
@@ -338,7 +343,7 @@ interface UpgradeCommandConfig extends Partial<CliOpts> {
338
343
  */
339
344
  scripts?: Record<string, string>;
340
345
  /**
341
- * 是否跳过生成 changeset markdown。
346
+ * 是否跳过生成 pnpm change intent markdown。
342
347
  * @default true
343
348
  */
344
349
  skipChangesetMarkdown?: boolean;
@@ -358,7 +363,7 @@ interface InitCommandConfig {
358
363
  */
359
364
  skipPkgJson?: boolean;
360
365
  /**
361
- * 是否跳过 changeset 的更新。
366
+ * 是否跳过 pnpm versioning 元数据的更新。
362
367
  * @default false
363
368
  */
364
369
  skipChangeset?: boolean;
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as initTooling, 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 initMetadata, 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 init, _ as createMonorepoEslintConfig, _t as CliOpts, a as MonorepoCommitlintConfig, at as getCreateChoices, b as createMonorepoTsconfig, c as MonorepoLintStagedConfigOptions, ct as templateMap, d as MonorepoVitestConfigOptions, dt as GenerateAgenticTemplateOptions, et as normalizeInitToolingTargets, f as MonorepoVitestConfigOverrides, ft as createTimestampFolderName, g as createMonorepoCommitlintConfig, gt as loadAgenticTasks, h as MonorepoVitestProjectConfigResult, ht as generateAgenticTemplates, i as DefineVitestProjectConfigOptions, it as CreateNewProjectPlan, j as ConfigValues, k as defineVitestProjectConfig, l as MonorepoStylelintConfig, lt as AgenticTemplateFormat, m as MonorepoVitestProjectConfigOptions, mt as generateAgenticTemplate, n as DefineEslintConfigOptions, nt as createNewProject, o as MonorepoEslintConfig, ot as getTemplateMap, p as MonorepoVitestConfigResult, pt as defaultAgenticBaseDir, q as TsconfigToolingConfig, r as DefineVitestConfigOptions, rt as CreateNewProjectOptions, s as MonorepoLintStagedConfig, st as resolveCreateNewProjectPlan, t as DefineConfigOptions, tt as initToolingTargets, u as MonorepoTsconfig, ut as AgenticTemplateTask, v as createMonorepoLintStagedConfig, w as defineEslintConfig, x as createMonorepoVitestConfig, y as createMonorepoStylelintConfig, z as EslintToolingConfig } from "./index-Ltm2Ry5E.mjs";
1
+ import { $ as initTooling, 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 initMetadata, 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 init, _ as createMonorepoEslintConfig, _t as CliOpts, a as MonorepoCommitlintConfig, at as getCreateChoices, b as createMonorepoTsconfig, c as MonorepoLintStagedConfigOptions, ct as templateMap, d as MonorepoVitestConfigOptions, dt as GenerateAgenticTemplateOptions, et as normalizeInitToolingTargets, f as MonorepoVitestConfigOverrides, ft as createTimestampFolderName, g as createMonorepoCommitlintConfig, gt as loadAgenticTasks, h as MonorepoVitestProjectConfigResult, ht as generateAgenticTemplates, i as DefineVitestProjectConfigOptions, it as CreateNewProjectPlan, j as ConfigValues, k as defineVitestProjectConfig, l as MonorepoStylelintConfig, lt as AgenticTemplateFormat, m as MonorepoVitestProjectConfigOptions, mt as generateAgenticTemplate, n as DefineEslintConfigOptions, nt as createNewProject, o as MonorepoEslintConfig, ot as getTemplateMap, p as MonorepoVitestConfigResult, pt as defaultAgenticBaseDir, q as TsconfigToolingConfig, r as DefineVitestConfigOptions, rt as CreateNewProjectOptions, s as MonorepoLintStagedConfig, st as resolveCreateNewProjectPlan, t as DefineConfigOptions, tt as initToolingTargets, u as MonorepoTsconfig, ut as AgenticTemplateTask, v as createMonorepoLintStagedConfig, w as defineEslintConfig, x as createMonorepoVitestConfig, y as createMonorepoStylelintConfig, z as EslintToolingConfig } from "./index-cBqxgIwY.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";
@@ -231,6 +231,156 @@ declare function collectEnvPaths(cwd: string): Promise<EnvPaths>;
231
231
  declare function collectEnvSnapshot(cwd: string, now?: Date): Promise<EnvSnapshot>;
232
232
  declare function collectEnvSupportBundle(cwd: string, now?: Date): Promise<EnvSupportBundle>;
233
233
  //#endregion
234
+ //#region src/commands/release/notes/model.d.ts
235
+ type ReleaseCategory = 'breaking' | 'features' | 'fixes' | 'performance' | 'docs' | 'maintenance' | 'other';
236
+ interface ReleaseCommit {
237
+ sha: string;
238
+ subject: string;
239
+ body?: string;
240
+ author?: string;
241
+ packages?: string[];
242
+ summary?: string;
243
+ summaries?: string[];
244
+ }
245
+ interface ReleaseNoteEntry {
246
+ packageName: string;
247
+ version: string;
248
+ npmUrl?: string;
249
+ category: ReleaseCategory;
250
+ summary: string;
251
+ commits: ReleaseCommit[];
252
+ pullRequests: number[];
253
+ issues: number[];
254
+ authors: string[];
255
+ }
256
+ interface ReleaseNotePackage {
257
+ name: string;
258
+ version: string;
259
+ previousVersion?: string;
260
+ npmUrl?: string;
261
+ previousNpmUrl?: string;
262
+ }
263
+ interface ReleaseNoteDocument {
264
+ packages: ReleaseNotePackage[];
265
+ entries: ReleaseNoteEntry[];
266
+ contributors: string[];
267
+ compareUrls: string[];
268
+ }
269
+ //#endregion
270
+ //#region src/commands/release/errors.d.ts
271
+ declare class ReleaseCommandError extends Error {
272
+ readonly exitCode: number;
273
+ constructor(message: string, exitCode?: number);
274
+ }
275
+ //#endregion
276
+ //#region src/commands/release/github.d.ts
277
+ interface GitHubPullRequest {
278
+ number: number;
279
+ html_url: string;
280
+ state: string;
281
+ title?: string;
282
+ body?: string | null;
283
+ head?: {
284
+ ref?: string;
285
+ };
286
+ }
287
+ interface GitHubRelease {
288
+ id: number;
289
+ html_url: string;
290
+ tag_name: string;
291
+ }
292
+ interface GitHubClientOptions {
293
+ token?: string;
294
+ repository?: string;
295
+ apiUrl?: string;
296
+ fetch?: typeof fetch;
297
+ }
298
+ interface EnsurePullRequestOptions {
299
+ head: string;
300
+ base: string;
301
+ title: string;
302
+ body: string;
303
+ }
304
+ interface CloseLegacyPullRequestsOptions {
305
+ head: string;
306
+ base: string;
307
+ }
308
+ interface EnsureReleaseOptions {
309
+ tag: string;
310
+ target: string;
311
+ prerelease?: boolean;
312
+ name?: string;
313
+ body?: string;
314
+ }
315
+ interface EnsureTagOptions {
316
+ tag: string;
317
+ target: string;
318
+ }
319
+ interface GitHubOperations {
320
+ ensurePullRequest: (options: EnsurePullRequestOptions) => Promise<GitHubPullRequest>;
321
+ closeLegacyReleasePullRequests?: (options: CloseLegacyPullRequestsOptions) => Promise<void>;
322
+ ensureRelease: (options: EnsureReleaseOptions) => Promise<GitHubRelease>;
323
+ ensureTag?: (options: EnsureTagOptions) => Promise<void>;
324
+ enrichReleaseNote?: (document: ReleaseNoteDocument) => Promise<ReleaseNoteDocument>;
325
+ }
326
+ declare class GitHubApiError extends ReleaseCommandError {
327
+ readonly status: number;
328
+ readonly responseBody?: string | undefined;
329
+ constructor(message: string, status: number, responseBody?: string | undefined);
330
+ }
331
+ declare class GitHubClient implements GitHubOperations {
332
+ private readonly token;
333
+ private readonly repository;
334
+ private readonly apiUrl;
335
+ private readonly requestFetch;
336
+ constructor(options?: GitHubClientOptions);
337
+ private getRepository;
338
+ private request;
339
+ ensurePullRequest(options: EnsurePullRequestOptions): Promise<GitHubPullRequest>;
340
+ closeLegacyReleasePullRequests(options: CloseLegacyPullRequestsOptions): Promise<void>;
341
+ ensureRelease(options: EnsureReleaseOptions): Promise<GitHubRelease>;
342
+ enrichReleaseNote(document: ReleaseNoteDocument): Promise<ReleaseNoteDocument>;
343
+ ensureTag(options: EnsureTagOptions): Promise<void>;
344
+ }
345
+ //#endregion
346
+ //#region src/commands/release/types.d.ts
347
+ type ReleaseMode = 'auto' | 'prepare' | 'publish' | 'publish-unpublished';
348
+ interface ReleaseOptions {
349
+ cwd: string;
350
+ branch?: string;
351
+ spawn?: typeof spawnSync;
352
+ env?: NodeJS.ProcessEnv;
353
+ }
354
+ interface ReleaseCiOptions extends ReleaseOptions {
355
+ mode?: ReleaseMode;
356
+ packageName?: string;
357
+ packageVersion?: string;
358
+ github?: GitHubOperations;
359
+ }
360
+ interface PublishedPackage {
361
+ name: string;
362
+ version: string;
363
+ }
364
+ //#endregion
365
+ //#region src/commands/release/ci.d.ts
366
+ declare function createReleasePullRequest(options: ReleaseCiOptions): Promise<boolean>;
367
+ declare function recoverUnpublished(options: ReleaseCiOptions): Promise<void>;
368
+ declare function releaseCi(options: ReleaseCiOptions): Promise<void>;
369
+ //#endregion
370
+ //#region src/commands/release/prerelease.d.ts
371
+ declare function releasePrerelease(options: ReleaseOptions): Promise<void>;
372
+ declare function enterPrerelease(tag: string, options: ReleaseOptions): Promise<void>;
373
+ declare function exitPrerelease(options: ReleaseOptions): Promise<void>;
374
+ //#endregion
375
+ //#region src/commands/release/shared.d.ts
376
+ declare function parsePublishSummary(content: string): PublishedPackage[];
377
+ //#endregion
378
+ //#region src/commands/release/stable.d.ts
379
+ declare function prepareStable(options: ReleaseOptions): Promise<boolean>;
380
+ declare function publishStable(options: ReleaseOptions): Promise<void>;
381
+ /** Compatibility entry point retained for existing generated repositories. */
382
+ declare function releaseStable(options: ReleaseOptions): Promise<void>;
383
+ //#endregion
234
384
  //#region src/commands/skills.d.ts
235
385
  /**
236
386
  * 当前支持的 skills 同步目标。
@@ -475,17 +625,6 @@ declare function cleanProjects(cwd: string, overrides?: Partial<CleanCommandConf
475
625
  */
476
626
  declare function setVscodeBinaryMirror(cwd: string): Promise<void>;
477
627
  //#endregion
478
- //#region src/commands/release.d.ts
479
- interface ReleaseOptions {
480
- cwd: string;
481
- branch?: string;
482
- spawn?: typeof spawnSync;
483
- }
484
- declare function releaseStable(options: ReleaseOptions): Promise<void>;
485
- declare function releasePrerelease(options: ReleaseOptions): Promise<void>;
486
- declare function enterPrerelease(tag: string, options: ReleaseOptions): void;
487
- declare function exitPrerelease(options: ReleaseOptions): void;
488
- //#endregion
489
628
  //#region src/commands/upgrade/index.d.ts
490
629
  /**
491
630
  * 将 assets 目录的模版文件同步到工程中,实现一键升级脚手架能力。
@@ -702,4 +841,4 @@ declare function escapeStringRegexp(str: string): string;
702
841
  */
703
842
  declare function isMatch(str: string, arr: RegExp[]): boolean;
704
843
  //#endregion
705
- export { type AgenticTemplateFormat, type AgenticTemplateTask, AiCommandConfig, type CheckTemplatesOptions, CleanCommandConfig, CliOpts, type CommitMsgVerifyOptions, CommitlintToolingConfig, type ConfigInspection, type ConfigValues, Context, CreateChoiceOption, CreateCommandConfig, type CreateNewProjectOptions, type CreateNewProjectPlan, DefineConfigOptions, DefineEslintConfigOptions, DefineVitestConfigOptions, DefineVitestProjectConfigOptions, type DoctorCheck, type DoctorReport, type DoctorStatus, type DoctorSummary, type EnvInfo, type EnvPathEntry, type EnvPaths, type EnvSnapshot, type EnvSupportBundle, EslintToolingConfig, type GenerateAgenticTemplateOptions, GetWorkspacePackagesOptions, GitClient, HuskyToolingConfig, InitCommandConfig, JsonWriteOptions, LintStagedToolingConfig, LoadedMonorepoConfig, MirrorCommandConfig, MonorepoCommitlintConfig, MonorepoConfig, MonorepoEslintConfig, MonorepoLintStagedConfig, MonorepoLintStagedConfigOptions, MonorepoStylelintConfig, MonorepoTsconfig, MonorepoVitestConfigOptions, MonorepoVitestConfigOverrides, MonorepoVitestConfigResult, MonorepoVitestProjectConfigOptions, MonorepoVitestProjectConfigResult, PackageJson, PackageJsonBugs, PackageJsonExports, PackageJsonPerson, PackageJsonRepository, type PreCommitVerifyOptions, type PrePushVerifyOptions, type RecommendedCheckMode, type RecommendedCheckOptions, type RecommendedCheckPlan, type RecommendedCheckPlanCommand, 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, WorkspaceData, WorkspacePackage, WorkspacePackageManifest, WorkspacePackageSummary, WorkspacePackageSummaryData, WorkspacePackageWithJsonPath, assetsDir, checkTemplates, cleanProjects, clearWorkspaceCache, cliName, collectEnvInfo, collectEnvPaths, collectEnvSnapshot, collectEnvSupportBundle, configExtensions, copy, createContext, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoLintStagedConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, createNewProject, 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, pathExists, readJSON, readJson, releasePrerelease, releaseStable, remove, resolveCommandConfig, resolveCreateNewProjectPlan, resolveFullWorkspaceCheckPlan, resolveRecommendedCheckPlan, resolveToolingConfig, rootDir, runDoctor, runRecommendedCheck, setByPath, setVscodeBinaryMirror, skillTargets, syncSkills, templateMap, templatesDir, toPublishGitignorePath, toWorkspaceGitignorePath, updateIssueTemplateConfig, upgradeMonorepo, verifyCommitMsg, verifyPreCommit, verifyPrePush, verifyStagedTypecheck, version, writeJSON, writeJson };
844
+ export { type AgenticTemplateFormat, type AgenticTemplateTask, AiCommandConfig, type CheckTemplatesOptions, CleanCommandConfig, CliOpts, type CommitMsgVerifyOptions, CommitlintToolingConfig, type ConfigInspection, type ConfigValues, Context, 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, GetWorkspacePackagesOptions, GitClient, GitHubApiError, GitHubClient, type GitHubClientOptions, type GitHubOperations, HuskyToolingConfig, InitCommandConfig, JsonWriteOptions, LintStagedToolingConfig, LoadedMonorepoConfig, MirrorCommandConfig, MonorepoCommitlintConfig, MonorepoConfig, MonorepoEslintConfig, MonorepoLintStagedConfig, MonorepoLintStagedConfigOptions, MonorepoStylelintConfig, MonorepoTsconfig, MonorepoVitestConfigOptions, MonorepoVitestConfigOverrides, MonorepoVitestConfigResult, MonorepoVitestProjectConfigOptions, MonorepoVitestProjectConfigResult, PackageJson, PackageJsonBugs, PackageJsonExports, PackageJsonPerson, PackageJsonRepository, type PreCommitVerifyOptions, type PrePushVerifyOptions, type RecommendedCheckMode, type RecommendedCheckOptions, type RecommendedCheckPlan, type RecommendedCheckPlanCommand, 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, WorkspaceData, WorkspacePackage, WorkspacePackageManifest, WorkspacePackageSummary, WorkspacePackageSummaryData, WorkspacePackageWithJsonPath, 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, recoverUnpublished, releaseCi, releasePrerelease, releaseStable, remove, resolveCommandConfig, resolveCreateNewProjectPlan, resolveFullWorkspaceCheckPlan, resolveRecommendedCheckPlan, resolveToolingConfig, rootDir, runDoctor, runRecommendedCheck, setByPath, setVscodeBinaryMirror, skillTargets, syncSkills, templateMap, templatesDir, toPublishGitignorePath, toWorkspaceGitignorePath, updateIssueTemplateConfig, upgradeMonorepo, verifyCommitMsg, verifyPreCommit, verifyPrePush, verifyStagedTypecheck, version, writeJSON, writeJson };
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { A as escapeStringRegexp, B as resolveFullWorkspaceCheckPlan, C as resolveCreateNewProjectPlan, D as getSkillTargetPaths, E as cleanProjects, F as isGitignoreFile, G as verifyPrePush, H as runRecommendedCheck, I as toPublishGitignorePath, J as defaultAgenticBaseDir, K as verifyStagedTypecheck, L as toWorkspaceGitignorePath, M as setByPath, N as getFileHash, O as skillTargets, P as isFileChanged, Q as GitClient, R as updateIssueTemplateConfig, S as getTemplateMap, T as inspectMonorepoConfig, U as verifyCommitMsg, V as resolveRecommendedCheckPlan, W as verifyPreCommit, X as generateAgenticTemplates, Y as generateAgenticTemplate, Z as loadAgenticTasks, _ as collectEnvSupportBundle, a as exitPrerelease, c as setVscodeBinaryMirror, d as initTooling, f as normalizeInitToolingTargets, g as collectEnvSnapshot, h as collectEnvPaths, i as enterPrerelease, j as isMatch, k as syncSkills, l as init, m as collectEnvInfo, n as upgradeMonorepo, o as releasePrerelease, p as createContext, q as createTimestampFolderName, r as checkTemplates, s as releaseStable, u as initMetadata, v as runDoctor, w as templateMap, x as getCreateChoices, y as createNewProject, z as getKnownRepoCheckCommands } from "./commands-KNarzvFs.mjs";
1
+ import { $ as verifyPrePush, A as getTemplateMap, B as setByPath, C as collectEnvPaths, D as createNewProject, E as runDoctor, F as getSkillTargetPaths, G as toWorkspaceGitignorePath, H as isFileChanged, I as skillTargets, J as resolveFullWorkspaceCheckPlan, K as updateIssueTemplateConfig, L as syncSkills, M as templateMap, N as inspectMonorepoConfig, P as cleanProjects, Q as verifyPreCommit, R as escapeStringRegexp, S as collectEnvInfo, T as collectEnvSupportBundle, U as isGitignoreFile, V as getFileHash, W as toPublishGitignorePath, X as runRecommendedCheck, Y as resolveRecommendedCheckPlan, Z as verifyCommitMsg, _ as init, a as recoverUnpublished, at as loadAgenticTasks, b as normalizeInitToolingTargets, c as publishStable, d as exitPrerelease, et as verifyStagedTypecheck, f as releasePrerelease, g as setVscodeBinaryMirror, h as parsePublishSummary, i as createReleasePullRequest, it as generateAgenticTemplates, j as resolveCreateNewProjectPlan, k as getCreateChoices, l as releaseStable, m as GitHubClient, n as upgradeMonorepo, nt as defaultAgenticBaseDir, o as releaseCi, ot as GitClient, p as GitHubApiError, q as getKnownRepoCheckCommands, r as checkTemplates, rt as generateAgenticTemplate, s as prepareStable, tt as createTimestampFolderName, u as enterPrerelease, v as initMetadata, w as collectEnvSnapshot, x as createContext, y as initTooling, z as isMatch } from "./commands-BD9u8I6D.mjs";
2
2
  import { i as getWorkspacePackages, n as getWorkspaceData, r as getWorkspacePackageSummaries, t as clearWorkspaceCache } from "./workspace-MCKewElu.mjs";
3
- import { C as readJson, E as writeJson, S as readJSON, T as writeJSON, _ as isIgnorableFsError, a as rootDir, b as outputJson, d as logger, f as copy, h as exists, i as packageDir, l as name, m as ensureFile, n as assetsDir, o as templatesDir, p as ensureDir, r as cliName, t as initToolingTargets, u as version, v as outputFile, w as remove, x as pathExists, y as outputJSON } from "./types-DYEKpMcN.mjs";
3
+ import { C as readJson, E as writeJson, S as readJSON, T as writeJSON, _ as isIgnorableFsError, a as rootDir, b as outputJson, d as logger, f as copy, h as exists, i as packageDir, l as name, m as ensureFile, n as assetsDir, o as templatesDir, p as ensureDir, r as cliName, t as initToolingTargets, u as version, v as outputFile, w as remove, x as pathExists, y as outputJSON } from "./types-S6igCe0w.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-Bn3XOfO0.mjs";
6
- export { GitClient, assetsDir, checkTemplates, cleanProjects, clearWorkspaceCache, cliName, collectEnvInfo, collectEnvPaths, collectEnvSnapshot, collectEnvSupportBundle, configExtensions, copy, createContext, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoLintStagedConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, createNewProject, 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, pathExists, readJSON, readJson, releasePrerelease, releaseStable, remove, resolveCommandConfig, resolveCreateNewProjectPlan, resolveFullWorkspaceCheckPlan, resolveRecommendedCheckPlan, resolveToolingConfig, rootDir, runDoctor, runRecommendedCheck, setByPath, setVscodeBinaryMirror, skillTargets, syncSkills, templateMap, templatesDir, toPublishGitignorePath, toWorkspaceGitignorePath, updateIssueTemplateConfig, upgradeMonorepo, verifyCommitMsg, verifyPreCommit, verifyPrePush, verifyStagedTypecheck, version, writeJSON, writeJson };
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, recoverUnpublished, releaseCi, releasePrerelease, releaseStable, remove, resolveCommandConfig, resolveCreateNewProjectPlan, resolveFullWorkspaceCheckPlan, resolveRecommendedCheckPlan, resolveToolingConfig, rootDir, runDoctor, runRecommendedCheck, setByPath, setVscodeBinaryMirror, skillTargets, syncSkills, templateMap, templatesDir, toPublishGitignorePath, toWorkspaceGitignorePath, updateIssueTemplateConfig, upgradeMonorepo, verifyCommitMsg, verifyPreCommit, verifyPrePush, verifyStagedTypecheck, version, writeJSON, writeJson };
@@ -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-Ltm2Ry5E.mjs";
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-cBqxgIwY.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 };
@@ -142,12 +142,12 @@ const logger = createConsola();
142
142
  //#endregion
143
143
  //#region package.json
144
144
  var name = "@icebreakers/monorepo";
145
- var version = "5.0.3";
145
+ var version = "5.1.0";
146
146
  var dependencies = {
147
- "@icebreakers/commitlint-config": "^4.0.2",
148
- "@icebreakers/eslint-config": "^7.0.2",
147
+ "@icebreakers/commitlint-config": "^4.0.3",
148
+ "@icebreakers/eslint-config": "^7.0.3",
149
149
  "@icebreakers/monorepo-templates": "workspace:*",
150
- "@icebreakers/stylelint-config": "^5.0.3",
150
+ "@icebreakers/stylelint-config": "^5.0.4",
151
151
  "@pnpm/find-workspace-dir": "^1000.1.5",
152
152
  "@pnpm/logger": "^1100.0.0",
153
153
  "@pnpm/types": "^1101.9.0",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@icebreakers/monorepo",
3
3
  "type": "module",
4
- "version": "5.0.3",
4
+ "version": "5.1.0",
5
5
  "description": "Core engine behind the repoctl monorepo CLI",
6
6
  "author": "ice breaker <hi@sonofmagic.top>",
7
7
  "license": "MIT",
@@ -55,7 +55,7 @@
55
55
  "node": ">=22.12.0"
56
56
  },
57
57
  "peerDependencies": {
58
- "@commitlint/cli": "^21.2.1",
58
+ "@commitlint/cli": "^21.2.2",
59
59
  "eslint": "^9.0.0 || ^10.0.0",
60
60
  "stylelint": "^17.14.1",
61
61
  "typescript": "^5.0.0 || ^6.0.0",
@@ -79,9 +79,9 @@
79
79
  }
80
80
  },
81
81
  "dependencies": {
82
- "@icebreakers/commitlint-config": "^4.0.2",
83
- "@icebreakers/eslint-config": "^7.0.2",
84
- "@icebreakers/stylelint-config": "^5.0.3",
82
+ "@icebreakers/commitlint-config": "^4.0.3",
83
+ "@icebreakers/eslint-config": "^7.0.3",
84
+ "@icebreakers/stylelint-config": "^5.0.4",
85
85
  "@pnpm/find-workspace-dir": "^1000.1.5",
86
86
  "@pnpm/logger": "^1100.0.0",
87
87
  "@pnpm/types": "^1101.9.0",
@@ -102,7 +102,7 @@
102
102
  "simple-git": "^3.36.0",
103
103
  "vitest": "^4.1.10",
104
104
  "yaml": "^2.9.0",
105
- "@icebreakers/monorepo-templates": "1.0.15"
105
+ "@icebreakers/monorepo-templates": "1.1.0"
106
106
  },
107
107
  "devDependencies": {
108
108
  "@types/klaw": "^3.0.7",
@@ -69,6 +69,26 @@ Usage:
69
69
  - --core: sync core config only (skip GitHub assets)
70
70
  - --outDir <dir>: write to another directory
71
71
  - --skip-overwrite: never overwrite existing files
72
+ - --overwrite-release: explicitly replace an unmarked custom release workflow
73
+
74
+ For the first migration of an existing project, bootstrap with
75
+ `pnpm dlx repoctl@latest upgrade --yes`. Managed and official legacy release
76
+ workflows are migrated automatically; unmarked custom workflows are preserved
77
+ unless `--overwrite-release` is supplied.
78
+
79
+ ## release ci
80
+
81
+ Purpose: provide the single GitHub Actions entrypoint for stable and prerelease orchestration.
82
+ Usage:
83
+
84
+ - `pnpm exec repo release ci`
85
+ - `pnpm exec repo release ci --mode prepare`
86
+ - `pnpm exec repo release ci --mode publish`
87
+ - `pnpm exec repo release ci --mode publish-unpublished --package <name> --version <version>`
88
+
89
+ The command uses `GITHUB_TOKEN`, `GITHUB_REPOSITORY`, `GITHUB_API_URL`, and
90
+ `GITHUB_SHA` to upsert the Release PR, package tags, and GitHub Releases. It
91
+ consumes `pnpm-publish-summary.json` and is safe to retry.
72
92
 
73
93
  ## workspace upgrade (alias: ws up)
74
94
 
@@ -85,7 +105,7 @@ Usage:
85
105
 
86
106
  ## workspace init (alias: ws init)
87
107
 
88
- Purpose: initialize workspace metadata such as README, package.json, changeset, and issue template.
108
+ Purpose: initialize workspace metadata such as README, package.json, pnpm change intent support, and issue template.
89
109
  Usage:
90
110
 
91
111
  - npx repoctl init
@@ -63,5 +63,5 @@ Key areas:
63
63
  - create: default template and template directory
64
64
  - clean: auto confirm and pinned version control
65
65
  - upgrade: overwrite behavior and extra targets
66
- - init: skip steps for README/package.json/changeset
66
+ - init: skip steps for README/package.json/pnpm change intent setup
67
67
  - mirror: add or override env mirrors