@ariestools/toolchain 8.7.1 → 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/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 +118 -14
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +84 -6
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/publint.mjs +95 -14
- package/dist/bin/package/publint.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +84 -6
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/package/sync-layout.mjs +23 -6
- package/dist/bin/package/sync-layout.mjs.map +1 -1
- package/dist/bin/xy.mjs +1881 -1687
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/lib/loadConfig.d.ts.map +1 -1
- package/dist/xy/lint/deplintCommand.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -5313,17 +5313,26 @@ var import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5313
5313
|
})))();
|
|
5314
5314
|
const configState = {
|
|
5315
5315
|
config: void 0,
|
|
5316
|
+
/** In-flight root load so concurrent callers share one cosmiconfig search. */
|
|
5317
|
+
loadPromise: void 0,
|
|
5316
5318
|
rootConfigPath: void 0
|
|
5317
5319
|
};
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
+
const explorerState = {};
|
|
5321
|
+
function getExplorer() {
|
|
5322
|
+
explorerState.current ??= (0, import_dist.cosmiconfig)("xy", {
|
|
5320
5323
|
cache: true,
|
|
5321
5324
|
loaders: { ".ts": TypeScriptLoader() }
|
|
5322
5325
|
});
|
|
5326
|
+
return explorerState.current;
|
|
5323
5327
|
}
|
|
5324
|
-
|
|
5325
|
-
if (configState.config
|
|
5326
|
-
|
|
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();
|
|
5327
5336
|
configState.config = cosmicConfigResult?.config ?? {};
|
|
5328
5337
|
configState.rootConfigPath = cosmicConfigResult?.filepath;
|
|
5329
5338
|
const configFilePath = cosmicConfigResult?.filepath;
|
|
@@ -5331,8 +5340,16 @@ const loadConfig = async (params) => {
|
|
|
5331
5340
|
console.log(chalk.green(`Loaded config from ${configFilePath}`));
|
|
5332
5341
|
if (Boolean(configState.config.verbose)) console.log(chalk.gray(JSON.stringify(configState.config, null, 2)));
|
|
5333
5342
|
}
|
|
5343
|
+
})();
|
|
5344
|
+
try {
|
|
5345
|
+
await configState.loadPromise;
|
|
5346
|
+
} finally {
|
|
5347
|
+
configState.loadPromise = void 0;
|
|
5334
5348
|
}
|
|
5335
|
-
|
|
5349
|
+
}
|
|
5350
|
+
const loadConfig = async (params) => {
|
|
5351
|
+
await ensureRootConfigLoaded();
|
|
5352
|
+
return deepMerge(configState.config ?? {}, params ?? {});
|
|
5336
5353
|
};
|
|
5337
5354
|
//#endregion
|
|
5338
5355
|
//#region src/actions/package/compile/monolithReexport.ts
|