@icebreakers/monorepo 6.4.0 → 6.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{baseline-BahTYIy-.mjs → baseline-CgvgNCUI.mjs} +3 -5
- package/dist/{bundle-B9vRch4R.mjs → bundle-BT26jZsH.mjs} +1 -2
- package/dist/{catalog-CXITrKhb.mjs → catalog-zafyCCYH.mjs} +11 -18
- package/dist/cli.mjs +141 -220
- package/dist/{commands-1ApnhvJF.mjs → commands-By0wXIqB.mjs} +371 -725
- package/dist/{config-BmK7bacv.mjs → config-CnB1hpD_.mjs} +4 -5
- package/dist/{create-flow-B2sFa_5j.mjs → create-flow-B6mkhe47.mjs} +6 -9
- package/dist/{deps-BbkQSTqk.mjs → deps-BJyokXyG.mjs} +6 -8
- package/dist/docs-context-entry.d.mts +0 -4
- package/dist/docs-context-entry.mjs +2 -4
- package/dist/{execute-0NGtp4hR.mjs → execute-By0DFwdk.mjs} +12 -22
- package/dist/{execute-BdnLU2-t.mjs → execute-dyUt94Dv.mjs} +4 -6
- package/dist/{format-BcU-hzT_.mjs → format-qyk-2EXc.mjs} +2 -3
- package/dist/{index-BBYRSLAi.d.mts → index-CyUOTGW4.d.mts} +1 -85
- package/dist/index.d.mts +3 -345
- package/dist/index.mjs +11 -13
- package/dist/{inputs-DCMUM9kz.mjs → inputs-D0jkn1xJ.mjs} +2 -3
- package/dist/{npm-DB-0FHcW.mjs → npm-BkilS3Rx.mjs} +2 -3
- package/dist/{plan-C47MSubl.mjs → plan-lepevajA.mjs} +2 -3
- package/dist/{rolldown-runtime-8H4AJuhK.mjs → rolldown-runtime-BJohB4LM.mjs} +1 -2
- package/dist/{run-5IdtzJJR.mjs → run-Coc92Trs.mjs} +6 -8
- package/dist/{save-cKCfFQrh.mjs → save-6C5t4ZGp.mjs} +4 -5
- package/dist/{scan-Diyd5MkZ.mjs → scan-DsiJldTw.mjs} +7 -12
- package/dist/{template-drift-C8gMh7d5.mjs → template-drift-DOG6iGjV.mjs} +60 -113
- package/dist/tooling-entry.d.mts +1 -1
- package/dist/tooling-entry.mjs +2 -2
- package/dist/{transaction-B33_Cacq.mjs → transaction-DWst6RWq.mjs} +6 -10
- package/dist/{tsconfig-B32VPzfD.mjs → tsconfig-KnvwNzkL.mjs} +36 -63
- package/dist/{vitest-HFe4zq1M.mjs → vitest-YHXyRHui.mjs} +6 -9
- package/dist/{workspace-tasks-xyIJwdmH.mjs → workspace-tasks-i69iIhom.mjs} +78 -157
- package/package.json +10 -10
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { at as record, rt as hash } from "./workspace-tasks-
|
|
1
|
+
import { at as record, rt as hash } from "./workspace-tasks-i69iIhom.mjs";
|
|
2
2
|
import path from "pathe";
|
|
3
3
|
import { readFile, stat } from "node:fs/promises";
|
|
4
4
|
import { isDeepStrictEqual } from "node:util";
|
|
5
|
-
|
|
5
|
+
// src/commands/check/knip/native.ts
|
|
6
6
|
const marker = "__REPOCTL_KNIP_REPORT_V1__";
|
|
7
7
|
function findingFingerprint(finding) {
|
|
8
8
|
const members = Array.isArray(finding.native["symbols"]) ? finding.native["symbols"].map((member) => [
|
|
@@ -97,8 +97,7 @@ function summarizeKnip(findings) {
|
|
|
97
97
|
}
|
|
98
98
|
return summary;
|
|
99
99
|
}
|
|
100
|
-
|
|
101
|
-
//#region src/commands/check/knip/baseline.ts
|
|
100
|
+
// src/commands/check/knip/baseline.ts
|
|
102
101
|
function validateKnipBaseline(value) {
|
|
103
102
|
const baseline = record(value);
|
|
104
103
|
const scope = record(baseline?.["scope"]);
|
|
@@ -142,5 +141,4 @@ async function compareKnipBaseline(file, scope, findings) {
|
|
|
142
141
|
};
|
|
143
142
|
}
|
|
144
143
|
}
|
|
145
|
-
//#endregion
|
|
146
144
|
export { summarizeKnip as i, validateKnipBaseline as n, parseKnipOutput as r, compareKnipBaseline as t };
|
|
@@ -3,7 +3,7 @@ import { readFile } from "node:fs/promises";
|
|
|
3
3
|
import path$1 from "node:path";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
5
5
|
import { build } from "esbuild";
|
|
6
|
-
|
|
6
|
+
// src/core/config/bundle.ts
|
|
7
7
|
const preserveModulePaths = {
|
|
8
8
|
name: "repoctl-config-module-paths",
|
|
9
9
|
setup(plugin) {
|
|
@@ -45,5 +45,4 @@ async function bundleConfig(filename) {
|
|
|
45
45
|
files: Object.keys(result.metafile.inputs).map((file) => path.resolve(cwd, file))
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
//#endregion
|
|
49
48
|
export { bundleConfig };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { i as dependencyNextSteps, n as inspectDependencyPlanInputs, o as dependencyReport, r as validateDependencyPlan, t as writeDependencyTransaction } from "./transaction-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.mjs";
|
|
2
|
+
import { a as dependencySections, i as rangesOverlap, n as equivalentRanges, r as parseSpecifier, t as scanDependencies } from "./scan-DsiJldTw.mjs";
|
|
3
|
+
import { Ht as clearWorkspaceCache, at as record, rt as hash, st as updateManifest } from "./workspace-tasks-i69iIhom.mjs";
|
|
4
|
+
import { i as dependencyNextSteps, n as inspectDependencyPlanInputs, o as dependencyReport, r as validateDependencyPlan, t as writeDependencyTransaction } from "./transaction-DWst6RWq.mjs";
|
|
5
5
|
import { satisfies, subset, valid, validRange } from "semver";
|
|
6
6
|
import YAML, { isAlias, isMap } from "yaml";
|
|
7
7
|
import { isDeepStrictEqual } from "node:util";
|
|
8
|
-
|
|
8
|
+
// src/commands/deps/catalog/config.ts
|
|
9
9
|
function catalogName(value = "default") {
|
|
10
10
|
if (typeof value !== "string" || !value.trim() || value !== value.trim()) throw new Error("Select a nonempty catalog name (default or a named catalog).");
|
|
11
11
|
return value;
|
|
@@ -42,8 +42,7 @@ function addCatalogEntry(original, name, dependency, target) {
|
|
|
42
42
|
if (!original.endsWith("\n")) output = output.replace(/\n$/, "");
|
|
43
43
|
return original.includes("\r\n") ? output.replaceAll("\n", "\r\n") : output;
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
//#region src/commands/deps/catalog/selection.ts
|
|
45
|
+
// src/commands/deps/catalog/selection.ts
|
|
47
46
|
function migrationCandidate(scan, group, options) {
|
|
48
47
|
const catalog = catalogName(options.catalog);
|
|
49
48
|
const current = catalogEntry(readCatalogs(scan.workspace), catalog, group.dependency);
|
|
@@ -95,8 +94,7 @@ function migrationCandidate(scan, group, options) {
|
|
|
95
94
|
target
|
|
96
95
|
};
|
|
97
96
|
}
|
|
98
|
-
|
|
99
|
-
//#region src/commands/deps/catalog/plan.ts
|
|
97
|
+
// src/commands/deps/catalog/plan.ts
|
|
100
98
|
function prepareCatalogMigration(scan, options) {
|
|
101
99
|
if (!options || typeof options.dependency !== "string" || !options.dependency.trim() || !dependencySections.includes(options.section) || options.group !== void 0 && (typeof options.group !== "string" || !options.group) || options.to !== void 0 && (typeof options.to !== "string" || !options.to.trim())) throw new Error("Select a dependency, dependency section and optional explicit catalog target.");
|
|
102
100
|
const catalog = catalogName(options.catalog);
|
|
@@ -148,8 +146,7 @@ function prepareCatalogMigration(scan, options) {
|
|
|
148
146
|
updates
|
|
149
147
|
};
|
|
150
148
|
}
|
|
151
|
-
|
|
152
|
-
//#region src/commands/deps/catalog/references.ts
|
|
149
|
+
// src/commands/deps/catalog/references.ts
|
|
153
150
|
function catalogReferences(scan, catalogs) {
|
|
154
151
|
const declarations = scan.occurrences.filter((item) => item.protocol === "catalog");
|
|
155
152
|
for (const [selector, specifier] of Object.entries(record(scan.workspace["overrides"]) ?? {})) {
|
|
@@ -182,8 +179,7 @@ function catalogReferences(scan, catalogs) {
|
|
|
182
179
|
};
|
|
183
180
|
});
|
|
184
181
|
}
|
|
185
|
-
|
|
186
|
-
//#region src/commands/deps/catalog/report.ts
|
|
182
|
+
// src/commands/deps/catalog/report.ts
|
|
187
183
|
function catalogReport(scan, options = {}) {
|
|
188
184
|
const catalog = catalogName(options.catalog);
|
|
189
185
|
const catalogs = readCatalogs(scan.workspace);
|
|
@@ -253,8 +249,7 @@ function catalogReport(scan, options = {}) {
|
|
|
253
249
|
}
|
|
254
250
|
};
|
|
255
251
|
}
|
|
256
|
-
|
|
257
|
-
//#region src/commands/deps/catalog/apply.ts
|
|
252
|
+
// src/commands/deps/catalog/apply.ts
|
|
258
253
|
async function applyCatalogMigrationPlan(cwd, plan) {
|
|
259
254
|
validateDependencyPlan(plan);
|
|
260
255
|
if (plan.kind !== "catalog-migration" || !Array.isArray(plan.consumers)) throw new Error("Invalid catalog migration plan.");
|
|
@@ -282,8 +277,7 @@ async function applyCatalogMigrationPlan(cwd, plan) {
|
|
|
282
277
|
nextSteps: [...dependencyNextSteps]
|
|
283
278
|
};
|
|
284
279
|
}
|
|
285
|
-
|
|
286
|
-
//#region src/commands/deps/catalog/index.ts
|
|
280
|
+
// src/commands/deps/catalog/index.ts
|
|
287
281
|
var catalog_exports = /* @__PURE__ */ __exportAll({
|
|
288
282
|
applyCatalogMigrationPlan: () => applyCatalogMigrationPlan,
|
|
289
283
|
checkCatalogs: () => checkCatalogs,
|
|
@@ -295,5 +289,4 @@ async function checkCatalogs(cwd, options = {}) {
|
|
|
295
289
|
async function planCatalogMigration(cwd, options) {
|
|
296
290
|
return prepareCatalogMigration(await scanDependencies(cwd), options).plan;
|
|
297
291
|
}
|
|
298
|
-
//#endregion
|
|
299
292
|
export { applyCatalogMigrationPlan as i, checkCatalogs as n, planCatalogMigration as r, catalog_exports as t };
|