@ariestools/toolchain 9.0.1 → 9.0.3
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 +28 -0
- package/dist/actions/enable/editXyConfigCompile.d.ts +32 -0
- package/dist/actions/enable/editXyConfigCompile.d.ts.map +1 -0
- package/dist/actions/enable/index.d.ts +3 -0
- package/dist/actions/enable/index.d.ts.map +1 -0
- package/dist/actions/enable/tsNative.d.ts +36 -0
- package/dist/actions/enable/tsNative.d.ts.map +1 -0
- package/dist/actions/index.d.ts +2 -0
- package/dist/actions/index.d.ts.map +1 -1
- package/dist/actions/lint.d.ts +10 -1
- package/dist/actions/lint.d.ts.map +1 -1
- package/dist/actions/lintMode.d.ts +18 -0
- package/dist/actions/lintMode.d.ts.map +1 -0
- package/dist/actions/lintNext.d.ts +7 -1
- package/dist/actions/lintNext.d.ts.map +1 -1
- package/dist/actions/lintNextRun.d.ts +3 -1
- package/dist/actions/lintNextRun.d.ts.map +1 -1
- package/dist/actions/lintNextWorker.d.ts +6 -0
- package/dist/actions/lintNextWorker.d.ts.map +1 -1
- package/dist/actions/lintSharedTypecheck.d.ts +10 -0
- package/dist/actions/lintSharedTypecheck.d.ts.map +1 -0
- package/dist/actions/lintSharedTypecheckRules.d.ts +24 -0
- package/dist/actions/lintSharedTypecheckRules.d.ts.map +1 -0
- package/dist/actions/package/compile/XyConfig.d.ts +7 -2
- package/dist/actions/package/compile/XyConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/resolveTscBin.d.ts +10 -0
- package/dist/actions/package/compile/resolveTscBin.d.ts.map +1 -1
- package/dist/actions/package/compile/runTsc.d.ts.map +1 -1
- package/dist/actions/relint.d.ts +10 -1
- package/dist/actions/relint.d.ts.map +1 -1
- package/dist/actions/tsc-validate/sharedValidate.d.ts +18 -0
- package/dist/actions/tsc-validate/sharedValidate.d.ts.map +1 -1
- package/dist/bin/package/build.mjs +127 -86
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/clean.mjs +34 -1
- package/dist/bin/package/clean.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +133 -89
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/publint.mjs +34 -1
- package/dist/bin/package/publint.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +127 -86
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/package/sync-layout.mjs +40 -4
- package/dist/bin/package/sync-layout.mjs.map +1 -1
- package/dist/bin/xy.mjs +962 -120
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/xy/common/enable/index.d.ts +3 -0
- package/dist/xy/common/enable/index.d.ts.map +1 -0
- package/dist/xy/common/index.d.ts.map +1 -1
- package/dist/xy/lint/lint/runCommand.d.ts.map +1 -1
- package/dist/xy/lint/relintCommand.d.ts.map +1 -1
- package/package.json +10 -9
|
@@ -5,7 +5,7 @@ import os from "node:os";
|
|
|
5
5
|
import tty from "node:tty";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import PATH from "node:path";
|
|
8
|
-
import {
|
|
8
|
+
import { createJiti } from "jiti";
|
|
9
9
|
//#region \0rolldown/runtime.js
|
|
10
10
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
11
11
|
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
@@ -3632,8 +3632,8 @@ var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3632
3632
|
exports.ExplorerSync = ExplorerSync;
|
|
3633
3633
|
}));
|
|
3634
3634
|
//#endregion
|
|
3635
|
-
//#region
|
|
3636
|
-
var
|
|
3635
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/index.js
|
|
3636
|
+
var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3637
3637
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3638
3638
|
exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = exports.cosmiconfigSync = exports.cosmiconfig = void 0;
|
|
3639
3639
|
const defaults_1 = require_defaults();
|
|
@@ -3793,7 +3793,43 @@ var import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3793
3793
|
};
|
|
3794
3794
|
}
|
|
3795
3795
|
exports.cosmiconfigSync = cosmiconfigSync;
|
|
3796
|
-
}))
|
|
3796
|
+
}));
|
|
3797
|
+
//#endregion
|
|
3798
|
+
//#region ../../node_modules/.pnpm/cosmiconfig-typescript-loader@6.3.0_@types+node@26.2.0_cosmiconfig@10.0.0_typescript@6.0.3/node_modules/cosmiconfig-typescript-loader/dist/esm/typescript-compile-error.mjs
|
|
3799
|
+
var TypeScriptCompileError = class _TypeScriptCompileError extends Error {
|
|
3800
|
+
constructor(message) {
|
|
3801
|
+
super(message);
|
|
3802
|
+
this.name = this.constructor.name;
|
|
3803
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
3804
|
+
}
|
|
3805
|
+
static fromError(error) {
|
|
3806
|
+
const message = `TypeScriptLoader failed to compile TypeScript:
|
|
3807
|
+
${error.message}`;
|
|
3808
|
+
const newError = new _TypeScriptCompileError(message);
|
|
3809
|
+
newError.stack = error.stack;
|
|
3810
|
+
return newError;
|
|
3811
|
+
}
|
|
3812
|
+
};
|
|
3813
|
+
//#endregion
|
|
3814
|
+
//#region ../../node_modules/.pnpm/cosmiconfig-typescript-loader@6.3.0_@types+node@26.2.0_cosmiconfig@10.0.0_typescript@6.0.3/node_modules/cosmiconfig-typescript-loader/dist/esm/loader.mjs
|
|
3815
|
+
function TypeScriptLoader(options) {
|
|
3816
|
+
const loader = createJiti("", {
|
|
3817
|
+
interopDefault: true,
|
|
3818
|
+
...options
|
|
3819
|
+
});
|
|
3820
|
+
return async (path, _content) => {
|
|
3821
|
+
try {
|
|
3822
|
+
const result = await loader.import(path);
|
|
3823
|
+
return result.default || result;
|
|
3824
|
+
} catch (error) {
|
|
3825
|
+
if (error instanceof Error) throw TypeScriptCompileError.fromError(error);
|
|
3826
|
+
throw error;
|
|
3827
|
+
}
|
|
3828
|
+
};
|
|
3829
|
+
}
|
|
3830
|
+
//#endregion
|
|
3831
|
+
//#region src/lib/loadConfig.ts
|
|
3832
|
+
var import_dist = require_dist();
|
|
3797
3833
|
const configState = {
|
|
3798
3834
|
config: void 0,
|
|
3799
3835
|
/**
|