@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";
|
|
@@ -4350,7 +4350,7 @@ function listDeclaredWorkspaces(cwd = process.cwd()) {
|
|
|
4350
4350
|
return workspaces.toSorted((a, b) => a.location.localeCompare(b.location));
|
|
4351
4351
|
}
|
|
4352
4352
|
//#endregion
|
|
4353
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4353
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/common.js
|
|
4354
4354
|
var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4355
4355
|
function isNothing(subject) {
|
|
4356
4356
|
return typeof subject === "undefined" || subject === null;
|
|
@@ -4389,7 +4389,7 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4389
4389
|
module.exports.extend = extend;
|
|
4390
4390
|
}));
|
|
4391
4391
|
//#endregion
|
|
4392
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4392
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/exception.js
|
|
4393
4393
|
var require_exception = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4394
4394
|
function formatError(exception, compact) {
|
|
4395
4395
|
let where = "";
|
|
@@ -4417,7 +4417,7 @@ var require_exception = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4417
4417
|
module.exports = YAMLException;
|
|
4418
4418
|
}));
|
|
4419
4419
|
//#endregion
|
|
4420
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4420
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/snippet.js
|
|
4421
4421
|
var require_snippet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4422
4422
|
const common = require_common();
|
|
4423
4423
|
function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
|
|
@@ -4479,7 +4479,7 @@ var require_snippet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4479
4479
|
module.exports = makeSnippet;
|
|
4480
4480
|
}));
|
|
4481
4481
|
//#endregion
|
|
4482
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4482
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type.js
|
|
4483
4483
|
var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4484
4484
|
const YAMLException = require_exception();
|
|
4485
4485
|
const TYPE_CONSTRUCTOR_OPTIONS = [
|
|
@@ -4534,7 +4534,7 @@ var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4534
4534
|
module.exports = Type;
|
|
4535
4535
|
}));
|
|
4536
4536
|
//#endregion
|
|
4537
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4537
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema.js
|
|
4538
4538
|
var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4539
4539
|
const YAMLException = require_exception();
|
|
4540
4540
|
const Type = require_type();
|
|
@@ -4602,7 +4602,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4602
4602
|
module.exports = Schema;
|
|
4603
4603
|
}));
|
|
4604
4604
|
//#endregion
|
|
4605
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4605
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/str.js
|
|
4606
4606
|
var require_str = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4607
4607
|
module.exports = new (require_type())("tag:yaml.org,2002:str", {
|
|
4608
4608
|
kind: "scalar",
|
|
@@ -4612,7 +4612,7 @@ var require_str = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4612
4612
|
});
|
|
4613
4613
|
}));
|
|
4614
4614
|
//#endregion
|
|
4615
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4615
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/seq.js
|
|
4616
4616
|
var require_seq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4617
4617
|
module.exports = new (require_type())("tag:yaml.org,2002:seq", {
|
|
4618
4618
|
kind: "sequence",
|
|
@@ -4622,7 +4622,7 @@ var require_seq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4622
4622
|
});
|
|
4623
4623
|
}));
|
|
4624
4624
|
//#endregion
|
|
4625
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4625
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/map.js
|
|
4626
4626
|
var require_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4627
4627
|
module.exports = new (require_type())("tag:yaml.org,2002:map", {
|
|
4628
4628
|
kind: "mapping",
|
|
@@ -4632,7 +4632,7 @@ var require_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4632
4632
|
});
|
|
4633
4633
|
}));
|
|
4634
4634
|
//#endregion
|
|
4635
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4635
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema/failsafe.js
|
|
4636
4636
|
var require_failsafe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4637
4637
|
module.exports = new (require_schema())({ explicit: [
|
|
4638
4638
|
require_str(),
|
|
@@ -4641,7 +4641,7 @@ var require_failsafe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4641
4641
|
] });
|
|
4642
4642
|
}));
|
|
4643
4643
|
//#endregion
|
|
4644
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4644
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/null.js
|
|
4645
4645
|
var require_null = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4646
4646
|
const Type = require_type();
|
|
4647
4647
|
function resolveYamlNull(data) {
|
|
@@ -4681,7 +4681,7 @@ var require_null = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4681
4681
|
});
|
|
4682
4682
|
}));
|
|
4683
4683
|
//#endregion
|
|
4684
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4684
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/bool.js
|
|
4685
4685
|
var require_bool = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4686
4686
|
const Type = require_type();
|
|
4687
4687
|
function resolveYamlBoolean(data) {
|
|
@@ -4715,7 +4715,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4715
4715
|
});
|
|
4716
4716
|
}));
|
|
4717
4717
|
//#endregion
|
|
4718
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4718
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/int.js
|
|
4719
4719
|
var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4720
4720
|
const common = require_common();
|
|
4721
4721
|
const Type = require_type();
|
|
@@ -4824,7 +4824,7 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4824
4824
|
});
|
|
4825
4825
|
}));
|
|
4826
4826
|
//#endregion
|
|
4827
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4827
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/float.js
|
|
4828
4828
|
var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4829
4829
|
const common = require_common();
|
|
4830
4830
|
const Type = require_type();
|
|
@@ -4878,7 +4878,7 @@ var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4878
4878
|
});
|
|
4879
4879
|
}));
|
|
4880
4880
|
//#endregion
|
|
4881
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4881
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema/json.js
|
|
4882
4882
|
var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4883
4883
|
module.exports = require_failsafe().extend({ implicit: [
|
|
4884
4884
|
require_null(),
|
|
@@ -4888,12 +4888,12 @@ var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4888
4888
|
] });
|
|
4889
4889
|
}));
|
|
4890
4890
|
//#endregion
|
|
4891
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4891
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema/core.js
|
|
4892
4892
|
var require_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4893
4893
|
module.exports = require_json();
|
|
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/type/timestamp.js
|
|
4897
4897
|
var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4898
4898
|
const Type = require_type();
|
|
4899
4899
|
const YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
|
|
@@ -4944,7 +4944,7 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4944
4944
|
});
|
|
4945
4945
|
}));
|
|
4946
4946
|
//#endregion
|
|
4947
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4947
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/merge.js
|
|
4948
4948
|
var require_merge$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4949
4949
|
const Type = require_type();
|
|
4950
4950
|
function resolveYamlMerge(data) {
|
|
@@ -4956,7 +4956,7 @@ var require_merge$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4956
4956
|
});
|
|
4957
4957
|
}));
|
|
4958
4958
|
//#endregion
|
|
4959
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
4959
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/binary.js
|
|
4960
4960
|
var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4961
4961
|
const Type = require_type();
|
|
4962
4962
|
const BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
@@ -5043,14 +5043,14 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5043
5043
|
});
|
|
5044
5044
|
}));
|
|
5045
5045
|
//#endregion
|
|
5046
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5046
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/omap.js
|
|
5047
5047
|
var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5048
5048
|
const Type = require_type();
|
|
5049
5049
|
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
5050
5050
|
const _toString = Object.prototype.toString;
|
|
5051
5051
|
function resolveYamlOmap(data) {
|
|
5052
5052
|
if (data === null) return true;
|
|
5053
|
-
const objectKeys =
|
|
5053
|
+
const objectKeys = {};
|
|
5054
5054
|
const object = data;
|
|
5055
5055
|
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
5056
5056
|
const pair = object[index];
|
|
@@ -5062,8 +5062,8 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5062
5062
|
else return false;
|
|
5063
5063
|
}
|
|
5064
5064
|
if (!pairHasKey) return false;
|
|
5065
|
-
if (
|
|
5066
|
-
|
|
5065
|
+
if (_hasOwnProperty.call(objectKeys, pairKey)) return false;
|
|
5066
|
+
Object.defineProperty(objectKeys, pairKey, { value: true });
|
|
5067
5067
|
}
|
|
5068
5068
|
return true;
|
|
5069
5069
|
}
|
|
@@ -5077,7 +5077,7 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5077
5077
|
});
|
|
5078
5078
|
}));
|
|
5079
5079
|
//#endregion
|
|
5080
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5080
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/pairs.js
|
|
5081
5081
|
var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5082
5082
|
const Type = require_type();
|
|
5083
5083
|
const _toString = Object.prototype.toString;
|
|
@@ -5112,7 +5112,7 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5112
5112
|
});
|
|
5113
5113
|
}));
|
|
5114
5114
|
//#endregion
|
|
5115
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5115
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/set.js
|
|
5116
5116
|
var require_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5117
5117
|
const Type = require_type();
|
|
5118
5118
|
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -5134,7 +5134,7 @@ var require_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5134
5134
|
});
|
|
5135
5135
|
}));
|
|
5136
5136
|
//#endregion
|
|
5137
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5137
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema/default.js
|
|
5138
5138
|
var require_default = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5139
5139
|
module.exports = require_core().extend({
|
|
5140
5140
|
implicit: [require_timestamp(), require_merge$1()],
|
|
@@ -5147,7 +5147,7 @@ var require_default = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5147
5147
|
});
|
|
5148
5148
|
}));
|
|
5149
5149
|
//#endregion
|
|
5150
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5150
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/loader.js
|
|
5151
5151
|
var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5152
5152
|
const common = require_common();
|
|
5153
5153
|
const YAMLException = require_exception();
|
|
@@ -6175,7 +6175,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6175
6175
|
module.exports.load = load;
|
|
6176
6176
|
}));
|
|
6177
6177
|
//#endregion
|
|
6178
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
6178
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/dumper.js
|
|
6179
6179
|
var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6180
6180
|
const common = require_common();
|
|
6181
6181
|
const YAMLException = require_exception();
|
|
@@ -6674,7 +6674,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6674
6674
|
module.exports.dump = dump;
|
|
6675
6675
|
}));
|
|
6676
6676
|
//#endregion
|
|
6677
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
6677
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/index.js
|
|
6678
6678
|
var require_js_yaml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6679
6679
|
const loader = require_loader();
|
|
6680
6680
|
const dumper = require_dumper();
|
|
@@ -10446,16 +10446,88 @@ const warnDeprecatedEmptyObjectTargets = (targets) => {
|
|
|
10446
10446
|
}
|
|
10447
10447
|
};
|
|
10448
10448
|
//#endregion
|
|
10449
|
+
//#region src/actions/package/compile/resolveTscBin.ts
|
|
10450
|
+
/**
|
|
10451
|
+
* Default `package.json` key the native compiler is expected under:
|
|
10452
|
+
* `"typescript-native": "npm:typescript@~7.0.2"`. Override per package with
|
|
10453
|
+
* `compile.nativePackage`.
|
|
10454
|
+
*/
|
|
10455
|
+
const DEFAULT_NATIVE_PACKAGE = "typescript-native";
|
|
10456
|
+
const readTscBinEntry = (packageJsonPath) => {
|
|
10457
|
+
const { bin } = JSON.parse(fs.readFileSync(packageJsonPath, "utf8"));
|
|
10458
|
+
if (typeof bin === "string") return bin;
|
|
10459
|
+
return bin?.tsc;
|
|
10460
|
+
};
|
|
10461
|
+
/**
|
|
10462
|
+
* Resolves a compiler package's `tsc` entry script from `fromDir`.
|
|
10463
|
+
*
|
|
10464
|
+
* We deliberately do not go through `node_modules/.bin/tsc`. Both the API
|
|
10465
|
+
* package (`typescript@6`) and the native compiler (`typescript@7`, installed
|
|
10466
|
+
* under an alias) declare a `tsc` bin, so the `.bin` shim is whichever one the
|
|
10467
|
+
* package manager linked last — observed to be the alias, silently, in both
|
|
10468
|
+
* declaration orders. Resolving the package explicitly makes the choice the
|
|
10469
|
+
* caller's rather than the installer's.
|
|
10470
|
+
*/
|
|
10471
|
+
const resolveTscBin = (packageName, fromDir) => {
|
|
10472
|
+
try {
|
|
10473
|
+
const packageJsonPath = createRequire(PATH.join(fromDir, "package.json")).resolve(`${packageName}/package.json`);
|
|
10474
|
+
const binEntry = readTscBinEntry(packageJsonPath);
|
|
10475
|
+
if (binEntry === void 0) return void 0;
|
|
10476
|
+
return {
|
|
10477
|
+
binPath: PATH.resolve(PATH.dirname(packageJsonPath), binEntry),
|
|
10478
|
+
packageName
|
|
10479
|
+
};
|
|
10480
|
+
} catch {
|
|
10481
|
+
return;
|
|
10482
|
+
}
|
|
10483
|
+
};
|
|
10484
|
+
//#endregion
|
|
10449
10485
|
//#region src/actions/package/compile/runTsc.ts
|
|
10450
|
-
const
|
|
10486
|
+
const resolvedCache = /* @__PURE__ */ new Map();
|
|
10487
|
+
const resolveCached = (packageName, fromDir) => {
|
|
10488
|
+
const key = `${packageName}\0${fromDir}`;
|
|
10489
|
+
if (resolvedCache.has(key)) return resolvedCache.get(key);
|
|
10490
|
+
const resolved = resolveTscBin(packageName, fromDir);
|
|
10491
|
+
resolvedCache.set(key, resolved);
|
|
10492
|
+
return resolved;
|
|
10493
|
+
};
|
|
10494
|
+
const missingNativeMessage = (packageName) => [
|
|
10495
|
+
`Compile: compile.compiler is "native" but "${packageName}" is not installed.`,
|
|
10496
|
+
" Add it as an alias so it does not collide with the compiler API package:",
|
|
10497
|
+
` "${packageName}": "npm:typescript@~7.0.2"`,
|
|
10498
|
+
" Keep \"typescript\" pinned to 6.x — ESLint and the xy analyzers load the compiler API from it."
|
|
10499
|
+
].join("\n");
|
|
10500
|
+
/**
|
|
10501
|
+
* Runs `tsc -p <configPath>` against an explicitly resolved compiler.
|
|
10502
|
+
*
|
|
10503
|
+
* `native` selects the Go compiler (`typescript@7`) installed under an alias;
|
|
10504
|
+
* it is resolved from the package being compiled, not from `PATH`, because
|
|
10505
|
+
* both implementations declare a `tsc` bin and the `.bin` shim silently
|
|
10506
|
+
* resolves to whichever the package manager linked last.
|
|
10507
|
+
*/
|
|
10508
|
+
const runTsc = (configPath, options = {}) => {
|
|
10509
|
+
const { compiler = "typescript", extraArgs = [], isVerbose = false, nativePackage = DEFAULT_NATIVE_PACKAGE } = options;
|
|
10510
|
+
const pkg = cwd();
|
|
10451
10511
|
const args = [
|
|
10452
10512
|
"-p",
|
|
10453
10513
|
configPath,
|
|
10454
10514
|
...extraArgs
|
|
10455
10515
|
];
|
|
10456
|
-
|
|
10457
|
-
const
|
|
10458
|
-
|
|
10516
|
+
const packageName = compiler === "native" ? nativePackage : "typescript";
|
|
10517
|
+
const resolved = resolveCached(packageName, pkg);
|
|
10518
|
+
if (resolved === void 0 && compiler === "native") {
|
|
10519
|
+
console.error(chalk.red(missingNativeMessage(packageName)));
|
|
10520
|
+
return 1;
|
|
10521
|
+
}
|
|
10522
|
+
if (isVerbose) {
|
|
10523
|
+
const label = resolved === void 0 ? "tsc (PATH)" : `${resolved.packageName} ${resolved.binPath}`;
|
|
10524
|
+
console.log(chalk.gray(`tsc [${label}] ${args.join(" ")}`));
|
|
10525
|
+
}
|
|
10526
|
+
const result = resolved === void 0 ? spawnSync("tsc", args, {
|
|
10527
|
+
cwd: pkg,
|
|
10528
|
+
stdio: "inherit"
|
|
10529
|
+
}) : spawnSync(execPath, [resolved.binPath, ...args], {
|
|
10530
|
+
cwd: pkg,
|
|
10459
10531
|
stdio: "inherit"
|
|
10460
10532
|
});
|
|
10461
10533
|
return result.status ?? (result.error === void 0 ? 0 : 1);
|
|
@@ -10508,7 +10580,7 @@ const createFullValidationConfig = (pkg, tsconfigPath) => {
|
|
|
10508
10580
|
diagnostics: parsed.errors
|
|
10509
10581
|
};
|
|
10510
10582
|
};
|
|
10511
|
-
const validateFullPackage = (pkg, isVerbose = false) => {
|
|
10583
|
+
const validateFullPackage = (pkg, isVerbose = false, tsc = {}) => {
|
|
10512
10584
|
const tsconfigPath = PATH.resolve(pkg, "tsconfig.json");
|
|
10513
10585
|
if (!fs.existsSync(tsconfigPath)) {
|
|
10514
10586
|
console.warn(chalk.yellow("Compile:Validate skipped — tsconfig.json not found"));
|
|
@@ -10520,7 +10592,10 @@ const validateFullPackage = (pkg, isVerbose = false) => {
|
|
|
10520
10592
|
console.error(formatTsConfigDiagnostics(diagnostics, pkg));
|
|
10521
10593
|
return 1;
|
|
10522
10594
|
}
|
|
10523
|
-
const result = runTsc(configPath,
|
|
10595
|
+
const result = runTsc(configPath, {
|
|
10596
|
+
...tsc,
|
|
10597
|
+
isVerbose
|
|
10598
|
+
});
|
|
10524
10599
|
if (result !== 0) console.error(chalk.red(`Compile:Validate failed (tsc exit code ${result})`));
|
|
10525
10600
|
return result;
|
|
10526
10601
|
};
|
|
@@ -10694,7 +10769,7 @@ const resolvePlatformEsbuildOptions = (value) => {
|
|
|
10694
10769
|
const getRootOutDir = (options) => {
|
|
10695
10770
|
return options.outDir ?? options.outdir ?? "dist";
|
|
10696
10771
|
};
|
|
10697
|
-
const compileFolder = async (srcDir, entries, options, platform, outDir, shouldCheckTypes, emitDeclarations, entryMode, isVerbose) => {
|
|
10772
|
+
const compileFolder = async (srcDir, entries, options, platform, outDir, shouldCheckTypes, emitDeclarations, entryMode, isVerbose, tsc = {}) => {
|
|
10698
10773
|
const pkg = cwd();
|
|
10699
10774
|
if (isVerbose ?? false) console.log(chalk.gray(`compileFolder [${srcDir}, ${outDir}]`));
|
|
10700
10775
|
if (!fs.existsSync(PATH.resolve(pkg, srcDir))) {
|
|
@@ -10707,7 +10782,10 @@ const compileFolder = async (srcDir, entries, options, platform, outDir, shouldC
|
|
|
10707
10782
|
}
|
|
10708
10783
|
const checkConfig = writeTypescriptConfig(pkg, platform, srcDir, false);
|
|
10709
10784
|
if (shouldCheckTypes) {
|
|
10710
|
-
const checkResult = runTsc(checkConfig,
|
|
10785
|
+
const checkResult = runTsc(checkConfig, {
|
|
10786
|
+
...tsc,
|
|
10787
|
+
isVerbose
|
|
10788
|
+
});
|
|
10711
10789
|
if (checkResult !== 0) {
|
|
10712
10790
|
console.error(chalk.red(`Compile:Validation had ${checkResult} errors`));
|
|
10713
10791
|
return checkResult;
|
|
@@ -10740,7 +10818,7 @@ const compileFolder = async (srcDir, entries, options, platform, outDir, shouldC
|
|
|
10740
10818
|
if (isVerbose ?? false) console.log(chalk.cyan(`ESBUILD:build:stop [${srcDir}]`));
|
|
10741
10819
|
return 0;
|
|
10742
10820
|
};
|
|
10743
|
-
function createDeclarationEmitter(isVerbose = false) {
|
|
10821
|
+
function createDeclarationEmitter(isVerbose = false, tsc = {}) {
|
|
10744
10822
|
const declarationPromises = /* @__PURE__ */ new Map();
|
|
10745
10823
|
return async (srcDir, rootOutDir, platform, outDir) => {
|
|
10746
10824
|
const key = `${srcDir}\0${rootOutDir}`;
|
|
@@ -10750,7 +10828,10 @@ function createDeclarationEmitter(isVerbose = false) {
|
|
|
10750
10828
|
const dtsConfig = writeTypescriptConfig(cwd(), platform, srcDir, true, outDir);
|
|
10751
10829
|
return {
|
|
10752
10830
|
outDir,
|
|
10753
|
-
result: runTsc(dtsConfig,
|
|
10831
|
+
result: runTsc(dtsConfig, {
|
|
10832
|
+
...tsc,
|
|
10833
|
+
isVerbose
|
|
10834
|
+
})
|
|
10754
10835
|
};
|
|
10755
10836
|
})();
|
|
10756
10837
|
declarationPromises.set(key, promise);
|
|
@@ -10771,10 +10852,14 @@ function resolveCompileMode(config, mode) {
|
|
|
10771
10852
|
shouldEmit,
|
|
10772
10853
|
shouldRunFolderChecks: !shouldRunFullValidation && !(mode.emitOnly ?? false),
|
|
10773
10854
|
shouldRunFullValidation,
|
|
10855
|
+
tsc: {
|
|
10856
|
+
compiler: compile?.compiler,
|
|
10857
|
+
nativePackage: compile?.nativePackage
|
|
10858
|
+
},
|
|
10774
10859
|
isVerbose
|
|
10775
10860
|
};
|
|
10776
10861
|
}
|
|
10777
|
-
async function compilePlatformEntries({ shouldCheckTypes, compile, emitDeclarations, entries, legacyTsupOptions, platform, platformEsbuild, isVerbose }) {
|
|
10862
|
+
async function compilePlatformEntries({ shouldCheckTypes, compile, emitDeclarations, entries, legacyTsupOptions, platform, platformEsbuild, isVerbose, tsc }) {
|
|
10778
10863
|
return (await Promise.all(Object.entries(entries).map(async ([srcDir, options]) => {
|
|
10779
10864
|
const rootOutDir = getRootOutDir(options);
|
|
10780
10865
|
const outDir = `${rootOutDir}/${platform}`;
|
|
@@ -10787,14 +10872,14 @@ async function compilePlatformEntries({ shouldCheckTypes, compile, emitDeclarati
|
|
|
10787
10872
|
compile?.esbuild?.options ?? {},
|
|
10788
10873
|
options,
|
|
10789
10874
|
{ outdir: outDir }
|
|
10790
|
-
], isVerbose), platform, outDir, shouldCheckTypes, () => emitDeclarations(srcDir, rootOutDir, platform, outDir), entryMode, isVerbose);
|
|
10875
|
+
], isVerbose), platform, outDir, shouldCheckTypes, () => emitDeclarations(srcDir, rootOutDir, platform, outDir), entryMode, isVerbose, tsc);
|
|
10791
10876
|
}))).reduce((prev, value) => prev + value, 0);
|
|
10792
10877
|
}
|
|
10793
10878
|
const packageCompileEsbuild = async (config, mode = {}) => {
|
|
10794
|
-
const { compile, shouldEmit, shouldRunFolderChecks, shouldRunFullValidation, isVerbose } = resolveCompileMode(config, mode);
|
|
10795
|
-
if (isVerbose) console.log(
|
|
10879
|
+
const { compile, shouldEmit, shouldRunFolderChecks, shouldRunFullValidation, tsc, isVerbose } = resolveCompileMode(config, mode);
|
|
10880
|
+
if (isVerbose) console.log(`Compiling with esbuild and ${tsc.compiler === "native" ? "the native tsc" : "tsc"}`);
|
|
10796
10881
|
if (shouldRunFullValidation) {
|
|
10797
|
-
const validateResult = validateFullPackage(cwd(), isVerbose);
|
|
10882
|
+
const validateResult = validateFullPackage(cwd(), isVerbose, tsc);
|
|
10798
10883
|
if (validateResult !== 0) return validateResult;
|
|
10799
10884
|
}
|
|
10800
10885
|
if (!shouldEmit) return 0;
|
|
@@ -10807,7 +10892,7 @@ const packageCompileEsbuild = async (config, mode = {}) => {
|
|
|
10807
10892
|
const browserEsbuild = resolvePlatformEsbuildOptions(compile?.browser);
|
|
10808
10893
|
const neutralEsbuild = resolvePlatformEsbuildOptions(compile?.neutral);
|
|
10809
10894
|
const legacyTsupOptions = compile?.tsup?.options;
|
|
10810
|
-
const emitDeclarations = createDeclarationEmitter(isVerbose);
|
|
10895
|
+
const emitDeclarations = createDeclarationEmitter(isVerbose, tsc);
|
|
10811
10896
|
const [nodeErrors, browserErrors, neutralErrors] = await Promise.all([
|
|
10812
10897
|
compilePlatformEntries({
|
|
10813
10898
|
shouldCheckTypes: shouldRunFolderChecks,
|
|
@@ -10817,6 +10902,7 @@ const packageCompileEsbuild = async (config, mode = {}) => {
|
|
|
10817
10902
|
legacyTsupOptions,
|
|
10818
10903
|
platform: "node",
|
|
10819
10904
|
platformEsbuild: nodeEsbuild,
|
|
10905
|
+
tsc,
|
|
10820
10906
|
isVerbose
|
|
10821
10907
|
}),
|
|
10822
10908
|
compilePlatformEntries({
|
|
@@ -10827,6 +10913,7 @@ const packageCompileEsbuild = async (config, mode = {}) => {
|
|
|
10827
10913
|
legacyTsupOptions,
|
|
10828
10914
|
platform: "browser",
|
|
10829
10915
|
platformEsbuild: browserEsbuild,
|
|
10916
|
+
tsc,
|
|
10830
10917
|
isVerbose
|
|
10831
10918
|
}),
|
|
10832
10919
|
compilePlatformEntries({
|
|
@@ -10837,6 +10924,7 @@ const packageCompileEsbuild = async (config, mode = {}) => {
|
|
|
10837
10924
|
legacyTsupOptions,
|
|
10838
10925
|
platform: "neutral",
|
|
10839
10926
|
platformEsbuild: neutralEsbuild,
|
|
10927
|
+
tsc,
|
|
10840
10928
|
isVerbose
|
|
10841
10929
|
})
|
|
10842
10930
|
]);
|
|
@@ -11654,7 +11742,10 @@ const packageCompileMonolith = async (config, mode = {}) => {
|
|
|
11654
11742
|
if (isVerbose) console.log(chalk.gray("monolith layout synced"));
|
|
11655
11743
|
}
|
|
11656
11744
|
if (shouldRunFullValidation) {
|
|
11657
|
-
const validateResult = validateFullPackage(packageDir, isVerbose
|
|
11745
|
+
const validateResult = validateFullPackage(packageDir, isVerbose, {
|
|
11746
|
+
compiler: compile.compiler,
|
|
11747
|
+
nativePackage: compile.nativePackage
|
|
11748
|
+
});
|
|
11658
11749
|
if (validateResult !== 0) return validateResult;
|
|
11659
11750
|
}
|
|
11660
11751
|
if (!shouldEmit) return 0;
|
|
@@ -12195,7 +12286,10 @@ const packageCompileVendor = async (config, mode = {}) => {
|
|
|
12195
12286
|
if (compile.vendorPackages?.scopes === void 0 || compile.vendorPackages.scopes.length === 0) throw new Error("vendor mode requires compile.vendorPackages.scopes");
|
|
12196
12287
|
if (isVerbose) console.log(chalk.gray("Compiling with vendor mode"));
|
|
12197
12288
|
if (shouldRunFullValidation) {
|
|
12198
|
-
const validateResult = validateFullPackage(cwd(), isVerbose
|
|
12289
|
+
const validateResult = validateFullPackage(cwd(), isVerbose, {
|
|
12290
|
+
compiler: compile.compiler,
|
|
12291
|
+
nativePackage: compile.nativePackage
|
|
12292
|
+
});
|
|
12199
12293
|
if (validateResult !== 0) return validateResult;
|
|
12200
12294
|
}
|
|
12201
12295
|
if (!shouldEmit) return 0;
|