@ariestools/toolchain 8.7.29 → 9.0.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/README.md +94 -0
- package/dist/actions/analyze.d.ts.map +1 -1
- package/dist/actions/api-exposure/apiExposure.d.ts.map +1 -1
- package/dist/actions/build.d.ts.map +1 -1
- package/dist/actions/clean.d.ts.map +1 -1
- package/dist/actions/compile.d.ts +9 -3
- package/dist/actions/compile.d.ts.map +1 -1
- package/dist/actions/copy-assets.d.ts.map +1 -1
- package/dist/actions/dead/dead.d.ts.map +1 -1
- package/dist/actions/deplint/deplint.d.ts.map +1 -1
- package/dist/actions/deplint/deplintPick.d.ts.map +1 -1
- package/dist/actions/deplint/editXyConfigPackages.d.ts +1 -1
- package/dist/actions/deplint/editXyConfigPackages.d.ts.map +1 -1
- package/dist/actions/deplint/implicitDevDependencies.d.ts.map +1 -1
- package/dist/actions/deplint/packageEditor.d.ts.map +1 -1
- package/dist/actions/fix.d.ts.map +1 -1
- package/dist/actions/index.d.ts +1 -1
- package/dist/actions/index.d.ts.map +1 -1
- package/dist/actions/license.d.ts.map +1 -1
- package/dist/actions/lint-config.d.ts +1 -1
- package/dist/actions/lint-config.d.ts.map +1 -1
- package/dist/actions/lint.d.ts.map +1 -1
- package/dist/actions/lintNextWorker.d.ts.map +1 -1
- package/dist/actions/npmignore-gen.d.ts.map +1 -1
- package/dist/actions/package/clean-outputs.d.ts.map +1 -1
- package/dist/actions/package/clean-typescript.d.ts.map +1 -1
- package/dist/actions/package/clean.d.ts.map +1 -1
- package/dist/actions/package/cleanPlan.d.ts +1 -1
- package/dist/actions/package/cleanPlan.d.ts.map +1 -1
- package/dist/actions/package/cleanRules.d.ts +6 -6
- package/dist/actions/package/cleanRules.d.ts.map +1 -1
- package/dist/actions/package/compile/XyConfig.d.ts +21 -0
- package/dist/actions/package/compile/XyConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/buildEntries.d.ts.map +1 -1
- package/dist/actions/package/compile/compile.d.ts.map +1 -1
- package/dist/actions/package/compile/createTypescriptConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/entryOutputName.d.ts +1 -1
- package/dist/actions/package/compile/entryOutputName.d.ts.map +1 -1
- package/dist/actions/package/compile/getCompilerOptions.d.ts.map +1 -1
- package/dist/actions/package/compile/inputs.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithCompileLayout.d.ts +1 -1
- package/dist/actions/package/compile/monolithCompileLayout.d.ts.map +1 -1
- package/dist/actions/package/compile/packageCompileEsbuild.d.ts +2 -2
- package/dist/actions/package/compile/packageCompileEsbuild.d.ts.map +1 -1
- package/dist/actions/package/compile/packageCompileMonolith.d.ts.map +1 -1
- package/dist/actions/package/compile/packageCompileTsc.d.ts +1 -1
- package/dist/actions/package/compile/packageCompileTsc.d.ts.map +1 -1
- package/dist/actions/package/compile/packageCompileTsup.d.ts.map +1 -1
- package/dist/actions/package/compile/packageCompileVendor.d.ts.map +1 -1
- package/dist/actions/package/compile/resolveCompilePlatforms.d.ts.map +1 -1
- package/dist/actions/package/compile/resolvePlatformTypes.d.ts.map +1 -1
- package/dist/actions/package/compile/resolveTscBin.d.ts +46 -0
- package/dist/actions/package/compile/resolveTscBin.d.ts.map +1 -0
- package/dist/actions/package/compile/runTsc.d.ts +14 -1
- package/dist/actions/package/compile/runTsc.d.ts.map +1 -1
- package/dist/actions/package/compile/validateFullPackage.d.ts +2 -1
- package/dist/actions/package/compile/validateFullPackage.d.ts.map +1 -1
- package/dist/actions/package/compile/vendorCompileInternals.d.ts.map +1 -1
- package/dist/actions/package/compile/vendorCompileTypes.d.ts +1 -1
- package/dist/actions/package/compile/vendorCompileTypes.d.ts.map +1 -1
- package/dist/actions/package/copy-assets.d.ts.map +1 -1
- package/dist/actions/package/lint.d.ts.map +1 -1
- package/dist/actions/package/publint.d.ts.map +1 -1
- package/dist/actions/package/recompile.d.ts.map +1 -1
- package/dist/actions/package-lint-pnpm.d.ts +8 -1
- package/dist/actions/package-lint-pnpm.d.ts.map +1 -1
- package/dist/actions/package-lint.d.ts +16 -1
- package/dist/actions/package-lint.d.ts.map +1 -1
- package/dist/actions/packman/lint.d.ts.map +1 -1
- package/dist/actions/publint.d.ts.map +1 -1
- package/dist/actions/publish.d.ts.map +1 -1
- package/dist/actions/rebuild.d.ts.map +1 -1
- package/dist/actions/recompile.d.ts.map +1 -1
- package/dist/actions/reinstall.d.ts.map +1 -1
- package/dist/actions/releaseAgeExcludeScopes.d.ts +1 -1
- package/dist/actions/releaseAgeExcludeScopes.d.ts.map +1 -1
- package/dist/actions/relint.d.ts.map +1 -1
- package/dist/actions/republint.d.ts.map +1 -1
- package/dist/actions/retest.d.ts.map +1 -1
- package/dist/actions/ruleCatalog.d.ts +4 -1
- package/dist/actions/ruleCatalog.d.ts.map +1 -1
- package/dist/actions/ruleRunner.d.ts +2 -1
- package/dist/actions/ruleRunner.d.ts.map +1 -1
- package/dist/actions/secure/dependabot.d.ts +22 -0
- package/dist/actions/secure/dependabot.d.ts.map +1 -0
- package/dist/actions/secure/dependabotRules.d.ts +9 -0
- package/dist/actions/secure/dependabotRules.d.ts.map +1 -0
- package/dist/actions/secure/deps.d.ts +18 -0
- package/dist/actions/secure/deps.d.ts.map +1 -0
- package/dist/actions/secure/index.d.ts +5 -0
- package/dist/actions/secure/index.d.ts.map +1 -0
- package/dist/actions/secure/secure.d.ts +16 -0
- package/dist/actions/secure/secure.d.ts.map +1 -0
- package/dist/actions/secure.d.ts.map +1 -1
- package/dist/actions/skills/defaults.d.ts +2 -2
- package/dist/actions/skills/defaults.d.ts.map +1 -1
- package/dist/actions/skills/detectProfile.d.ts.map +1 -1
- package/dist/actions/skills/installed.d.ts +1 -1
- package/dist/actions/skills/installed.d.ts.map +1 -1
- package/dist/actions/skills/lint.d.ts.map +1 -1
- package/dist/actions/skills/passthrough.d.ts.map +1 -1
- package/dist/actions/skills/skillRules.d.ts.map +1 -1
- package/dist/actions/skills/updo.d.ts.map +1 -1
- package/dist/actions/skills/versions.d.ts.map +1 -1
- package/dist/actions/test.d.ts.map +1 -1
- package/dist/actions/tsc-validate/tscValidate.d.ts.map +1 -1
- package/dist/actions/updo.d.ts.map +1 -1
- package/dist/actions/work/github.d.ts +5 -10
- package/dist/actions/work/github.d.ts.map +1 -1
- package/dist/actions/work/helpers.d.ts +1 -1
- package/dist/actions/work/helpers.d.ts.map +1 -1
- package/dist/actions/work/id.d.ts.map +1 -1
- package/dist/actions/work/index.d.ts.map +1 -1
- package/dist/actions/work/inline.d.ts.map +1 -1
- package/dist/actions/work/lifecycle.d.ts.map +1 -1
- package/dist/actions/work/lint.d.ts.map +1 -1
- package/dist/actions/work/list.d.ts.map +1 -1
- package/dist/actions/work/move.d.ts.map +1 -1
- package/dist/actions/work/priority.d.ts.map +1 -1
- package/dist/actions/work/queue.d.ts.map +1 -1
- package/dist/actions/work/render.d.ts.map +1 -1
- package/dist/actions/work/result.d.ts.map +1 -1
- package/dist/actions/work/schema.d.ts +3 -3
- package/dist/actions/work/schema.d.ts.map +1 -1
- package/dist/actions/work/store.d.ts.map +1 -1
- package/dist/actions/work/sync.d.ts.map +1 -1
- package/dist/actions/work/workspace.d.ts +1 -1
- package/dist/actions/work/workspace.d.ts.map +1 -1
- package/dist/bin/package/build.mjs +557 -437
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/clean.mjs +36 -30
- package/dist/bin/package/clean.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +141 -47
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/publint.mjs +395 -369
- package/dist/bin/package/publint.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +149 -49
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/package/sync-layout.mjs +28 -28
- package/dist/bin/package/sync-layout.mjs.map +1 -1
- package/dist/bin/xy.mjs +1415 -739
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/lib/aliasSpec.d.ts +28 -0
- package/dist/lib/aliasSpec.d.ts.map +1 -0
- package/dist/lib/checkResult.d.ts +1 -1
- package/dist/lib/checkResult.d.ts.map +1 -1
- package/dist/lib/createBuildConfig.d.ts +1 -1
- package/dist/lib/createBuildConfig.d.ts.map +1 -1
- package/dist/lib/defaultBuildConfig.d.ts.map +1 -1
- package/dist/lib/deleteGlob.d.ts.map +1 -1
- package/dist/lib/dependencies/DuplicateDetector.d.ts.map +1 -1
- package/dist/lib/dependencies/detectDuplicateDependencies.d.ts.map +1 -1
- package/dist/lib/file/fileLines.d.ts.map +1 -1
- package/dist/lib/file/tryReadFileSync.d.ts.map +1 -1
- package/dist/lib/generateIgnoreFiles.d.ts.map +1 -1
- package/dist/lib/github/index.d.ts +2 -0
- package/dist/lib/github/index.d.ts.map +1 -0
- package/dist/lib/github/runner.d.ts +25 -0
- package/dist/lib/github/runner.d.ts.map +1 -0
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/jsonFormatters.d.ts.map +1 -1
- package/dist/lib/latestVersions.d.ts +5 -5
- package/dist/lib/latestVersions.d.ts.map +1 -1
- package/dist/lib/loadConfig.d.ts.map +1 -1
- package/dist/lib/parsedPackageJson.d.ts.map +1 -1
- package/dist/lib/processEx.d.ts.map +1 -1
- package/dist/lib/ruleCommandRegistry.d.ts +61 -46
- package/dist/lib/ruleCommandRegistry.d.ts.map +1 -1
- package/dist/lib/runSteps.d.ts.map +1 -1
- package/dist/lib/runStepsAsync.d.ts.map +1 -1
- package/dist/lib/runXy.d.ts.map +1 -1
- package/dist/lib/runXyWithWarning.d.ts.map +1 -1
- package/dist/lib/safeExit.d.ts.map +1 -1
- package/dist/lib/secure/dependabot/fetchDependabotAlerts.d.ts +12 -0
- package/dist/lib/secure/dependabot/fetchDependabotAlerts.d.ts.map +1 -0
- package/dist/lib/secure/dependabot/index.d.ts +6 -0
- package/dist/lib/secure/dependabot/index.d.ts.map +1 -0
- package/dist/lib/secure/dependabot/interfaces.d.ts +49 -0
- package/dist/lib/secure/dependabot/interfaces.d.ts.map +1 -0
- package/dist/lib/secure/dependabot/renderDependabotAlerts.d.ts +4 -0
- package/dist/lib/secure/dependabot/renderDependabotAlerts.d.ts.map +1 -0
- package/dist/lib/secure/dependabot/summarizeDependabotAlerts.d.ts +5 -0
- package/dist/lib/secure/dependabot/summarizeDependabotAlerts.d.ts.map +1 -0
- package/dist/lib/secure/dependabot/vulnerabilityAlerts.d.ts +21 -0
- package/dist/lib/secure/dependabot/vulnerabilityAlerts.d.ts.map +1 -0
- package/dist/lib/secure/index.d.ts +1 -0
- package/dist/lib/secure/index.d.ts.map +1 -1
- package/dist/lib/secure/renderSecurityAudit.d.ts +4 -0
- package/dist/lib/secure/renderSecurityAudit.d.ts.map +1 -1
- package/dist/lib/string/empty.d.ts.map +1 -1
- package/dist/lib/string/union.d.ts.map +1 -1
- package/dist/lib/updo/collectWorkspaceDeps.d.ts.map +1 -1
- package/dist/lib/updo/index.d.ts +1 -0
- package/dist/lib/updo/index.d.ts.map +1 -1
- package/dist/lib/updo/interactiveSelect.d.ts.map +1 -1
- package/dist/lib/updo/interfaces.d.ts +20 -0
- package/dist/lib/updo/interfaces.d.ts.map +1 -1
- package/dist/lib/updo/majorCeiling.d.ts +21 -0
- package/dist/lib/updo/majorCeiling.d.ts.map +1 -0
- package/dist/lib/updo/resolveVersions.d.ts.map +1 -1
- package/dist/lib/updo/runUpdo.d.ts.map +1 -1
- package/dist/lib/withErrnoException.d.ts.map +1 -1
- package/dist/lib/withError.d.ts.map +1 -1
- package/dist/lib/yarn/isYarnVersionOrGreater.d.ts.map +1 -1
- package/dist/lib/yarn/workspace/yarnWorkspace.d.ts.map +1 -1
- package/dist/pm/bunPackageManager.d.ts +1 -1
- package/dist/pm/bunPackageManager.d.ts.map +1 -1
- package/dist/pm/npmPackageManager.d.ts +1 -1
- package/dist/pm/npmPackageManager.d.ts.map +1 -1
- package/dist/pm/pnpmPackageManager.d.ts +1 -1
- package/dist/pm/pnpmPackageManager.d.ts.map +1 -1
- package/dist/pm/yarnPackageManager.d.ts +1 -1
- package/dist/pm/yarnPackageManager.d.ts.map +1 -1
- package/dist/xy/build/index.d.ts.map +1 -1
- package/dist/xy/common/index.d.ts.map +1 -1
- package/dist/xy/common/secure/dependabotCommand.d.ts +3 -0
- package/dist/xy/common/secure/dependabotCommand.d.ts.map +1 -0
- package/dist/xy/common/secure/depsCommand.d.ts +3 -0
- package/dist/xy/common/secure/depsCommand.d.ts.map +1 -0
- package/dist/xy/common/secure/index.d.ts +5 -0
- package/dist/xy/common/secure/index.d.ts.map +1 -0
- package/dist/xy/common/work/options.d.ts.map +1 -1
- package/dist/xy/deploy/index.d.ts.map +1 -1
- package/dist/xy/install/cleanCommand.d.ts.map +1 -1
- package/dist/xy/install/index.d.ts.map +1 -1
- package/dist/xy/lint/index.d.ts.map +1 -1
- package/dist/xy/param.d.ts.map +1 -1
- package/dist/xy/react/index.d.ts.map +1 -1
- package/dist/xy/xy.d.ts +2 -2
- package/dist/xy/xy.d.ts.map +1 -1
- package/package.json +5 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import Be, { createRequire } from "node:module";
|
|
3
|
-
import process$1, { cwd } from "node:process";
|
|
3
|
+
import process$1, { cwd, execPath } from "node:process";
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import tty from "node:tty";
|
|
6
6
|
import * as xi from "node:fs";
|
|
@@ -4365,7 +4365,7 @@ function INIT_CWD() {
|
|
|
4365
4365
|
return process.env.INIT_CWD ?? process.cwd();
|
|
4366
4366
|
}
|
|
4367
4367
|
//#endregion
|
|
4368
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4368
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/common.js
|
|
4369
4369
|
var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4370
4370
|
function isNothing(subject) {
|
|
4371
4371
|
return typeof subject === "undefined" || subject === null;
|
|
@@ -4404,7 +4404,7 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4404
4404
|
module.exports.extend = extend;
|
|
4405
4405
|
}));
|
|
4406
4406
|
//#endregion
|
|
4407
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4407
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/exception.js
|
|
4408
4408
|
var require_exception = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4409
4409
|
function formatError(exception, compact) {
|
|
4410
4410
|
let where = "";
|
|
@@ -4432,7 +4432,7 @@ var require_exception = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4432
4432
|
module.exports = YAMLException;
|
|
4433
4433
|
}));
|
|
4434
4434
|
//#endregion
|
|
4435
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4435
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/snippet.js
|
|
4436
4436
|
var require_snippet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4437
4437
|
const common = require_common();
|
|
4438
4438
|
function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
|
|
@@ -4494,7 +4494,7 @@ var require_snippet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4494
4494
|
module.exports = makeSnippet;
|
|
4495
4495
|
}));
|
|
4496
4496
|
//#endregion
|
|
4497
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4497
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type.js
|
|
4498
4498
|
var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4499
4499
|
const YAMLException = require_exception();
|
|
4500
4500
|
const TYPE_CONSTRUCTOR_OPTIONS = [
|
|
@@ -4549,7 +4549,7 @@ var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4549
4549
|
module.exports = Type;
|
|
4550
4550
|
}));
|
|
4551
4551
|
//#endregion
|
|
4552
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4552
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema.js
|
|
4553
4553
|
var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4554
4554
|
const YAMLException = require_exception();
|
|
4555
4555
|
const Type = require_type();
|
|
@@ -4617,7 +4617,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4617
4617
|
module.exports = Schema;
|
|
4618
4618
|
}));
|
|
4619
4619
|
//#endregion
|
|
4620
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4620
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/str.js
|
|
4621
4621
|
var require_str = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4622
4622
|
module.exports = new (require_type())("tag:yaml.org,2002:str", {
|
|
4623
4623
|
kind: "scalar",
|
|
@@ -4627,7 +4627,7 @@ var require_str = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4627
4627
|
});
|
|
4628
4628
|
}));
|
|
4629
4629
|
//#endregion
|
|
4630
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4630
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/seq.js
|
|
4631
4631
|
var require_seq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4632
4632
|
module.exports = new (require_type())("tag:yaml.org,2002:seq", {
|
|
4633
4633
|
kind: "sequence",
|
|
@@ -4637,7 +4637,7 @@ var require_seq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4637
4637
|
});
|
|
4638
4638
|
}));
|
|
4639
4639
|
//#endregion
|
|
4640
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4640
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/map.js
|
|
4641
4641
|
var require_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4642
4642
|
module.exports = new (require_type())("tag:yaml.org,2002:map", {
|
|
4643
4643
|
kind: "mapping",
|
|
@@ -4647,7 +4647,7 @@ var require_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4647
4647
|
});
|
|
4648
4648
|
}));
|
|
4649
4649
|
//#endregion
|
|
4650
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4650
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema/failsafe.js
|
|
4651
4651
|
var require_failsafe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4652
4652
|
module.exports = new (require_schema())({ explicit: [
|
|
4653
4653
|
require_str(),
|
|
@@ -4656,7 +4656,7 @@ var require_failsafe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4656
4656
|
] });
|
|
4657
4657
|
}));
|
|
4658
4658
|
//#endregion
|
|
4659
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4659
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/null.js
|
|
4660
4660
|
var require_null = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4661
4661
|
const Type = require_type();
|
|
4662
4662
|
function resolveYamlNull(data) {
|
|
@@ -4696,7 +4696,7 @@ var require_null = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4696
4696
|
});
|
|
4697
4697
|
}));
|
|
4698
4698
|
//#endregion
|
|
4699
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4699
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/bool.js
|
|
4700
4700
|
var require_bool = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4701
4701
|
const Type = require_type();
|
|
4702
4702
|
function resolveYamlBoolean(data) {
|
|
@@ -4730,7 +4730,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4730
4730
|
});
|
|
4731
4731
|
}));
|
|
4732
4732
|
//#endregion
|
|
4733
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4733
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/int.js
|
|
4734
4734
|
var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4735
4735
|
const common = require_common();
|
|
4736
4736
|
const Type = require_type();
|
|
@@ -4839,7 +4839,7 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4839
4839
|
});
|
|
4840
4840
|
}));
|
|
4841
4841
|
//#endregion
|
|
4842
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4842
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/float.js
|
|
4843
4843
|
var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4844
4844
|
const common = require_common();
|
|
4845
4845
|
const Type = require_type();
|
|
@@ -4893,7 +4893,7 @@ var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4893
4893
|
});
|
|
4894
4894
|
}));
|
|
4895
4895
|
//#endregion
|
|
4896
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4896
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema/json.js
|
|
4897
4897
|
var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4898
4898
|
module.exports = require_failsafe().extend({ implicit: [
|
|
4899
4899
|
require_null(),
|
|
@@ -4903,12 +4903,12 @@ var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4903
4903
|
] });
|
|
4904
4904
|
}));
|
|
4905
4905
|
//#endregion
|
|
4906
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4906
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema/core.js
|
|
4907
4907
|
var require_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4908
4908
|
module.exports = require_json();
|
|
4909
4909
|
}));
|
|
4910
4910
|
//#endregion
|
|
4911
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4911
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/timestamp.js
|
|
4912
4912
|
var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4913
4913
|
const Type = require_type();
|
|
4914
4914
|
const YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
|
|
@@ -4959,7 +4959,7 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4959
4959
|
});
|
|
4960
4960
|
}));
|
|
4961
4961
|
//#endregion
|
|
4962
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4962
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/merge.js
|
|
4963
4963
|
var require_merge$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4964
4964
|
const Type = require_type();
|
|
4965
4965
|
function resolveYamlMerge(data) {
|
|
@@ -4971,7 +4971,7 @@ var require_merge$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4971
4971
|
});
|
|
4972
4972
|
}));
|
|
4973
4973
|
//#endregion
|
|
4974
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4974
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/binary.js
|
|
4975
4975
|
var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4976
4976
|
const Type = require_type();
|
|
4977
4977
|
const BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
@@ -5058,14 +5058,14 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5058
5058
|
});
|
|
5059
5059
|
}));
|
|
5060
5060
|
//#endregion
|
|
5061
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5061
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/omap.js
|
|
5062
5062
|
var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5063
5063
|
const Type = require_type();
|
|
5064
5064
|
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
5065
5065
|
const _toString = Object.prototype.toString;
|
|
5066
5066
|
function resolveYamlOmap(data) {
|
|
5067
5067
|
if (data === null) return true;
|
|
5068
|
-
const objectKeys =
|
|
5068
|
+
const objectKeys = {};
|
|
5069
5069
|
const object = data;
|
|
5070
5070
|
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
5071
5071
|
const pair = object[index];
|
|
@@ -5077,8 +5077,8 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5077
5077
|
else return false;
|
|
5078
5078
|
}
|
|
5079
5079
|
if (!pairHasKey) return false;
|
|
5080
|
-
if (
|
|
5081
|
-
|
|
5080
|
+
if (_hasOwnProperty.call(objectKeys, pairKey)) return false;
|
|
5081
|
+
Object.defineProperty(objectKeys, pairKey, { value: true });
|
|
5082
5082
|
}
|
|
5083
5083
|
return true;
|
|
5084
5084
|
}
|
|
@@ -5092,7 +5092,7 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5092
5092
|
});
|
|
5093
5093
|
}));
|
|
5094
5094
|
//#endregion
|
|
5095
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5095
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/pairs.js
|
|
5096
5096
|
var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5097
5097
|
const Type = require_type();
|
|
5098
5098
|
const _toString = Object.prototype.toString;
|
|
@@ -5127,7 +5127,7 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5127
5127
|
});
|
|
5128
5128
|
}));
|
|
5129
5129
|
//#endregion
|
|
5130
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5130
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/set.js
|
|
5131
5131
|
var require_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5132
5132
|
const Type = require_type();
|
|
5133
5133
|
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -5149,7 +5149,7 @@ var require_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5149
5149
|
});
|
|
5150
5150
|
}));
|
|
5151
5151
|
//#endregion
|
|
5152
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5152
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema/default.js
|
|
5153
5153
|
var require_default = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5154
5154
|
module.exports = require_core().extend({
|
|
5155
5155
|
implicit: [require_timestamp(), require_merge$1()],
|
|
@@ -5162,7 +5162,7 @@ var require_default = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5162
5162
|
});
|
|
5163
5163
|
}));
|
|
5164
5164
|
//#endregion
|
|
5165
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5165
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/loader.js
|
|
5166
5166
|
var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5167
5167
|
const common = require_common();
|
|
5168
5168
|
const YAMLException = require_exception();
|
|
@@ -6190,7 +6190,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6190
6190
|
module.exports.load = load;
|
|
6191
6191
|
}));
|
|
6192
6192
|
//#endregion
|
|
6193
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
6193
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/dumper.js
|
|
6194
6194
|
var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6195
6195
|
const common = require_common();
|
|
6196
6196
|
const YAMLException = require_exception();
|
|
@@ -6689,7 +6689,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6689
6689
|
module.exports.dump = dump;
|
|
6690
6690
|
}));
|
|
6691
6691
|
//#endregion
|
|
6692
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
6692
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/index.js
|
|
6693
6693
|
var require_js_yaml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6694
6694
|
const loader = require_loader();
|
|
6695
6695
|
const dumper = require_dumper();
|
|
@@ -7640,7 +7640,7 @@ const RULE_COMMANDS = {
|
|
|
7640
7640
|
},
|
|
7641
7641
|
check: {
|
|
7642
7642
|
command: "check",
|
|
7643
|
-
includeInRoot:
|
|
7643
|
+
includeInRoot: false,
|
|
7644
7644
|
title: "Check Rules"
|
|
7645
7645
|
},
|
|
7646
7646
|
clean: {
|
|
@@ -7660,6 +7660,12 @@ const RULE_COMMANDS = {
|
|
|
7660
7660
|
includeInRoot: true,
|
|
7661
7661
|
title: "Dead Rules"
|
|
7662
7662
|
},
|
|
7663
|
+
dependabot: {
|
|
7664
|
+
command: "secure dependabot",
|
|
7665
|
+
configKey: "dependabot",
|
|
7666
|
+
includeInRoot: true,
|
|
7667
|
+
title: "Dependabot Rules"
|
|
7668
|
+
},
|
|
7663
7669
|
deplint: {
|
|
7664
7670
|
command: "deplint",
|
|
7665
7671
|
configKey: "deplint",
|
|
@@ -7681,7 +7687,7 @@ const RULE_COMMANDS = {
|
|
|
7681
7687
|
lint: {
|
|
7682
7688
|
aliases: ["relint"],
|
|
7683
7689
|
command: "lint",
|
|
7684
|
-
includeInRoot:
|
|
7690
|
+
includeInRoot: false,
|
|
7685
7691
|
title: "Lint Rules"
|
|
7686
7692
|
},
|
|
7687
7693
|
lintLint: {
|
|
@@ -11143,16 +11149,88 @@ const warnDeprecatedEmptyObjectTargets = (targets) => {
|
|
|
11143
11149
|
}
|
|
11144
11150
|
};
|
|
11145
11151
|
//#endregion
|
|
11152
|
+
//#region src/actions/package/compile/resolveTscBin.ts
|
|
11153
|
+
/**
|
|
11154
|
+
* Default `package.json` key the native compiler is expected under:
|
|
11155
|
+
* `"typescript-native": "npm:typescript@~7.0.2"`. Override per package with
|
|
11156
|
+
* `compile.nativePackage`.
|
|
11157
|
+
*/
|
|
11158
|
+
const DEFAULT_NATIVE_PACKAGE = "typescript-native";
|
|
11159
|
+
const readTscBinEntry = (packageJsonPath) => {
|
|
11160
|
+
const { bin } = JSON.parse(fs.readFileSync(packageJsonPath, "utf8"));
|
|
11161
|
+
if (typeof bin === "string") return bin;
|
|
11162
|
+
return bin?.tsc;
|
|
11163
|
+
};
|
|
11164
|
+
/**
|
|
11165
|
+
* Resolves a compiler package's `tsc` entry script from `fromDir`.
|
|
11166
|
+
*
|
|
11167
|
+
* We deliberately do not go through `node_modules/.bin/tsc`. Both the API
|
|
11168
|
+
* package (`typescript@6`) and the native compiler (`typescript@7`, installed
|
|
11169
|
+
* under an alias) declare a `tsc` bin, so the `.bin` shim is whichever one the
|
|
11170
|
+
* package manager linked last — observed to be the alias, silently, in both
|
|
11171
|
+
* declaration orders. Resolving the package explicitly makes the choice the
|
|
11172
|
+
* caller's rather than the installer's.
|
|
11173
|
+
*/
|
|
11174
|
+
const resolveTscBin = (packageName, fromDir) => {
|
|
11175
|
+
try {
|
|
11176
|
+
const packageJsonPath = createRequire(PATH.join(fromDir, "package.json")).resolve(`${packageName}/package.json`);
|
|
11177
|
+
const binEntry = readTscBinEntry(packageJsonPath);
|
|
11178
|
+
if (binEntry === void 0) return void 0;
|
|
11179
|
+
return {
|
|
11180
|
+
binPath: PATH.resolve(PATH.dirname(packageJsonPath), binEntry),
|
|
11181
|
+
packageName
|
|
11182
|
+
};
|
|
11183
|
+
} catch {
|
|
11184
|
+
return;
|
|
11185
|
+
}
|
|
11186
|
+
};
|
|
11187
|
+
//#endregion
|
|
11146
11188
|
//#region src/actions/package/compile/runTsc.ts
|
|
11147
|
-
const
|
|
11189
|
+
const resolvedCache = /* @__PURE__ */ new Map();
|
|
11190
|
+
const resolveCached = (packageName, fromDir) => {
|
|
11191
|
+
const key = `${packageName}\0${fromDir}`;
|
|
11192
|
+
if (resolvedCache.has(key)) return resolvedCache.get(key);
|
|
11193
|
+
const resolved = resolveTscBin(packageName, fromDir);
|
|
11194
|
+
resolvedCache.set(key, resolved);
|
|
11195
|
+
return resolved;
|
|
11196
|
+
};
|
|
11197
|
+
const missingNativeMessage = (packageName) => [
|
|
11198
|
+
`Compile: compile.compiler is "native" but "${packageName}" is not installed.`,
|
|
11199
|
+
" Add it as an alias so it does not collide with the compiler API package:",
|
|
11200
|
+
` "${packageName}": "npm:typescript@~7.0.2"`,
|
|
11201
|
+
" Keep \"typescript\" pinned to 6.x — ESLint and the xy analyzers load the compiler API from it."
|
|
11202
|
+
].join("\n");
|
|
11203
|
+
/**
|
|
11204
|
+
* Runs `tsc -p <configPath>` against an explicitly resolved compiler.
|
|
11205
|
+
*
|
|
11206
|
+
* `native` selects the Go compiler (`typescript@7`) installed under an alias;
|
|
11207
|
+
* it is resolved from the package being compiled, not from `PATH`, because
|
|
11208
|
+
* both implementations declare a `tsc` bin and the `.bin` shim silently
|
|
11209
|
+
* resolves to whichever the package manager linked last.
|
|
11210
|
+
*/
|
|
11211
|
+
const runTsc = (configPath, options = {}) => {
|
|
11212
|
+
const { compiler = "typescript", extraArgs = [], isVerbose = false, nativePackage = DEFAULT_NATIVE_PACKAGE } = options;
|
|
11213
|
+
const pkg = cwd();
|
|
11148
11214
|
const args = [
|
|
11149
11215
|
"-p",
|
|
11150
11216
|
configPath,
|
|
11151
11217
|
...extraArgs
|
|
11152
11218
|
];
|
|
11153
|
-
|
|
11154
|
-
const
|
|
11155
|
-
|
|
11219
|
+
const packageName = compiler === "native" ? nativePackage : "typescript";
|
|
11220
|
+
const resolved = resolveCached(packageName, pkg);
|
|
11221
|
+
if (resolved === void 0 && compiler === "native") {
|
|
11222
|
+
console.error(chalk.red(missingNativeMessage(packageName)));
|
|
11223
|
+
return 1;
|
|
11224
|
+
}
|
|
11225
|
+
if (isVerbose) {
|
|
11226
|
+
const label = resolved === void 0 ? "tsc (PATH)" : `${resolved.packageName} ${resolved.binPath}`;
|
|
11227
|
+
console.log(chalk.gray(`tsc [${label}] ${args.join(" ")}`));
|
|
11228
|
+
}
|
|
11229
|
+
const result = resolved === void 0 ? spawnSync("tsc", args, {
|
|
11230
|
+
cwd: pkg,
|
|
11231
|
+
stdio: "inherit"
|
|
11232
|
+
}) : spawnSync(execPath, [resolved.binPath, ...args], {
|
|
11233
|
+
cwd: pkg,
|
|
11156
11234
|
stdio: "inherit"
|
|
11157
11235
|
});
|
|
11158
11236
|
return result.status ?? (result.error === void 0 ? 0 : 1);
|
|
@@ -11205,7 +11283,7 @@ const createFullValidationConfig = (pkg, tsconfigPath) => {
|
|
|
11205
11283
|
diagnostics: parsed.errors
|
|
11206
11284
|
};
|
|
11207
11285
|
};
|
|
11208
|
-
const validateFullPackage = (pkg, isVerbose = false) => {
|
|
11286
|
+
const validateFullPackage = (pkg, isVerbose = false, tsc = {}) => {
|
|
11209
11287
|
const tsconfigPath = PATH.resolve(pkg, "tsconfig.json");
|
|
11210
11288
|
if (!fs.existsSync(tsconfigPath)) {
|
|
11211
11289
|
console.warn(chalk.yellow("Compile:Validate skipped — tsconfig.json not found"));
|
|
@@ -11217,7 +11295,10 @@ const validateFullPackage = (pkg, isVerbose = false) => {
|
|
|
11217
11295
|
console.error(formatTsConfigDiagnostics(diagnostics, pkg));
|
|
11218
11296
|
return 1;
|
|
11219
11297
|
}
|
|
11220
|
-
const result = runTsc(configPath,
|
|
11298
|
+
const result = runTsc(configPath, {
|
|
11299
|
+
...tsc,
|
|
11300
|
+
isVerbose
|
|
11301
|
+
});
|
|
11221
11302
|
if (result !== 0) console.error(chalk.red(`Compile:Validate failed (tsc exit code ${result})`));
|
|
11222
11303
|
return result;
|
|
11223
11304
|
};
|
|
@@ -11391,7 +11472,7 @@ const resolvePlatformEsbuildOptions = (value) => {
|
|
|
11391
11472
|
const getRootOutDir = (options) => {
|
|
11392
11473
|
return options.outDir ?? options.outdir ?? "dist";
|
|
11393
11474
|
};
|
|
11394
|
-
const compileFolder = async (srcDir, entries, options, platform, outDir, shouldCheckTypes, emitDeclarations, entryMode, isVerbose) => {
|
|
11475
|
+
const compileFolder = async (srcDir, entries, options, platform, outDir, shouldCheckTypes, emitDeclarations, entryMode, isVerbose, tsc = {}) => {
|
|
11395
11476
|
const pkg = cwd();
|
|
11396
11477
|
if (isVerbose ?? false) console.log(chalk.gray(`compileFolder [${srcDir}, ${outDir}]`));
|
|
11397
11478
|
if (!fs.existsSync(PATH.resolve(pkg, srcDir))) {
|
|
@@ -11404,7 +11485,10 @@ const compileFolder = async (srcDir, entries, options, platform, outDir, shouldC
|
|
|
11404
11485
|
}
|
|
11405
11486
|
const checkConfig = writeTypescriptConfig(pkg, platform, srcDir, false);
|
|
11406
11487
|
if (shouldCheckTypes) {
|
|
11407
|
-
const checkResult = runTsc(checkConfig,
|
|
11488
|
+
const checkResult = runTsc(checkConfig, {
|
|
11489
|
+
...tsc,
|
|
11490
|
+
isVerbose
|
|
11491
|
+
});
|
|
11408
11492
|
if (checkResult !== 0) {
|
|
11409
11493
|
console.error(chalk.red(`Compile:Validation had ${checkResult} errors`));
|
|
11410
11494
|
return checkResult;
|
|
@@ -11437,7 +11521,7 @@ const compileFolder = async (srcDir, entries, options, platform, outDir, shouldC
|
|
|
11437
11521
|
if (isVerbose ?? false) console.log(chalk.cyan(`ESBUILD:build:stop [${srcDir}]`));
|
|
11438
11522
|
return 0;
|
|
11439
11523
|
};
|
|
11440
|
-
function createDeclarationEmitter(isVerbose = false) {
|
|
11524
|
+
function createDeclarationEmitter(isVerbose = false, tsc = {}) {
|
|
11441
11525
|
const declarationPromises = /* @__PURE__ */ new Map();
|
|
11442
11526
|
return async (srcDir, rootOutDir, platform, outDir) => {
|
|
11443
11527
|
const key = `${srcDir}\0${rootOutDir}`;
|
|
@@ -11447,7 +11531,10 @@ function createDeclarationEmitter(isVerbose = false) {
|
|
|
11447
11531
|
const dtsConfig = writeTypescriptConfig(cwd(), platform, srcDir, true, outDir);
|
|
11448
11532
|
return {
|
|
11449
11533
|
outDir,
|
|
11450
|
-
result: runTsc(dtsConfig,
|
|
11534
|
+
result: runTsc(dtsConfig, {
|
|
11535
|
+
...tsc,
|
|
11536
|
+
isVerbose
|
|
11537
|
+
})
|
|
11451
11538
|
};
|
|
11452
11539
|
})();
|
|
11453
11540
|
declarationPromises.set(key, promise);
|
|
@@ -11468,10 +11555,14 @@ function resolveCompileMode(config, mode) {
|
|
|
11468
11555
|
shouldEmit,
|
|
11469
11556
|
shouldRunFolderChecks: !shouldRunFullValidation && !(mode.emitOnly ?? false),
|
|
11470
11557
|
shouldRunFullValidation,
|
|
11558
|
+
tsc: {
|
|
11559
|
+
compiler: compile?.compiler,
|
|
11560
|
+
nativePackage: compile?.nativePackage
|
|
11561
|
+
},
|
|
11471
11562
|
isVerbose
|
|
11472
11563
|
};
|
|
11473
11564
|
}
|
|
11474
|
-
async function compilePlatformEntries({ shouldCheckTypes, compile, emitDeclarations, entries, legacyTsupOptions, platform, platformEsbuild, isVerbose }) {
|
|
11565
|
+
async function compilePlatformEntries({ shouldCheckTypes, compile, emitDeclarations, entries, legacyTsupOptions, platform, platformEsbuild, isVerbose, tsc }) {
|
|
11475
11566
|
return (await Promise.all(Object.entries(entries).map(async ([srcDir, options]) => {
|
|
11476
11567
|
const rootOutDir = getRootOutDir(options);
|
|
11477
11568
|
const outDir = `${rootOutDir}/${platform}`;
|
|
@@ -11484,14 +11575,14 @@ async function compilePlatformEntries({ shouldCheckTypes, compile, emitDeclarati
|
|
|
11484
11575
|
compile?.esbuild?.options ?? {},
|
|
11485
11576
|
options,
|
|
11486
11577
|
{ outdir: outDir }
|
|
11487
|
-
], isVerbose), platform, outDir, shouldCheckTypes, () => emitDeclarations(srcDir, rootOutDir, platform, outDir), entryMode, isVerbose);
|
|
11578
|
+
], isVerbose), platform, outDir, shouldCheckTypes, () => emitDeclarations(srcDir, rootOutDir, platform, outDir), entryMode, isVerbose, tsc);
|
|
11488
11579
|
}))).reduce((prev, value) => prev + value, 0);
|
|
11489
11580
|
}
|
|
11490
11581
|
const packageCompileEsbuild = async (config, mode = {}) => {
|
|
11491
|
-
const { compile, shouldEmit, shouldRunFolderChecks, shouldRunFullValidation, isVerbose } = resolveCompileMode(config, mode);
|
|
11492
|
-
if (isVerbose) console.log(
|
|
11582
|
+
const { compile, shouldEmit, shouldRunFolderChecks, shouldRunFullValidation, tsc, isVerbose } = resolveCompileMode(config, mode);
|
|
11583
|
+
if (isVerbose) console.log(`Compiling with esbuild and ${tsc.compiler === "native" ? "the native tsc" : "tsc"}`);
|
|
11493
11584
|
if (shouldRunFullValidation) {
|
|
11494
|
-
const validateResult = validateFullPackage(cwd(), isVerbose);
|
|
11585
|
+
const validateResult = validateFullPackage(cwd(), isVerbose, tsc);
|
|
11495
11586
|
if (validateResult !== 0) return validateResult;
|
|
11496
11587
|
}
|
|
11497
11588
|
if (!shouldEmit) return 0;
|
|
@@ -11504,7 +11595,7 @@ const packageCompileEsbuild = async (config, mode = {}) => {
|
|
|
11504
11595
|
const browserEsbuild = resolvePlatformEsbuildOptions(compile?.browser);
|
|
11505
11596
|
const neutralEsbuild = resolvePlatformEsbuildOptions(compile?.neutral);
|
|
11506
11597
|
const legacyTsupOptions = compile?.tsup?.options;
|
|
11507
|
-
const emitDeclarations = createDeclarationEmitter(isVerbose);
|
|
11598
|
+
const emitDeclarations = createDeclarationEmitter(isVerbose, tsc);
|
|
11508
11599
|
const [nodeErrors, browserErrors, neutralErrors] = await Promise.all([
|
|
11509
11600
|
compilePlatformEntries({
|
|
11510
11601
|
shouldCheckTypes: shouldRunFolderChecks,
|
|
@@ -11514,6 +11605,7 @@ const packageCompileEsbuild = async (config, mode = {}) => {
|
|
|
11514
11605
|
legacyTsupOptions,
|
|
11515
11606
|
platform: "node",
|
|
11516
11607
|
platformEsbuild: nodeEsbuild,
|
|
11608
|
+
tsc,
|
|
11517
11609
|
isVerbose
|
|
11518
11610
|
}),
|
|
11519
11611
|
compilePlatformEntries({
|
|
@@ -11524,6 +11616,7 @@ const packageCompileEsbuild = async (config, mode = {}) => {
|
|
|
11524
11616
|
legacyTsupOptions,
|
|
11525
11617
|
platform: "browser",
|
|
11526
11618
|
platformEsbuild: browserEsbuild,
|
|
11619
|
+
tsc,
|
|
11527
11620
|
isVerbose
|
|
11528
11621
|
}),
|
|
11529
11622
|
compilePlatformEntries({
|
|
@@ -11534,6 +11627,7 @@ const packageCompileEsbuild = async (config, mode = {}) => {
|
|
|
11534
11627
|
legacyTsupOptions,
|
|
11535
11628
|
platform: "neutral",
|
|
11536
11629
|
platformEsbuild: neutralEsbuild,
|
|
11630
|
+
tsc,
|
|
11537
11631
|
isVerbose
|
|
11538
11632
|
})
|
|
11539
11633
|
]);
|
|
@@ -12351,7 +12445,10 @@ const packageCompileMonolith = async (config, mode = {}) => {
|
|
|
12351
12445
|
if (isVerbose) console.log(chalk.gray("monolith layout synced"));
|
|
12352
12446
|
}
|
|
12353
12447
|
if (shouldRunFullValidation) {
|
|
12354
|
-
const validateResult = validateFullPackage(packageDir, isVerbose
|
|
12448
|
+
const validateResult = validateFullPackage(packageDir, isVerbose, {
|
|
12449
|
+
compiler: compile.compiler,
|
|
12450
|
+
nativePackage: compile.nativePackage
|
|
12451
|
+
});
|
|
12355
12452
|
if (validateResult !== 0) return validateResult;
|
|
12356
12453
|
}
|
|
12357
12454
|
if (!shouldEmit) return 0;
|
|
@@ -12892,7 +12989,10 @@ const packageCompileVendor = async (config, mode = {}) => {
|
|
|
12892
12989
|
if (compile.vendorPackages?.scopes === void 0 || compile.vendorPackages.scopes.length === 0) throw new Error("vendor mode requires compile.vendorPackages.scopes");
|
|
12893
12990
|
if (isVerbose) console.log(chalk.gray("Compiling with vendor mode"));
|
|
12894
12991
|
if (shouldRunFullValidation) {
|
|
12895
|
-
const validateResult = validateFullPackage(cwd(), isVerbose
|
|
12992
|
+
const validateResult = validateFullPackage(cwd(), isVerbose, {
|
|
12993
|
+
compiler: compile.compiler,
|
|
12994
|
+
nativePackage: compile.nativePackage
|
|
12995
|
+
});
|
|
12896
12996
|
if (validateResult !== 0) return validateResult;
|
|
12897
12997
|
}
|
|
12898
12998
|
if (!shouldEmit) return 0;
|