@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
|
@@ -12,7 +12,7 @@ import { lstat, readdir as readdir$1, readlink, realpath } from "node:fs/promise
|
|
|
12
12
|
import { EventEmitter } from "node:events";
|
|
13
13
|
import Pe from "node:stream";
|
|
14
14
|
import { StringDecoder } from "node:string_decoder";
|
|
15
|
-
import {
|
|
15
|
+
import { createJiti } from "jiti";
|
|
16
16
|
//#region \0rolldown/runtime.js
|
|
17
17
|
var __create = Object.create;
|
|
18
18
|
var __defProp = Object.defineProperty;
|
|
@@ -7594,6 +7594,39 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
7594
7594
|
exports.cosmiconfigSync = cosmiconfigSync;
|
|
7595
7595
|
}));
|
|
7596
7596
|
//#endregion
|
|
7597
|
+
//#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
|
|
7598
|
+
var TypeScriptCompileError = class _TypeScriptCompileError extends Error {
|
|
7599
|
+
constructor(message) {
|
|
7600
|
+
super(message);
|
|
7601
|
+
this.name = this.constructor.name;
|
|
7602
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
7603
|
+
}
|
|
7604
|
+
static fromError(error) {
|
|
7605
|
+
const message = `TypeScriptLoader failed to compile TypeScript:
|
|
7606
|
+
${error.message}`;
|
|
7607
|
+
const newError = new _TypeScriptCompileError(message);
|
|
7608
|
+
newError.stack = error.stack;
|
|
7609
|
+
return newError;
|
|
7610
|
+
}
|
|
7611
|
+
};
|
|
7612
|
+
//#endregion
|
|
7613
|
+
//#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
|
|
7614
|
+
function TypeScriptLoader(options) {
|
|
7615
|
+
const loader = createJiti("", {
|
|
7616
|
+
interopDefault: true,
|
|
7617
|
+
...options
|
|
7618
|
+
});
|
|
7619
|
+
return async (path, _content) => {
|
|
7620
|
+
try {
|
|
7621
|
+
const result = await loader.import(path);
|
|
7622
|
+
return result.default || result;
|
|
7623
|
+
} catch (error) {
|
|
7624
|
+
if (error instanceof Error) throw TypeScriptCompileError.fromError(error);
|
|
7625
|
+
throw error;
|
|
7626
|
+
}
|
|
7627
|
+
};
|
|
7628
|
+
}
|
|
7629
|
+
//#endregion
|
|
7597
7630
|
//#region src/lib/ruleCommandRegistry.ts
|
|
7598
7631
|
const RULE_COMMANDS = {
|
|
7599
7632
|
apiExposure: {
|