@ariestools/toolchain 8.6.12 → 8.7.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/actions/api-exposure/config.d.ts.map +1 -1
- package/dist/actions/deplint/packageJsonEditor.d.ts +1 -1
- package/dist/actions/deplint/ruleConfig.d.ts.map +1 -1
- package/dist/actions/deplint/types.d.ts +1 -1
- package/dist/actions/gitlint.d.ts +2 -0
- package/dist/actions/gitlint.d.ts.map +1 -1
- package/dist/actions/license.d.ts +4 -0
- package/dist/actions/license.d.ts.map +1 -1
- package/dist/actions/lint.d.ts +11 -2
- package/dist/actions/lint.d.ts.map +1 -1
- package/dist/actions/lintNext.d.ts +22 -1
- package/dist/actions/lintNext.d.ts.map +1 -1
- package/dist/actions/lintNextRun.d.ts +36 -0
- package/dist/actions/lintNextRun.d.ts.map +1 -0
- package/dist/actions/lintNextWorker.d.ts +70 -3
- package/dist/actions/lintNextWorker.d.ts.map +1 -1
- package/dist/actions/lintPackageFilter.d.ts +44 -0
- package/dist/actions/lintPackageFilter.d.ts.map +1 -0
- package/dist/actions/lintlint.d.ts +31 -0
- package/dist/actions/lintlint.d.ts.map +1 -1
- package/dist/actions/node-lint.d.ts +7 -0
- package/dist/actions/node-lint.d.ts.map +1 -1
- package/dist/actions/package/compile/MonolithConfig.d.ts +23 -4
- package/dist/actions/package/compile/MonolithConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/PublintConfig.d.ts +4 -2
- package/dist/actions/package/compile/PublintConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/XyConfig.d.ts +18 -6
- package/dist/actions/package/compile/XyConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/index.d.ts +1 -0
- package/dist/actions/package/compile/index.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithCompileEntries.d.ts +8 -6
- package/dist/actions/package/compile/monolithCompileEntries.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithCompileLayout.d.ts +2 -0
- package/dist/actions/package/compile/monolithCompileLayout.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithReexport.d.ts +45 -0
- package/dist/actions/package/compile/monolithReexport.d.ts.map +1 -0
- package/dist/actions/package/compile/packageCompileMonolith.d.ts.map +1 -1
- package/dist/actions/package/publintRules.d.ts +4 -1
- package/dist/actions/package/publintRules.d.ts.map +1 -1
- package/dist/actions/package-lint.d.ts.map +1 -1
- package/dist/actions/packman/lint.d.ts +14 -0
- package/dist/actions/packman/lint.d.ts.map +1 -1
- package/dist/actions/ruleCatalog.d.ts +4 -2
- package/dist/actions/ruleCatalog.d.ts.map +1 -1
- package/dist/actions/ruleRunner.d.ts +4 -1
- package/dist/actions/ruleRunner.d.ts.map +1 -1
- package/dist/actions/skills/lint.d.ts +13 -0
- package/dist/actions/skills/lint.d.ts.map +1 -1
- package/dist/bin/package/build.mjs +708 -138
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/clean.mjs +214 -47
- package/dist/bin/package/clean.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +545 -104
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/copy-assets-cjs.mjs +214 -47
- package/dist/bin/package/copy-assets-cjs.mjs.map +1 -1
- package/dist/bin/package/copy-assets-esm.mjs +214 -47
- package/dist/bin/package/copy-assets-esm.mjs.map +1 -1
- package/dist/bin/package/publint.mjs +387 -84
- package/dist/bin/package/publint.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +545 -104
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/package/sync-layout.mjs +57 -10
- package/dist/bin/package/sync-layout.mjs.map +1 -1
- package/dist/bin/skills.mjs +135 -91
- package/dist/bin/skills.mjs.map +1 -1
- package/dist/bin/source-map-explorer.mjs +7 -2
- package/dist/bin/source-map-explorer.mjs.map +1 -1
- package/dist/bin/xy.mjs +8001 -893
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/licenseCheck/checkLicenses.d.ts +23 -0
- package/dist/lib/licenseCheck/checkLicenses.d.ts.map +1 -0
- package/dist/lib/licenseCheck/collectProductionLicenses.d.ts +21 -0
- package/dist/lib/licenseCheck/collectProductionLicenses.d.ts.map +1 -0
- package/dist/lib/licenseCheck/index.d.ts +4 -0
- package/dist/lib/licenseCheck/index.d.ts.map +1 -0
- package/dist/lib/licenseCheck/readPackageLicense.d.ts +25 -0
- package/dist/lib/licenseCheck/readPackageLicense.d.ts.map +1 -0
- package/dist/lib/loadConfig.d.ts +1 -0
- package/dist/lib/loadConfig.d.ts.map +1 -1
- package/dist/lib/ruleCommandRegistry.d.ts +100 -0
- package/dist/lib/ruleCommandRegistry.d.ts.map +1 -0
- package/dist/xy/common/gitCommand.d.ts +3 -0
- package/dist/xy/common/gitCommand.d.ts.map +1 -0
- package/dist/xy/common/gitlintCommand.d.ts +2 -0
- package/dist/xy/common/gitlintCommand.d.ts.map +1 -1
- package/dist/xy/common/index.d.ts.map +1 -1
- package/dist/xy/common/licenseCommand.d.ts.map +1 -1
- package/dist/xy/deprecatedCommand.d.ts +2 -0
- package/dist/xy/deprecatedCommand.d.ts.map +1 -0
- package/dist/xy/lint/cycleCommand.d.ts.map +1 -1
- package/dist/xy/lint/index.d.ts.map +1 -1
- package/dist/xy/lint/lint/index.d.ts.map +1 -1
- package/dist/xy/lint/lint/runCommand.d.ts.map +1 -1
- package/dist/xy/lint/lintlintCommand.d.ts +2 -0
- package/dist/xy/lint/lintlintCommand.d.ts.map +1 -1
- package/dist/xy/lint/nodeCommand.d.ts +3 -0
- package/dist/xy/lint/nodeCommand.d.ts.map +1 -0
- package/dist/xy/lint/nodeLintCommand.d.ts +2 -0
- package/dist/xy/lint/nodeLintCommand.d.ts.map +1 -1
- package/dist/xy/lint/publintCommand.d.ts.map +1 -1
- package/dist/xy/lint/relintCommand.d.ts.map +1 -1
- package/dist/xy/lint/republintCommand.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -776,7 +776,9 @@ var require_build = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
776
776
|
//#endregion
|
|
777
777
|
//#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
778
778
|
var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
779
|
-
let p = process || {}
|
|
779
|
+
let p = process || {};
|
|
780
|
+
let argv = p.argv || [];
|
|
781
|
+
let env = p.env || {};
|
|
780
782
|
let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
|
|
781
783
|
let formatter = (open, close, replace = open) => (input) => {
|
|
782
784
|
let string = "" + input, index = string.indexOf(close, open.length);
|
|
@@ -3946,7 +3948,8 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3946
3948
|
} else throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");
|
|
3947
3949
|
return "\\" + handle + common.repeat("0", length - string.length) + string;
|
|
3948
3950
|
}
|
|
3949
|
-
var QUOTING_TYPE_SINGLE = 1
|
|
3951
|
+
var QUOTING_TYPE_SINGLE = 1;
|
|
3952
|
+
var QUOTING_TYPE_DOUBLE = 2;
|
|
3950
3953
|
function State(options) {
|
|
3951
3954
|
this.schema = options["schema"] || DEFAULT_SCHEMA;
|
|
3952
3955
|
this.indent = Math.max(1, options["indent"] || 2);
|
|
@@ -4027,7 +4030,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4027
4030
|
function needIndentIndicator(string) {
|
|
4028
4031
|
return /^\n* /.test(string);
|
|
4029
4032
|
}
|
|
4030
|
-
var STYLE_PLAIN = 1
|
|
4033
|
+
var STYLE_PLAIN = 1;
|
|
4034
|
+
var STYLE_SINGLE = 2;
|
|
4035
|
+
var STYLE_LITERAL = 3;
|
|
4036
|
+
var STYLE_FOLDED = 4;
|
|
4037
|
+
var STYLE_DOUBLE = 5;
|
|
4031
4038
|
function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
|
|
4032
4039
|
var i;
|
|
4033
4040
|
var char = 0;
|
|
@@ -5328,6 +5335,46 @@ const loadConfig = async (params) => {
|
|
|
5328
5335
|
return deepMerge(configState.config, params ?? {});
|
|
5329
5336
|
};
|
|
5330
5337
|
//#endregion
|
|
5338
|
+
//#region src/actions/package/compile/monolithReexport.ts
|
|
5339
|
+
function normalizeReexportTargets(value) {
|
|
5340
|
+
if (value === void 0) return [];
|
|
5341
|
+
return Array.isArray(value) ? value : [value];
|
|
5342
|
+
}
|
|
5343
|
+
/** Configured `reexport` targets for a module, if any. */
|
|
5344
|
+
function moduleReexportTargets(mod) {
|
|
5345
|
+
return normalizeReexportTargets(mod.reexport);
|
|
5346
|
+
}
|
|
5347
|
+
function moduleHasReexport(mod) {
|
|
5348
|
+
return moduleReexportTargets(mod).length > 0;
|
|
5349
|
+
}
|
|
5350
|
+
/**
|
|
5351
|
+
* Master-barrel re-export targets for a module: explicit `barrelFrom`, else
|
|
5352
|
+
* `reexport`, else `#<name>`.
|
|
5353
|
+
*/
|
|
5354
|
+
function moduleBarrelTargets(mod) {
|
|
5355
|
+
const fromBarrel = normalizeReexportTargets(mod.barrelFrom);
|
|
5356
|
+
if (fromBarrel.length > 0) return fromBarrel;
|
|
5357
|
+
const fromReexport = moduleReexportTargets(mod);
|
|
5358
|
+
if (fromReexport.length > 0) return fromReexport;
|
|
5359
|
+
return [`#${mod.name}`];
|
|
5360
|
+
}
|
|
5361
|
+
/**
|
|
5362
|
+
* Subpath shim re-export targets: explicit `shimFrom`, else `reexport`, else
|
|
5363
|
+
* `#<name>`.
|
|
5364
|
+
*/
|
|
5365
|
+
function moduleShimTargets(mod) {
|
|
5366
|
+
const fromShim = normalizeReexportTargets(mod.shimFrom);
|
|
5367
|
+
if (fromShim.length > 0) return fromShim;
|
|
5368
|
+
const fromReexport = moduleReexportTargets(mod);
|
|
5369
|
+
if (fromReexport.length > 0) return fromReexport;
|
|
5370
|
+
return [`#${mod.name}`];
|
|
5371
|
+
}
|
|
5372
|
+
/** Builds a pure star-reexport TypeScript (or mjs) source body (no header). */
|
|
5373
|
+
function buildStarReexportLines(targets, options = {}) {
|
|
5374
|
+
const semi = options.semi === false ? "" : ";";
|
|
5375
|
+
return `${targets.map((target) => `export * from '${target}'${semi}`).join("\n")}\n`;
|
|
5376
|
+
}
|
|
5377
|
+
//#endregion
|
|
5331
5378
|
//#region src/actions/package/compile/monolithCompileLayout.ts
|
|
5332
5379
|
/**
|
|
5333
5380
|
* Layout generation for `compile.mode: 'monolith'` — a 1:1 port of the
|
|
@@ -5393,10 +5440,7 @@ function buildIndexTs(modules, config) {
|
|
|
5393
5440
|
const hasConditional = Object.keys(config.conditionalImports ?? {}).length > 0;
|
|
5394
5441
|
const barrelModules = modules.filter((mod) => mod.barrel ?? false).toSorted((a, b) => a.name.localeCompare(b.name));
|
|
5395
5442
|
const lines = (config.barrelImports ?? []).map((spec) => `export * from '${spec}'`);
|
|
5396
|
-
for (const mod of barrelModules) {
|
|
5397
|
-
const target = mod.barrelFrom ?? `#${mod.name}`;
|
|
5398
|
-
lines.push(`export * from '${target}'`);
|
|
5399
|
-
}
|
|
5443
|
+
for (const mod of barrelModules) for (const target of moduleBarrelTargets(mod)) lines.push(`export * from '${target}'`);
|
|
5400
5444
|
return `${GENERATED_HEADER}${hasConditional ? "/* eslint-disable @typescript-eslint/ban-ts-comment -- conditional package imports */\n// @ts-nocheck\n" : ""}${lines.join("\n")}
|
|
5401
5445
|
`;
|
|
5402
5446
|
}
|
|
@@ -5406,9 +5450,11 @@ function buildModelTs(modules) {
|
|
|
5406
5450
|
`;
|
|
5407
5451
|
}
|
|
5408
5452
|
function buildModuleShim(mod) {
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5453
|
+
return `${GENERATED_HEADER}${buildStarReexportLines(moduleShimTargets(mod), { semi: false })}`;
|
|
5454
|
+
}
|
|
5455
|
+
/** Generated module body for facade modules with `reexport` targets. */
|
|
5456
|
+
function buildModuleReexportIndex(mod) {
|
|
5457
|
+
return `${GENERATED_HEADER}${buildStarReexportLines(moduleReexportTargets(mod), { semi: false })}`;
|
|
5412
5458
|
}
|
|
5413
5459
|
function buildModelShim(mod) {
|
|
5414
5460
|
return `${GENERATED_HEADER}export type * from '#${mod.name}/model'
|
|
@@ -5463,6 +5509,7 @@ function syncMonolithLayout(packageDir, config, options = {}) {
|
|
|
5463
5509
|
if (!(config.index?.custom ?? false)) writeOrCheck(PATH.join(packageDir, "src/index.ts"), buildIndexTs(modules, config));
|
|
5464
5510
|
if (monolithHasModelBarrel(config)) writeOrCheck(PATH.join(packageDir, "src/model.ts"), buildModelTs(modules));
|
|
5465
5511
|
for (const mod of modules) {
|
|
5512
|
+
if (moduleHasReexport(mod)) writeOrCheck(PATH.join(packageDir, "src", "modules", mod.name, "index.ts"), buildModuleReexportIndex(mod));
|
|
5466
5513
|
if (!(mod.export ?? false)) continue;
|
|
5467
5514
|
writeOrCheck(PATH.join(packageDir, `src/${mod.name}.ts`), buildModuleShim(mod));
|
|
5468
5515
|
if (mod.model ?? false) writeOrCheck(PATH.join(packageDir, `src/${mod.name}.model.ts`), buildModelShim(mod));
|