@icebreakers/monorepo 5.0.2 → 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.
- package/README.md +1 -0
- package/dist/cli.d.mts +1 -1
- package/dist/cli.mjs +64 -38
- package/dist/{commands-CLoncxyA.mjs → commands-BD9u8I6D.mjs} +1104 -105
- package/dist/{create-flow-co0NSyuc.mjs → create-flow-D_SecUxo.mjs} +2 -2
- package/dist/{index-DKfWpvBF.d.mts → index-cBqxgIwY.d.mts} +8 -2
- package/dist/index.d.mts +152 -13
- package/dist/index.mjs +4 -4
- package/dist/{tooling-auYlGr3v.mjs → tooling-Bn3XOfO0.mjs} +6 -0
- package/dist/tooling-entry.d.mts +1 -1
- package/dist/tooling-entry.mjs +1 -1
- package/dist/{types-BXMAv9aF.mjs → types-S6igCe0w.mjs} +8 -8
- package/package.json +10 -10
- package/resources/skills/icebreakers-monorepo-cli/references/commands.md +21 -1
- package/resources/skills/icebreakers-monorepo-cli/references/config.md +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as logger, g as fs } from "./types-
|
|
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
|
-
* 是否跳过生成
|
|
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
|
-
* 是否跳过
|
|
366
|
+
* 是否跳过 pnpm versioning 元数据的更新。
|
|
362
367
|
* @default false
|
|
363
368
|
*/
|
|
364
369
|
skipChangeset?: boolean;
|
|
@@ -855,6 +860,7 @@ declare function defineTsconfigConfig(input?: DefineConfigOptions<TsconfigToolin
|
|
|
855
860
|
* - `*.{js,jsx,mjs,ts,tsx,mts,cts}` 运行 `eslint --fix`
|
|
856
861
|
* - `*.vue` 同时运行 `eslint --fix` 与 `stylelint --fix --allow-empty-input`
|
|
857
862
|
* - `*.{ts,tsx,mts,cts,vue}` 调用 `pnpm exec repo verify staged-typecheck`
|
|
863
|
+
* - `package.json` files in any workspace also trigger `pnpm exec repo verify staged-typecheck`
|
|
858
864
|
* - 样式文件运行 `stylelint --fix --allow-empty-input`
|
|
859
865
|
*
|
|
860
866
|
* @param options 可配置 `repoCommand`,默认值为 `pnpm exec repo`
|
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-
|
|
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
|
|
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-
|
|
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
|
-
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-
|
|
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 };
|
|
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, 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 };
|
|
@@ -264,6 +264,7 @@ async function defineTsconfigConfig(input = {}) {
|
|
|
264
264
|
* - `*.{js,jsx,mjs,ts,tsx,mts,cts}` 运行 `eslint --fix`
|
|
265
265
|
* - `*.vue` 同时运行 `eslint --fix` 与 `stylelint --fix --allow-empty-input`
|
|
266
266
|
* - `*.{ts,tsx,mts,cts,vue}` 调用 `pnpm exec repo verify staged-typecheck`
|
|
267
|
+
* - `package.json` files in any workspace also trigger `pnpm exec repo verify staged-typecheck`
|
|
267
268
|
* - 样式文件运行 `stylelint --fix --allow-empty-input`
|
|
268
269
|
*
|
|
269
270
|
* @param options 可配置 `repoCommand`,默认值为 `pnpm exec repo`
|
|
@@ -289,6 +290,11 @@ function createMonorepoLintStagedConfig(options = {}) {
|
|
|
289
290
|
if (uniqueFiles.length === 0) return [];
|
|
290
291
|
return `${repoCommand} verify staged-typecheck ${uniqueFiles.map(escapeForShell).join(" ")}`;
|
|
291
292
|
},
|
|
293
|
+
"**/package.json": (files) => {
|
|
294
|
+
const uniqueFiles = [...new Set(files)];
|
|
295
|
+
if (uniqueFiles.length === 0) return [];
|
|
296
|
+
return `${repoCommand} verify staged-typecheck ${uniqueFiles.map(escapeForShell).join(" ")}`;
|
|
297
|
+
},
|
|
292
298
|
"*.{json,md,mdx,html,yml,yaml}": ["eslint --fix"],
|
|
293
299
|
"*.{css,scss,sass,less}": ["stylelint --fix --allow-empty-input"]
|
|
294
300
|
};
|
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-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 };
|
package/dist/tooling-entry.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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";
|
|
2
2
|
export { createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoLintStagedConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, defineCommitlintConfig, defineEslintConfig, defineLintStagedConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, loadMonorepoToolingConfig };
|
|
@@ -142,16 +142,16 @@ const logger = createConsola();
|
|
|
142
142
|
//#endregion
|
|
143
143
|
//#region package.json
|
|
144
144
|
var name = "@icebreakers/monorepo";
|
|
145
|
-
var version = "5.0
|
|
145
|
+
var version = "5.1.0";
|
|
146
146
|
var dependencies = {
|
|
147
|
-
"@icebreakers/commitlint-config": "^4.0.
|
|
148
|
-
"@icebreakers/eslint-config": "^7.0.
|
|
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.
|
|
150
|
+
"@icebreakers/stylelint-config": "^5.0.4",
|
|
151
151
|
"@pnpm/find-workspace-dir": "^1000.1.5",
|
|
152
152
|
"@pnpm/logger": "^1100.0.0",
|
|
153
|
-
"@pnpm/types": "^1101.
|
|
154
|
-
"@pnpm/worker": "^1100.2.
|
|
153
|
+
"@pnpm/types": "^1101.9.0",
|
|
154
|
+
"@pnpm/worker": "^1100.2.10",
|
|
155
155
|
"@pnpm/workspace.find-packages": "^1000.0.65",
|
|
156
156
|
"@pnpm/workspace.read-manifest": "^1000.3.1",
|
|
157
157
|
"c12": "^3.3.4",
|
|
@@ -160,8 +160,8 @@ var dependencies = {
|
|
|
160
160
|
"consola": "^3.4.2",
|
|
161
161
|
"git-url-parse": "^16.1.0",
|
|
162
162
|
"klaw": "^4.1.0",
|
|
163
|
-
"lint-staged": "^17.
|
|
164
|
-
"p-queue": "^9.3.
|
|
163
|
+
"lint-staged": "^17.3.0",
|
|
164
|
+
"p-queue": "^9.3.3",
|
|
165
165
|
"pathe": "^2.0.3",
|
|
166
166
|
"picocolors": "^1.1.1",
|
|
167
167
|
"semver": "^7.8.5",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icebreakers/monorepo",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.0
|
|
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.
|
|
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,13 +79,13 @@
|
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@icebreakers/commitlint-config": "^4.0.
|
|
83
|
-
"@icebreakers/eslint-config": "^7.0.
|
|
84
|
-
"@icebreakers/stylelint-config": "^5.0.
|
|
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
|
-
"@pnpm/types": "^1101.
|
|
88
|
-
"@pnpm/worker": "^1100.2.
|
|
87
|
+
"@pnpm/types": "^1101.9.0",
|
|
88
|
+
"@pnpm/worker": "^1100.2.10",
|
|
89
89
|
"@pnpm/workspace.find-packages": "^1000.0.65",
|
|
90
90
|
"@pnpm/workspace.read-manifest": "^1000.3.1",
|
|
91
91
|
"c12": "^3.3.4",
|
|
@@ -94,15 +94,15 @@
|
|
|
94
94
|
"consola": "^3.4.2",
|
|
95
95
|
"git-url-parse": "^16.1.0",
|
|
96
96
|
"klaw": "^4.1.0",
|
|
97
|
-
"lint-staged": "^17.
|
|
98
|
-
"p-queue": "^9.3.
|
|
97
|
+
"lint-staged": "^17.3.0",
|
|
98
|
+
"p-queue": "^9.3.3",
|
|
99
99
|
"pathe": "^2.0.3",
|
|
100
100
|
"picocolors": "^1.1.1",
|
|
101
101
|
"semver": "^7.8.5",
|
|
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
|
|
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,
|
|
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/
|
|
66
|
+
- init: skip steps for README/package.json/pnpm change intent setup
|
|
67
67
|
- mirror: add or override env mirrors
|