@ariestools/toolchain 8.7.0 → 8.7.2
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 +44 -0
- package/dist/actions/deplint/deplint.d.ts +3 -1
- package/dist/actions/deplint/deplint.d.ts.map +1 -1
- package/dist/actions/deplint/engine.d.ts +2 -2
- package/dist/actions/deplint/engine.d.ts.map +1 -1
- package/dist/actions/deplint/findFiles.d.ts.map +1 -1
- package/dist/actions/deplint/getCliReferencedPackagesFromFiles.d.ts.map +1 -1
- package/dist/actions/deplint/getImportsFromFile.d.ts.map +1 -1
- package/dist/actions/deplint/getStorybookConfigImports.d.ts.map +1 -1
- package/dist/actions/deplint/index.d.ts +2 -0
- package/dist/actions/deplint/index.d.ts.map +1 -1
- package/dist/actions/deplint/reporters.d.ts +6 -1
- package/dist/actions/deplint/reporters.d.ts.map +1 -1
- package/dist/actions/deplint/runDeplint.d.ts +4 -0
- package/dist/actions/deplint/runDeplint.d.ts.map +1 -0
- package/dist/actions/deplint/snapshot.d.ts +7 -0
- package/dist/actions/deplint/snapshot.d.ts.map +1 -1
- package/dist/actions/deplint/sourceFileCache.d.ts +11 -0
- package/dist/actions/deplint/sourceFileCache.d.ts.map +1 -0
- package/dist/actions/deplint/types.d.ts +31 -0
- package/dist/actions/deplint/types.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/package/compile/MonolithConfig.d.ts +10 -0
- package/dist/actions/package/compile/MonolithConfig.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/monolithCopyEntries.d.ts +14 -0
- package/dist/actions/package/compile/monolithCopyEntries.d.ts.map +1 -0
- package/dist/actions/package/compile/packageCompileMonolith.d.ts.map +1 -1
- package/dist/actions/package/expectedCompileOutputs.d.ts +1 -0
- package/dist/actions/package/expectedCompileOutputs.d.ts.map +1 -1
- package/dist/actions/package/exportMapPublint.d.ts.map +1 -1
- package/dist/bin/package/build.mjs +414 -97
- 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 +380 -89
- 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 +319 -64
- package/dist/bin/package/publint.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +380 -89
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/package/sync-layout.mjs +33 -9
- 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 +2634 -1653
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/lib/index.d.ts +1 -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.map +1 -1
- package/dist/xy/common/licenseCommand.d.ts.map +1 -1
- package/dist/xy/lint/cycleCommand.d.ts.map +1 -1
- package/dist/xy/lint/deplintCommand.d.ts.map +1 -1
- package/dist/xy/lint/lint/runCommand.d.ts.map +1 -1
- package/package.json +7 -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;
|
|
@@ -5306,17 +5313,26 @@ var import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5306
5313
|
})))();
|
|
5307
5314
|
const configState = {
|
|
5308
5315
|
config: void 0,
|
|
5316
|
+
/** In-flight root load so concurrent callers share one cosmiconfig search. */
|
|
5317
|
+
loadPromise: void 0,
|
|
5309
5318
|
rootConfigPath: void 0
|
|
5310
5319
|
};
|
|
5311
|
-
|
|
5312
|
-
|
|
5320
|
+
const explorerState = {};
|
|
5321
|
+
function getExplorer() {
|
|
5322
|
+
explorerState.current ??= (0, import_dist.cosmiconfig)("xy", {
|
|
5313
5323
|
cache: true,
|
|
5314
5324
|
loaders: { ".ts": TypeScriptLoader() }
|
|
5315
5325
|
});
|
|
5326
|
+
return explorerState.current;
|
|
5316
5327
|
}
|
|
5317
|
-
|
|
5318
|
-
if (configState.config
|
|
5319
|
-
|
|
5328
|
+
async function ensureRootConfigLoaded() {
|
|
5329
|
+
if (configState.config !== void 0) return;
|
|
5330
|
+
if (configState.loadPromise !== void 0) {
|
|
5331
|
+
await configState.loadPromise;
|
|
5332
|
+
return;
|
|
5333
|
+
}
|
|
5334
|
+
configState.loadPromise = (async () => {
|
|
5335
|
+
const cosmicConfigResult = await getExplorer().search();
|
|
5320
5336
|
configState.config = cosmicConfigResult?.config ?? {};
|
|
5321
5337
|
configState.rootConfigPath = cosmicConfigResult?.filepath;
|
|
5322
5338
|
const configFilePath = cosmicConfigResult?.filepath;
|
|
@@ -5324,8 +5340,16 @@ const loadConfig = async (params) => {
|
|
|
5324
5340
|
console.log(chalk.green(`Loaded config from ${configFilePath}`));
|
|
5325
5341
|
if (Boolean(configState.config.verbose)) console.log(chalk.gray(JSON.stringify(configState.config, null, 2)));
|
|
5326
5342
|
}
|
|
5343
|
+
})();
|
|
5344
|
+
try {
|
|
5345
|
+
await configState.loadPromise;
|
|
5346
|
+
} finally {
|
|
5347
|
+
configState.loadPromise = void 0;
|
|
5327
5348
|
}
|
|
5328
|
-
|
|
5349
|
+
}
|
|
5350
|
+
const loadConfig = async (params) => {
|
|
5351
|
+
await ensureRootConfigLoaded();
|
|
5352
|
+
return deepMerge(configState.config ?? {}, params ?? {});
|
|
5329
5353
|
};
|
|
5330
5354
|
//#endregion
|
|
5331
5355
|
//#region src/actions/package/compile/monolithReexport.ts
|