@storm-software/tsdown 0.45.120 → 0.45.122
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 +1 -1
- package/bin/tsdown.cjs +355 -114
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
package/bin/tsdown.cjs
CHANGED
|
@@ -103743,9 +103743,9 @@ var require_prettier = __commonJS({
|
|
|
103743
103743
|
}
|
|
103744
103744
|
});
|
|
103745
103745
|
|
|
103746
|
-
// ../../node_modules/.pnpm/@nx+devkit@22.
|
|
103746
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/generators/format-files.js
|
|
103747
103747
|
var require_format_files = __commonJS({
|
|
103748
|
-
"../../node_modules/.pnpm/@nx+devkit@22.
|
|
103748
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/generators/format-files.js"(exports2) {
|
|
103749
103749
|
"use strict";
|
|
103750
103750
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
103751
103751
|
exports2.formatFiles = formatFiles;
|
|
@@ -103753,6 +103753,13 @@ var require_format_files = __commonJS({
|
|
|
103753
103753
|
var devkit_internals_1 = require("nx/src/devkit-internals");
|
|
103754
103754
|
var path15 = require("path");
|
|
103755
103755
|
async function formatFiles(tree, options8 = {}) {
|
|
103756
|
+
options8.sortRootTsconfigPaths ??= process.env.NX_FORMAT_SORT_TSCONFIG_PATHS === "true";
|
|
103757
|
+
if (options8.sortRootTsconfigPaths) {
|
|
103758
|
+
sortTsConfig(tree);
|
|
103759
|
+
}
|
|
103760
|
+
if (process.env.NX_SKIP_FORMAT === "true") {
|
|
103761
|
+
return;
|
|
103762
|
+
}
|
|
103756
103763
|
let prettier;
|
|
103757
103764
|
try {
|
|
103758
103765
|
prettier = await Promise.resolve().then(() => require_prettier());
|
|
@@ -103761,10 +103768,6 @@ var require_format_files = __commonJS({
|
|
|
103761
103768
|
}
|
|
103762
103769
|
} catch {
|
|
103763
103770
|
}
|
|
103764
|
-
options8.sortRootTsconfigPaths ??= process.env.NX_FORMAT_SORT_TSCONFIG_PATHS === "true";
|
|
103765
|
-
if (options8.sortRootTsconfigPaths) {
|
|
103766
|
-
sortTsConfig(tree);
|
|
103767
|
-
}
|
|
103768
103771
|
if (!prettier)
|
|
103769
103772
|
return;
|
|
103770
103773
|
const files = new Set(tree.listChanges().filter((file) => file.type !== "DELETE"));
|
|
@@ -103835,9 +103838,9 @@ var require_format_files = __commonJS({
|
|
|
103835
103838
|
}
|
|
103836
103839
|
});
|
|
103837
103840
|
|
|
103838
|
-
// ../../node_modules/.pnpm/@nx+devkit@22.
|
|
103841
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/binary-extensions.js
|
|
103839
103842
|
var require_binary_extensions = __commonJS({
|
|
103840
|
-
"../../node_modules/.pnpm/@nx+devkit@22.
|
|
103843
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/binary-extensions.js"(exports2) {
|
|
103841
103844
|
"use strict";
|
|
103842
103845
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
103843
103846
|
exports2.isBinaryPath = isBinaryPath;
|
|
@@ -104852,9 +104855,9 @@ var require_ejs = __commonJS({
|
|
|
104852
104855
|
}
|
|
104853
104856
|
});
|
|
104854
104857
|
|
|
104855
|
-
// ../../node_modules/.pnpm/@nx+devkit@22.
|
|
104858
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/generators/generate-files.js
|
|
104856
104859
|
var require_generate_files = __commonJS({
|
|
104857
|
-
"../../node_modules/.pnpm/@nx+devkit@22.
|
|
104860
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/generators/generate-files.js"(exports2) {
|
|
104858
104861
|
"use strict";
|
|
104859
104862
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
104860
104863
|
exports2.OverwriteStrategy = void 0;
|
|
@@ -104939,9 +104942,9 @@ var require_generate_files = __commonJS({
|
|
|
104939
104942
|
}
|
|
104940
104943
|
});
|
|
104941
104944
|
|
|
104942
|
-
// ../../node_modules/.pnpm/@nx+devkit@22.
|
|
104945
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/versions.js
|
|
104943
104946
|
var require_versions = __commonJS({
|
|
104944
|
-
"../../node_modules/.pnpm/@nx+devkit@22.
|
|
104947
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/versions.js"(exports2) {
|
|
104945
104948
|
"use strict";
|
|
104946
104949
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
104947
104950
|
exports2.typescriptVersion = void 0;
|
|
@@ -106879,9 +106882,9 @@ var require_semver3 = __commonJS({
|
|
|
106879
106882
|
}
|
|
106880
106883
|
});
|
|
106881
106884
|
|
|
106882
|
-
// ../../node_modules/.pnpm/@nx+devkit@22.
|
|
106885
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/tasks/install-packages-task.js
|
|
106883
106886
|
var require_install_packages_task = __commonJS({
|
|
106884
|
-
"../../node_modules/.pnpm/@nx+devkit@22.
|
|
106887
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/tasks/install-packages-task.js"(exports2) {
|
|
106885
106888
|
"use strict";
|
|
106886
106889
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
106887
106890
|
exports2.installPackagesTask = installPackagesTask;
|
|
@@ -109699,9 +109702,29 @@ var require_js_yaml = __commonJS({
|
|
|
109699
109702
|
}
|
|
109700
109703
|
});
|
|
109701
109704
|
|
|
109702
|
-
// ../../node_modules/.pnpm/@nx+devkit@22.
|
|
109705
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/catalog/manager.js
|
|
109706
|
+
var require_manager = __commonJS({
|
|
109707
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/catalog/manager.js"(exports2) {
|
|
109708
|
+
"use strict";
|
|
109709
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
109710
|
+
exports2.formatCatalogError = formatCatalogError;
|
|
109711
|
+
function formatCatalogError(error, suggestions) {
|
|
109712
|
+
let message = error;
|
|
109713
|
+
if (suggestions.length > 0) {
|
|
109714
|
+
message += "\n\nSuggestions:";
|
|
109715
|
+
suggestions.forEach((suggestion) => {
|
|
109716
|
+
message += `
|
|
109717
|
+
\u2022 ${suggestion}`;
|
|
109718
|
+
});
|
|
109719
|
+
}
|
|
109720
|
+
return message;
|
|
109721
|
+
}
|
|
109722
|
+
}
|
|
109723
|
+
});
|
|
109724
|
+
|
|
109725
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/catalog/pnpm-manager.js
|
|
109703
109726
|
var require_pnpm_manager = __commonJS({
|
|
109704
|
-
"../../node_modules/.pnpm/@nx+devkit@22.
|
|
109727
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/catalog/pnpm-manager.js"(exports2) {
|
|
109705
109728
|
"use strict";
|
|
109706
109729
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
109707
109730
|
exports2.PnpmCatalogManager = void 0;
|
|
@@ -109710,6 +109733,8 @@ var require_pnpm_manager = __commonJS({
|
|
|
109710
109733
|
var node_path_1 = require("path");
|
|
109711
109734
|
var devkit_exports_1 = require("nx/src/devkit-exports");
|
|
109712
109735
|
var devkit_internals_1 = require("nx/src/devkit-internals");
|
|
109736
|
+
var manager_1 = require_manager();
|
|
109737
|
+
var PNPM_WORKSPACE_FILENAME = "pnpm-workspace.yaml";
|
|
109713
109738
|
var PnpmCatalogManager = class {
|
|
109714
109739
|
constructor() {
|
|
109715
109740
|
this.name = "pnpm";
|
|
@@ -109729,18 +109754,21 @@ var require_pnpm_manager = __commonJS({
|
|
|
109729
109754
|
isDefaultCatalog: isDefault
|
|
109730
109755
|
};
|
|
109731
109756
|
}
|
|
109757
|
+
getCatalogDefinitionFilePaths() {
|
|
109758
|
+
return [PNPM_WORKSPACE_FILENAME];
|
|
109759
|
+
}
|
|
109732
109760
|
getCatalogDefinitions(treeOrRoot) {
|
|
109733
109761
|
if (typeof treeOrRoot === "string") {
|
|
109734
|
-
const
|
|
109735
|
-
if (!(0, node_fs_1.existsSync)(
|
|
109762
|
+
const configPath = (0, node_path_1.join)(treeOrRoot, PNPM_WORKSPACE_FILENAME);
|
|
109763
|
+
if (!(0, node_fs_1.existsSync)(configPath)) {
|
|
109736
109764
|
return null;
|
|
109737
109765
|
}
|
|
109738
|
-
return
|
|
109766
|
+
return readConfigFromFs(configPath);
|
|
109739
109767
|
} else {
|
|
109740
|
-
if (!treeOrRoot.exists(
|
|
109768
|
+
if (!treeOrRoot.exists(PNPM_WORKSPACE_FILENAME)) {
|
|
109741
109769
|
return null;
|
|
109742
109770
|
}
|
|
109743
|
-
return
|
|
109771
|
+
return readConfigFromTree(treeOrRoot, PNPM_WORKSPACE_FILENAME);
|
|
109744
109772
|
}
|
|
109745
109773
|
}
|
|
109746
109774
|
resolveCatalogReference(treeOrRoot, packageName, version) {
|
|
@@ -109748,15 +109776,15 @@ var require_pnpm_manager = __commonJS({
|
|
|
109748
109776
|
if (!catalogRef) {
|
|
109749
109777
|
return null;
|
|
109750
109778
|
}
|
|
109751
|
-
const
|
|
109752
|
-
if (!
|
|
109779
|
+
const catalogDefs = this.getCatalogDefinitions(treeOrRoot);
|
|
109780
|
+
if (!catalogDefs) {
|
|
109753
109781
|
return null;
|
|
109754
109782
|
}
|
|
109755
109783
|
let catalogToUse;
|
|
109756
109784
|
if (catalogRef.isDefaultCatalog) {
|
|
109757
|
-
catalogToUse =
|
|
109785
|
+
catalogToUse = catalogDefs.catalog ?? catalogDefs.catalogs?.default;
|
|
109758
109786
|
} else if (catalogRef.catalogName) {
|
|
109759
|
-
catalogToUse =
|
|
109787
|
+
catalogToUse = catalogDefs.catalogs?.[catalogRef.catalogName];
|
|
109760
109788
|
}
|
|
109761
109789
|
return catalogToUse?.[packageName] || null;
|
|
109762
109790
|
}
|
|
@@ -109765,35 +109793,35 @@ var require_pnpm_manager = __commonJS({
|
|
|
109765
109793
|
if (!catalogRef) {
|
|
109766
109794
|
throw new Error(`Invalid catalog reference syntax: "${version}". Expected format: "catalog:" or "catalog:name"`);
|
|
109767
109795
|
}
|
|
109768
|
-
const
|
|
109769
|
-
if (!
|
|
109770
|
-
throw new Error(formatCatalogError(
|
|
109796
|
+
const catalogDefs = this.getCatalogDefinitions(treeOrRoot);
|
|
109797
|
+
if (!catalogDefs) {
|
|
109798
|
+
throw new Error((0, manager_1.formatCatalogError)(`Cannot get Pnpm catalog definitions. No ${PNPM_WORKSPACE_FILENAME} found in workspace root.`, [`Create a ${PNPM_WORKSPACE_FILENAME} file in your workspace root`]));
|
|
109771
109799
|
}
|
|
109772
109800
|
let catalogToUse;
|
|
109773
109801
|
if (catalogRef.isDefaultCatalog) {
|
|
109774
|
-
const hasCatalog = !!
|
|
109775
|
-
const hasCatalogsDefault = !!
|
|
109802
|
+
const hasCatalog = !!catalogDefs.catalog;
|
|
109803
|
+
const hasCatalogsDefault = !!catalogDefs.catalogs?.default;
|
|
109776
109804
|
if (hasCatalog && hasCatalogsDefault) {
|
|
109777
109805
|
throw new Error("The 'default' catalog was defined multiple times. Use the 'catalog' field or 'catalogs.default', but not both.");
|
|
109778
109806
|
}
|
|
109779
|
-
catalogToUse =
|
|
109807
|
+
catalogToUse = catalogDefs.catalog ?? catalogDefs.catalogs?.default;
|
|
109780
109808
|
if (!catalogToUse) {
|
|
109781
|
-
const availableCatalogs = Object.keys(
|
|
109809
|
+
const availableCatalogs = Object.keys(catalogDefs.catalogs || {});
|
|
109782
109810
|
const suggestions = [
|
|
109783
|
-
|
|
109811
|
+
`Define a default catalog in ${PNPM_WORKSPACE_FILENAME} under the "catalog" key`
|
|
109784
109812
|
];
|
|
109785
109813
|
if (availableCatalogs.length > 0) {
|
|
109786
109814
|
suggestions.push(`Or select from the available named catalogs: ${availableCatalogs.map((c7) => `"catalog:${c7}"`).join(", ")}`);
|
|
109787
109815
|
}
|
|
109788
|
-
throw new Error(formatCatalogError(
|
|
109816
|
+
throw new Error((0, manager_1.formatCatalogError)(`No default catalog defined in ${PNPM_WORKSPACE_FILENAME}`, suggestions));
|
|
109789
109817
|
}
|
|
109790
109818
|
} else if (catalogRef.catalogName) {
|
|
109791
|
-
catalogToUse =
|
|
109819
|
+
catalogToUse = catalogDefs.catalogs?.[catalogRef.catalogName];
|
|
109792
109820
|
if (!catalogToUse) {
|
|
109793
|
-
const availableCatalogs = Object.keys(
|
|
109794
|
-
const defaultCatalog = !!
|
|
109821
|
+
const availableCatalogs = Object.keys(catalogDefs.catalogs || {}).filter((c7) => c7 !== "default");
|
|
109822
|
+
const defaultCatalog = !!catalogDefs.catalog ? "catalog" : !catalogDefs.catalogs?.default ? "catalogs.default" : null;
|
|
109795
109823
|
const suggestions = [
|
|
109796
|
-
|
|
109824
|
+
`Define the catalog in ${PNPM_WORKSPACE_FILENAME} under the "catalogs" key`
|
|
109797
109825
|
];
|
|
109798
109826
|
if (availableCatalogs.length > 0) {
|
|
109799
109827
|
suggestions.push(`Or select from the available named catalogs: ${availableCatalogs.map((c7) => `"catalog:${c7}"`).join(", ")}`);
|
|
@@ -109801,25 +109829,25 @@ var require_pnpm_manager = __commonJS({
|
|
|
109801
109829
|
if (defaultCatalog) {
|
|
109802
109830
|
suggestions.push(`Or use the default catalog ("${defaultCatalog}")`);
|
|
109803
109831
|
}
|
|
109804
|
-
throw new Error(formatCatalogError(`Catalog "${catalogRef.catalogName}" not found in
|
|
109832
|
+
throw new Error((0, manager_1.formatCatalogError)(`Catalog "${catalogRef.catalogName}" not found in ${PNPM_WORKSPACE_FILENAME}`, suggestions));
|
|
109805
109833
|
}
|
|
109806
109834
|
}
|
|
109807
109835
|
if (!catalogToUse[packageName]) {
|
|
109808
109836
|
let catalogName;
|
|
109809
109837
|
if (catalogRef.isDefaultCatalog) {
|
|
109810
|
-
const hasCatalog = !!
|
|
109838
|
+
const hasCatalog = !!catalogDefs.catalog;
|
|
109811
109839
|
catalogName = hasCatalog ? 'default catalog ("catalog")' : 'default catalog ("catalogs.default")';
|
|
109812
109840
|
} else {
|
|
109813
109841
|
catalogName = `catalog '${catalogRef.catalogName}'`;
|
|
109814
109842
|
}
|
|
109815
109843
|
const availablePackages = Object.keys(catalogToUse);
|
|
109816
109844
|
const suggestions = [
|
|
109817
|
-
`Add "${packageName}" to ${catalogName} in
|
|
109845
|
+
`Add "${packageName}" to ${catalogName} in ${PNPM_WORKSPACE_FILENAME}`
|
|
109818
109846
|
];
|
|
109819
109847
|
if (availablePackages.length > 0) {
|
|
109820
109848
|
suggestions.push(`Or select from the available packages in ${catalogName}: ${availablePackages.map((p4) => `"${p4}"`).join(", ")}`);
|
|
109821
109849
|
}
|
|
109822
|
-
throw new Error(formatCatalogError(`Package "${packageName}" not found in ${catalogName}`, suggestions));
|
|
109850
|
+
throw new Error((0, manager_1.formatCatalogError)(`Package "${packageName}" not found in ${catalogName}`, suggestions));
|
|
109823
109851
|
}
|
|
109824
109852
|
}
|
|
109825
109853
|
updateCatalogVersions(treeOrRoot, updates) {
|
|
@@ -109827,46 +109855,46 @@ var require_pnpm_manager = __commonJS({
|
|
|
109827
109855
|
let readYaml;
|
|
109828
109856
|
let writeYaml;
|
|
109829
109857
|
if (typeof treeOrRoot === "string") {
|
|
109830
|
-
const
|
|
109831
|
-
checkExists = () => (0, node_fs_1.existsSync)(
|
|
109832
|
-
readYaml = () => (0, node_fs_1.readFileSync)(
|
|
109833
|
-
writeYaml = (content) => (0, node_fs_1.writeFileSync)(
|
|
109858
|
+
const configPath = (0, node_path_1.join)(treeOrRoot, PNPM_WORKSPACE_FILENAME);
|
|
109859
|
+
checkExists = () => (0, node_fs_1.existsSync)(configPath);
|
|
109860
|
+
readYaml = () => (0, node_fs_1.readFileSync)(configPath, "utf-8");
|
|
109861
|
+
writeYaml = (content) => (0, node_fs_1.writeFileSync)(configPath, content, "utf-8");
|
|
109834
109862
|
} else {
|
|
109835
|
-
checkExists = () => treeOrRoot.exists(
|
|
109836
|
-
readYaml = () => treeOrRoot.read(
|
|
109837
|
-
writeYaml = (content) => treeOrRoot.write(
|
|
109863
|
+
checkExists = () => treeOrRoot.exists(PNPM_WORKSPACE_FILENAME);
|
|
109864
|
+
readYaml = () => treeOrRoot.read(PNPM_WORKSPACE_FILENAME, "utf-8");
|
|
109865
|
+
writeYaml = (content) => treeOrRoot.write(PNPM_WORKSPACE_FILENAME, content);
|
|
109838
109866
|
}
|
|
109839
109867
|
if (!checkExists()) {
|
|
109840
109868
|
devkit_exports_1.output.warn({
|
|
109841
|
-
title:
|
|
109869
|
+
title: `No ${PNPM_WORKSPACE_FILENAME} found`,
|
|
109842
109870
|
bodyLines: [
|
|
109843
|
-
|
|
109844
|
-
|
|
109871
|
+
`Cannot update catalog versions without a ${PNPM_WORKSPACE_FILENAME} file.`,
|
|
109872
|
+
`Create a ${PNPM_WORKSPACE_FILENAME} file to use catalogs.`
|
|
109845
109873
|
]
|
|
109846
109874
|
});
|
|
109847
109875
|
return;
|
|
109848
109876
|
}
|
|
109849
109877
|
try {
|
|
109850
|
-
const
|
|
109851
|
-
const
|
|
109878
|
+
const configContent = readYaml();
|
|
109879
|
+
const configData = (0, js_yaml_1.load)(configContent) || {};
|
|
109852
109880
|
let hasChanges = false;
|
|
109853
109881
|
for (const update of updates) {
|
|
109854
109882
|
const { packageName, version, catalogName } = update;
|
|
109855
109883
|
const normalizedCatalogName = catalogName === "default" ? void 0 : catalogName;
|
|
109856
109884
|
let targetCatalog;
|
|
109857
109885
|
if (!normalizedCatalogName) {
|
|
109858
|
-
if (
|
|
109859
|
-
targetCatalog =
|
|
109860
|
-
} else if (
|
|
109861
|
-
targetCatalog =
|
|
109886
|
+
if (configData.catalog) {
|
|
109887
|
+
targetCatalog = configData.catalog;
|
|
109888
|
+
} else if (configData.catalogs?.default) {
|
|
109889
|
+
targetCatalog = configData.catalogs.default;
|
|
109862
109890
|
} else {
|
|
109863
|
-
|
|
109864
|
-
targetCatalog =
|
|
109891
|
+
configData.catalog ??= {};
|
|
109892
|
+
targetCatalog = configData.catalog;
|
|
109865
109893
|
}
|
|
109866
109894
|
} else {
|
|
109867
|
-
|
|
109868
|
-
|
|
109869
|
-
targetCatalog =
|
|
109895
|
+
configData.catalogs ??= {};
|
|
109896
|
+
configData.catalogs[normalizedCatalogName] ??= {};
|
|
109897
|
+
targetCatalog = configData.catalogs[normalizedCatalogName];
|
|
109870
109898
|
}
|
|
109871
109899
|
if (targetCatalog[packageName] !== version) {
|
|
109872
109900
|
targetCatalog[packageName] = version;
|
|
@@ -109874,7 +109902,7 @@ var require_pnpm_manager = __commonJS({
|
|
|
109874
109902
|
}
|
|
109875
109903
|
}
|
|
109876
109904
|
if (hasChanges) {
|
|
109877
|
-
writeYaml((0, js_yaml_1.dump)(
|
|
109905
|
+
writeYaml((0, js_yaml_1.dump)(configData, {
|
|
109878
109906
|
indent: 2,
|
|
109879
109907
|
quotingType: '"',
|
|
109880
109908
|
forceQuotes: true
|
|
@@ -109890,57 +109918,270 @@ var require_pnpm_manager = __commonJS({
|
|
|
109890
109918
|
}
|
|
109891
109919
|
};
|
|
109892
109920
|
exports2.PnpmCatalogManager = PnpmCatalogManager;
|
|
109893
|
-
function
|
|
109921
|
+
function readConfigFromFs(path15) {
|
|
109894
109922
|
try {
|
|
109895
109923
|
return (0, devkit_internals_1.readYamlFile)(path15);
|
|
109896
109924
|
} catch (error) {
|
|
109897
109925
|
devkit_exports_1.output.warn({
|
|
109898
|
-
title:
|
|
109926
|
+
title: `Unable to parse ${PNPM_WORKSPACE_FILENAME}`,
|
|
109899
109927
|
bodyLines: [error.toString()]
|
|
109900
109928
|
});
|
|
109901
109929
|
return null;
|
|
109902
109930
|
}
|
|
109903
109931
|
}
|
|
109904
|
-
function
|
|
109932
|
+
function readConfigFromTree(tree, path15) {
|
|
109905
109933
|
const content = tree.read(path15, "utf-8");
|
|
109906
|
-
const { load } = require_js_yaml();
|
|
109907
109934
|
try {
|
|
109908
|
-
return load(content, { filename: path15 });
|
|
109935
|
+
return (0, js_yaml_1.load)(content, { filename: path15 });
|
|
109909
109936
|
} catch (error) {
|
|
109910
109937
|
devkit_exports_1.output.warn({
|
|
109911
|
-
title:
|
|
109938
|
+
title: `Unable to parse ${PNPM_WORKSPACE_FILENAME}`,
|
|
109912
109939
|
bodyLines: [error.toString()]
|
|
109913
109940
|
});
|
|
109914
109941
|
return null;
|
|
109915
109942
|
}
|
|
109916
109943
|
}
|
|
109917
|
-
|
|
109918
|
-
|
|
109919
|
-
|
|
109920
|
-
|
|
109921
|
-
|
|
109922
|
-
|
|
109923
|
-
|
|
109944
|
+
}
|
|
109945
|
+
});
|
|
109946
|
+
|
|
109947
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/catalog/yarn-manager.js
|
|
109948
|
+
var require_yarn_manager = __commonJS({
|
|
109949
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/catalog/yarn-manager.js"(exports2) {
|
|
109950
|
+
"use strict";
|
|
109951
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
109952
|
+
exports2.YarnCatalogManager = void 0;
|
|
109953
|
+
var js_yaml_1 = require_js_yaml();
|
|
109954
|
+
var node_fs_1 = require("fs");
|
|
109955
|
+
var node_path_1 = require("path");
|
|
109956
|
+
var devkit_exports_1 = require("nx/src/devkit-exports");
|
|
109957
|
+
var devkit_internals_1 = require("nx/src/devkit-internals");
|
|
109958
|
+
var manager_1 = require_manager();
|
|
109959
|
+
var YARNRC_FILENAME = ".yarnrc.yml";
|
|
109960
|
+
var YarnCatalogManager = class {
|
|
109961
|
+
constructor() {
|
|
109962
|
+
this.name = "yarn";
|
|
109963
|
+
this.catalogProtocol = "catalog:";
|
|
109964
|
+
}
|
|
109965
|
+
isCatalogReference(version) {
|
|
109966
|
+
return version.startsWith(this.catalogProtocol);
|
|
109967
|
+
}
|
|
109968
|
+
parseCatalogReference(version) {
|
|
109969
|
+
if (!this.isCatalogReference(version)) {
|
|
109970
|
+
return null;
|
|
109971
|
+
}
|
|
109972
|
+
const catalogName = version.substring(this.catalogProtocol.length);
|
|
109973
|
+
const isDefault = !catalogName || catalogName === "default";
|
|
109974
|
+
return {
|
|
109975
|
+
catalogName: isDefault ? void 0 : catalogName,
|
|
109976
|
+
isDefaultCatalog: isDefault
|
|
109977
|
+
};
|
|
109978
|
+
}
|
|
109979
|
+
getCatalogDefinitionFilePaths() {
|
|
109980
|
+
return [YARNRC_FILENAME];
|
|
109981
|
+
}
|
|
109982
|
+
getCatalogDefinitions(treeOrRoot) {
|
|
109983
|
+
if (typeof treeOrRoot === "string") {
|
|
109984
|
+
const configPath = (0, node_path_1.join)(treeOrRoot, YARNRC_FILENAME);
|
|
109985
|
+
if (!(0, node_fs_1.existsSync)(configPath)) {
|
|
109986
|
+
return null;
|
|
109987
|
+
}
|
|
109988
|
+
return readConfigFromFs(configPath);
|
|
109989
|
+
} else {
|
|
109990
|
+
if (!treeOrRoot.exists(YARNRC_FILENAME)) {
|
|
109991
|
+
return null;
|
|
109992
|
+
}
|
|
109993
|
+
return readConfigFromTree(treeOrRoot, YARNRC_FILENAME);
|
|
109994
|
+
}
|
|
109995
|
+
}
|
|
109996
|
+
resolveCatalogReference(treeOrRoot, packageName, version) {
|
|
109997
|
+
const catalogRef = this.parseCatalogReference(version);
|
|
109998
|
+
if (!catalogRef) {
|
|
109999
|
+
return null;
|
|
110000
|
+
}
|
|
110001
|
+
const catalogDefs = this.getCatalogDefinitions(treeOrRoot);
|
|
110002
|
+
if (!catalogDefs) {
|
|
110003
|
+
return null;
|
|
110004
|
+
}
|
|
110005
|
+
let catalogToUse;
|
|
110006
|
+
if (catalogRef.isDefaultCatalog) {
|
|
110007
|
+
catalogToUse = catalogDefs.catalog ?? catalogDefs.catalogs?.default;
|
|
110008
|
+
} else if (catalogRef.catalogName) {
|
|
110009
|
+
catalogToUse = catalogDefs.catalogs?.[catalogRef.catalogName];
|
|
110010
|
+
}
|
|
110011
|
+
return catalogToUse?.[packageName] || null;
|
|
110012
|
+
}
|
|
110013
|
+
validateCatalogReference(treeOrRoot, packageName, version) {
|
|
110014
|
+
const catalogRef = this.parseCatalogReference(version);
|
|
110015
|
+
if (!catalogRef) {
|
|
110016
|
+
throw new Error(`Invalid catalog reference syntax: "${version}". Expected format: "catalog:" or "catalog:name"`);
|
|
110017
|
+
}
|
|
110018
|
+
const catalogDefs = this.getCatalogDefinitions(treeOrRoot);
|
|
110019
|
+
if (!catalogDefs) {
|
|
110020
|
+
throw new Error((0, manager_1.formatCatalogError)(`Cannot get Yarn catalog definitions. No ${YARNRC_FILENAME} found in workspace root.`, [`Create a ${YARNRC_FILENAME} file in your workspace root`]));
|
|
110021
|
+
}
|
|
110022
|
+
let catalogToUse;
|
|
110023
|
+
if (catalogRef.isDefaultCatalog) {
|
|
110024
|
+
const hasCatalog = !!catalogDefs.catalog;
|
|
110025
|
+
const hasCatalogsDefault = !!catalogDefs.catalogs?.default;
|
|
110026
|
+
if (hasCatalog && hasCatalogsDefault) {
|
|
110027
|
+
throw new Error("The 'default' catalog was defined multiple times. Use the 'catalog' field or 'catalogs.default', but not both.");
|
|
110028
|
+
}
|
|
110029
|
+
catalogToUse = catalogDefs.catalog ?? catalogDefs.catalogs?.default;
|
|
110030
|
+
if (!catalogToUse) {
|
|
110031
|
+
const availableCatalogs = Object.keys(catalogDefs.catalogs || {});
|
|
110032
|
+
const suggestions = [
|
|
110033
|
+
`Define a default catalog in ${YARNRC_FILENAME} under the "catalog" key`
|
|
110034
|
+
];
|
|
110035
|
+
if (availableCatalogs.length > 0) {
|
|
110036
|
+
suggestions.push(`Or select from the available named catalogs: ${availableCatalogs.map((c7) => `"catalog:${c7}"`).join(", ")}`);
|
|
110037
|
+
}
|
|
110038
|
+
throw new Error((0, manager_1.formatCatalogError)(`No default catalog defined in ${YARNRC_FILENAME}`, suggestions));
|
|
110039
|
+
}
|
|
110040
|
+
} else if (catalogRef.catalogName) {
|
|
110041
|
+
catalogToUse = catalogDefs.catalogs?.[catalogRef.catalogName];
|
|
110042
|
+
if (!catalogToUse) {
|
|
110043
|
+
const availableCatalogs = Object.keys(catalogDefs.catalogs || {}).filter((c7) => c7 !== "default");
|
|
110044
|
+
const defaultCatalog = !!catalogDefs.catalog ? "catalog" : !catalogDefs.catalogs?.default ? "catalogs.default" : null;
|
|
110045
|
+
const suggestions = [
|
|
110046
|
+
`Define the catalog in ${YARNRC_FILENAME} under the "catalogs" key`
|
|
110047
|
+
];
|
|
110048
|
+
if (availableCatalogs.length > 0) {
|
|
110049
|
+
suggestions.push(`Or select from the available named catalogs: ${availableCatalogs.map((c7) => `"catalog:${c7}"`).join(", ")}`);
|
|
110050
|
+
}
|
|
110051
|
+
if (defaultCatalog) {
|
|
110052
|
+
suggestions.push(`Or use the default catalog ("${defaultCatalog}")`);
|
|
110053
|
+
}
|
|
110054
|
+
throw new Error((0, manager_1.formatCatalogError)(`Catalog "${catalogRef.catalogName}" not found in ${YARNRC_FILENAME}`, suggestions));
|
|
110055
|
+
}
|
|
110056
|
+
}
|
|
110057
|
+
if (!catalogToUse[packageName]) {
|
|
110058
|
+
let catalogName;
|
|
110059
|
+
if (catalogRef.isDefaultCatalog) {
|
|
110060
|
+
const hasCatalog = !!catalogDefs.catalog;
|
|
110061
|
+
catalogName = hasCatalog ? 'default catalog ("catalog")' : 'default catalog ("catalogs.default")';
|
|
110062
|
+
} else {
|
|
110063
|
+
catalogName = `catalog '${catalogRef.catalogName}'`;
|
|
110064
|
+
}
|
|
110065
|
+
const availablePackages = Object.keys(catalogToUse);
|
|
110066
|
+
const suggestions = [
|
|
110067
|
+
`Add "${packageName}" to ${catalogName} in ${YARNRC_FILENAME}`
|
|
110068
|
+
];
|
|
110069
|
+
if (availablePackages.length > 0) {
|
|
110070
|
+
suggestions.push(`Or select from the available packages in ${catalogName}: ${availablePackages.map((p4) => `"${p4}"`).join(", ")}`);
|
|
110071
|
+
}
|
|
110072
|
+
throw new Error((0, manager_1.formatCatalogError)(`Package "${packageName}" not found in ${catalogName}`, suggestions));
|
|
110073
|
+
}
|
|
110074
|
+
}
|
|
110075
|
+
updateCatalogVersions(treeOrRoot, updates) {
|
|
110076
|
+
let checkExists;
|
|
110077
|
+
let readYaml;
|
|
110078
|
+
let writeYaml;
|
|
110079
|
+
if (typeof treeOrRoot === "string") {
|
|
110080
|
+
const configPath = (0, node_path_1.join)(treeOrRoot, YARNRC_FILENAME);
|
|
110081
|
+
checkExists = () => (0, node_fs_1.existsSync)(configPath);
|
|
110082
|
+
readYaml = () => (0, node_fs_1.readFileSync)(configPath, "utf-8");
|
|
110083
|
+
writeYaml = (content) => (0, node_fs_1.writeFileSync)(configPath, content, "utf-8");
|
|
110084
|
+
} else {
|
|
110085
|
+
checkExists = () => treeOrRoot.exists(YARNRC_FILENAME);
|
|
110086
|
+
readYaml = () => treeOrRoot.read(YARNRC_FILENAME, "utf-8");
|
|
110087
|
+
writeYaml = (content) => treeOrRoot.write(YARNRC_FILENAME, content);
|
|
110088
|
+
}
|
|
110089
|
+
if (!checkExists()) {
|
|
110090
|
+
devkit_exports_1.output.warn({
|
|
110091
|
+
title: `No ${YARNRC_FILENAME} found`,
|
|
110092
|
+
bodyLines: [
|
|
110093
|
+
`Cannot update catalog versions without a ${YARNRC_FILENAME} file.`,
|
|
110094
|
+
`Create a ${YARNRC_FILENAME} file to use catalogs.`
|
|
110095
|
+
]
|
|
110096
|
+
});
|
|
110097
|
+
return;
|
|
110098
|
+
}
|
|
110099
|
+
try {
|
|
110100
|
+
const configContent = readYaml();
|
|
110101
|
+
const configData = (0, js_yaml_1.load)(configContent) || {};
|
|
110102
|
+
let hasChanges = false;
|
|
110103
|
+
for (const update of updates) {
|
|
110104
|
+
const { packageName, version, catalogName } = update;
|
|
110105
|
+
const normalizedCatalogName = catalogName === "default" ? void 0 : catalogName;
|
|
110106
|
+
let targetCatalog;
|
|
110107
|
+
if (!normalizedCatalogName) {
|
|
110108
|
+
if (configData.catalog) {
|
|
110109
|
+
targetCatalog = configData.catalog;
|
|
110110
|
+
} else if (configData.catalogs?.default) {
|
|
110111
|
+
targetCatalog = configData.catalogs.default;
|
|
110112
|
+
} else {
|
|
110113
|
+
configData.catalog ??= {};
|
|
110114
|
+
targetCatalog = configData.catalog;
|
|
110115
|
+
}
|
|
110116
|
+
} else {
|
|
110117
|
+
configData.catalogs ??= {};
|
|
110118
|
+
configData.catalogs[normalizedCatalogName] ??= {};
|
|
110119
|
+
targetCatalog = configData.catalogs[normalizedCatalogName];
|
|
110120
|
+
}
|
|
110121
|
+
if (targetCatalog[packageName] !== version) {
|
|
110122
|
+
targetCatalog[packageName] = version;
|
|
110123
|
+
hasChanges = true;
|
|
110124
|
+
}
|
|
110125
|
+
}
|
|
110126
|
+
if (hasChanges) {
|
|
110127
|
+
writeYaml((0, js_yaml_1.dump)(configData, {
|
|
110128
|
+
indent: 2,
|
|
110129
|
+
quotingType: '"',
|
|
110130
|
+
forceQuotes: true
|
|
110131
|
+
}));
|
|
110132
|
+
}
|
|
110133
|
+
} catch (error) {
|
|
110134
|
+
devkit_exports_1.output.error({
|
|
110135
|
+
title: "Failed to update catalog versions",
|
|
110136
|
+
bodyLines: [error instanceof Error ? error.message : String(error)]
|
|
110137
|
+
});
|
|
110138
|
+
throw error;
|
|
110139
|
+
}
|
|
110140
|
+
}
|
|
110141
|
+
};
|
|
110142
|
+
exports2.YarnCatalogManager = YarnCatalogManager;
|
|
110143
|
+
function readConfigFromFs(path15) {
|
|
110144
|
+
try {
|
|
110145
|
+
return (0, devkit_internals_1.readYamlFile)(path15);
|
|
110146
|
+
} catch (error) {
|
|
110147
|
+
devkit_exports_1.output.warn({
|
|
110148
|
+
title: `Unable to parse ${YARNRC_FILENAME}`,
|
|
110149
|
+
bodyLines: [error.toString()]
|
|
109924
110150
|
});
|
|
110151
|
+
return null;
|
|
110152
|
+
}
|
|
110153
|
+
}
|
|
110154
|
+
function readConfigFromTree(tree, path15) {
|
|
110155
|
+
const content = tree.read(path15, "utf-8");
|
|
110156
|
+
try {
|
|
110157
|
+
return (0, js_yaml_1.load)(content, { filename: path15 });
|
|
110158
|
+
} catch (error) {
|
|
110159
|
+
devkit_exports_1.output.warn({
|
|
110160
|
+
title: `Unable to parse ${YARNRC_FILENAME}`,
|
|
110161
|
+
bodyLines: [error.toString()]
|
|
110162
|
+
});
|
|
110163
|
+
return null;
|
|
109925
110164
|
}
|
|
109926
|
-
return message;
|
|
109927
110165
|
}
|
|
109928
110166
|
}
|
|
109929
110167
|
});
|
|
109930
110168
|
|
|
109931
|
-
// ../../node_modules/.pnpm/@nx+devkit@22.
|
|
110169
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/catalog/manager-factory.js
|
|
109932
110170
|
var require_manager_factory = __commonJS({
|
|
109933
|
-
"../../node_modules/.pnpm/@nx+devkit@22.
|
|
110171
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/catalog/manager-factory.js"(exports2) {
|
|
109934
110172
|
"use strict";
|
|
109935
110173
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
109936
110174
|
exports2.getCatalogManager = getCatalogManager;
|
|
109937
110175
|
var devkit_exports_1 = require("nx/src/devkit-exports");
|
|
109938
110176
|
var pnpm_manager_1 = require_pnpm_manager();
|
|
110177
|
+
var yarn_manager_1 = require_yarn_manager();
|
|
109939
110178
|
function getCatalogManager(workspaceRoot) {
|
|
109940
110179
|
const packageManager = (0, devkit_exports_1.detectPackageManager)(workspaceRoot);
|
|
109941
110180
|
switch (packageManager) {
|
|
109942
110181
|
case "pnpm":
|
|
109943
110182
|
return new pnpm_manager_1.PnpmCatalogManager();
|
|
110183
|
+
case "yarn":
|
|
110184
|
+
return new yarn_manager_1.YarnCatalogManager();
|
|
109944
110185
|
default:
|
|
109945
110186
|
return null;
|
|
109946
110187
|
}
|
|
@@ -109948,9 +110189,9 @@ var require_manager_factory = __commonJS({
|
|
|
109948
110189
|
}
|
|
109949
110190
|
});
|
|
109950
110191
|
|
|
109951
|
-
// ../../node_modules/.pnpm/@nx+devkit@22.
|
|
110192
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/catalog/index.js
|
|
109952
110193
|
var require_catalog = __commonJS({
|
|
109953
|
-
"../../node_modules/.pnpm/@nx+devkit@22.
|
|
110194
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/catalog/index.js"(exports2) {
|
|
109954
110195
|
"use strict";
|
|
109955
110196
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
109956
110197
|
exports2.getCatalogManager = void 0;
|
|
@@ -109988,9 +110229,9 @@ var require_catalog = __commonJS({
|
|
|
109988
110229
|
}
|
|
109989
110230
|
});
|
|
109990
110231
|
|
|
109991
|
-
// ../../node_modules/.pnpm/@nx+devkit@22.
|
|
110232
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/package-json.js
|
|
109992
110233
|
var require_package_json = __commonJS({
|
|
109993
|
-
"../../node_modules/.pnpm/@nx+devkit@22.
|
|
110234
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/package-json.js"(exports2) {
|
|
109994
110235
|
"use strict";
|
|
109995
110236
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
109996
110237
|
exports2.NX_VERSION = void 0;
|
|
@@ -110392,9 +110633,9 @@ var require_package_json = __commonJS({
|
|
|
110392
110633
|
}
|
|
110393
110634
|
});
|
|
110394
110635
|
|
|
110395
|
-
// ../../node_modules/.pnpm/@nx+devkit@22.
|
|
110636
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/generators/to-js.js
|
|
110396
110637
|
var require_to_js = __commonJS({
|
|
110397
|
-
"../../node_modules/.pnpm/@nx+devkit@22.
|
|
110638
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/generators/to-js.js"(exports2) {
|
|
110398
110639
|
"use strict";
|
|
110399
110640
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
110400
110641
|
exports2.toJS = toJS;
|
|
@@ -110422,9 +110663,9 @@ var require_to_js = __commonJS({
|
|
|
110422
110663
|
}
|
|
110423
110664
|
});
|
|
110424
110665
|
|
|
110425
|
-
// ../../node_modules/.pnpm/@nx+devkit@22.
|
|
110666
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/generators/update-ts-configs-to-js.js
|
|
110426
110667
|
var require_update_ts_configs_to_js = __commonJS({
|
|
110427
|
-
"../../node_modules/.pnpm/@nx+devkit@22.
|
|
110668
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/generators/update-ts-configs-to-js.js"(exports2) {
|
|
110428
110669
|
"use strict";
|
|
110429
110670
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
110430
110671
|
exports2.updateTsConfigsToJs = updateTsConfigsToJs;
|
|
@@ -110468,9 +110709,9 @@ var require_update_ts_configs_to_js = __commonJS({
|
|
|
110468
110709
|
}
|
|
110469
110710
|
});
|
|
110470
110711
|
|
|
110471
|
-
// ../../node_modules/.pnpm/@nx+devkit@22.
|
|
110712
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/generators/run-tasks-in-serial.js
|
|
110472
110713
|
var require_run_tasks_in_serial = __commonJS({
|
|
110473
|
-
"../../node_modules/.pnpm/@nx+devkit@22.
|
|
110714
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/generators/run-tasks-in-serial.js"(exports2) {
|
|
110474
110715
|
"use strict";
|
|
110475
110716
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
110476
110717
|
exports2.runTasksInSerial = runTasksInSerial;
|
|
@@ -110484,9 +110725,9 @@ var require_run_tasks_in_serial = __commonJS({
|
|
|
110484
110725
|
}
|
|
110485
110726
|
});
|
|
110486
110727
|
|
|
110487
|
-
// ../../node_modules/.pnpm/@nx+devkit@22.
|
|
110728
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/generators/visit-not-ignored-files.js
|
|
110488
110729
|
var require_visit_not_ignored_files = __commonJS({
|
|
110489
|
-
"../../node_modules/.pnpm/@nx+devkit@22.
|
|
110730
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/generators/visit-not-ignored-files.js"(exports2) {
|
|
110490
110731
|
"use strict";
|
|
110491
110732
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
110492
110733
|
exports2.visitNotIgnoredFiles = visitNotIgnoredFiles;
|
|
@@ -110516,9 +110757,9 @@ var require_visit_not_ignored_files = __commonJS({
|
|
|
110516
110757
|
}
|
|
110517
110758
|
});
|
|
110518
110759
|
|
|
110519
|
-
// ../../node_modules/.pnpm/@nx+devkit@22.
|
|
110760
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/executors/parse-target-string.js
|
|
110520
110761
|
var require_parse_target_string = __commonJS({
|
|
110521
|
-
"../../node_modules/.pnpm/@nx+devkit@22.
|
|
110762
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/executors/parse-target-string.js"(exports2) {
|
|
110522
110763
|
"use strict";
|
|
110523
110764
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
110524
110765
|
exports2.parseTargetString = parseTargetString;
|
|
@@ -110554,9 +110795,9 @@ var require_parse_target_string = __commonJS({
|
|
|
110554
110795
|
}
|
|
110555
110796
|
});
|
|
110556
110797
|
|
|
110557
|
-
// ../../node_modules/.pnpm/@nx+devkit@22.
|
|
110798
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/executors/read-target-options.js
|
|
110558
110799
|
var require_read_target_options = __commonJS({
|
|
110559
|
-
"../../node_modules/.pnpm/@nx+devkit@22.
|
|
110800
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/executors/read-target-options.js"(exports2) {
|
|
110560
110801
|
"use strict";
|
|
110561
110802
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
110562
110803
|
exports2.readTargetOptions = readTargetOptions;
|
|
@@ -110579,9 +110820,9 @@ var require_read_target_options = __commonJS({
|
|
|
110579
110820
|
}
|
|
110580
110821
|
});
|
|
110581
110822
|
|
|
110582
|
-
// ../../node_modules/.pnpm/@nx+devkit@22.
|
|
110823
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/names.js
|
|
110583
110824
|
var require_names = __commonJS({
|
|
110584
|
-
"../../node_modules/.pnpm/@nx+devkit@22.
|
|
110825
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/names.js"(exports2) {
|
|
110585
110826
|
"use strict";
|
|
110586
110827
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
110587
110828
|
exports2.names = names;
|
|
@@ -110613,9 +110854,9 @@ var require_names = __commonJS({
|
|
|
110613
110854
|
}
|
|
110614
110855
|
});
|
|
110615
110856
|
|
|
110616
|
-
// ../../node_modules/.pnpm/@nx+devkit@22.
|
|
110857
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/get-workspace-layout.js
|
|
110617
110858
|
var require_get_workspace_layout = __commonJS({
|
|
110618
|
-
"../../node_modules/.pnpm/@nx+devkit@22.
|
|
110859
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/get-workspace-layout.js"(exports2) {
|
|
110619
110860
|
"use strict";
|
|
110620
110861
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
110621
110862
|
exports2.getWorkspaceLayout = getWorkspaceLayout;
|
|
@@ -110653,9 +110894,9 @@ var require_get_workspace_layout = __commonJS({
|
|
|
110653
110894
|
}
|
|
110654
110895
|
});
|
|
110655
110896
|
|
|
110656
|
-
// ../../node_modules/.pnpm/@nx+devkit@22.
|
|
110897
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/string-change.js
|
|
110657
110898
|
var require_string_change = __commonJS({
|
|
110658
|
-
"../../node_modules/.pnpm/@nx+devkit@22.
|
|
110899
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/string-change.js"(exports2) {
|
|
110659
110900
|
"use strict";
|
|
110660
110901
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
110661
110902
|
exports2.ChangeType = void 0;
|
|
@@ -110732,9 +110973,9 @@ var require_string_change = __commonJS({
|
|
|
110732
110973
|
}
|
|
110733
110974
|
});
|
|
110734
110975
|
|
|
110735
|
-
// ../../node_modules/.pnpm/@nx+devkit@22.
|
|
110976
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/offset-from-root.js
|
|
110736
110977
|
var require_offset_from_root = __commonJS({
|
|
110737
|
-
"../../node_modules/.pnpm/@nx+devkit@22.
|
|
110978
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/offset-from-root.js"(exports2) {
|
|
110738
110979
|
"use strict";
|
|
110739
110980
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
110740
110981
|
exports2.offsetFromRoot = offsetFromRoot;
|
|
@@ -110754,9 +110995,9 @@ var require_offset_from_root = __commonJS({
|
|
|
110754
110995
|
}
|
|
110755
110996
|
});
|
|
110756
110997
|
|
|
110757
|
-
// ../../node_modules/.pnpm/@nx+devkit@22.
|
|
110998
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/invoke-nx-generator.js
|
|
110758
110999
|
var require_invoke_nx_generator = __commonJS({
|
|
110759
|
-
"../../node_modules/.pnpm/@nx+devkit@22.
|
|
111000
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/invoke-nx-generator.js"(exports2) {
|
|
110760
111001
|
"use strict";
|
|
110761
111002
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
110762
111003
|
exports2.convertNxGenerator = convertNxGenerator;
|
|
@@ -136114,9 +136355,9 @@ var require_src3 = __commonJS({
|
|
|
136114
136355
|
}
|
|
136115
136356
|
});
|
|
136116
136357
|
|
|
136117
|
-
// ../../node_modules/.pnpm/@nx+devkit@22.
|
|
136358
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/convert-nx-executor.js
|
|
136118
136359
|
var require_convert_nx_executor = __commonJS({
|
|
136119
|
-
"../../node_modules/.pnpm/@nx+devkit@22.
|
|
136360
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/convert-nx-executor.js"(exports2) {
|
|
136120
136361
|
"use strict";
|
|
136121
136362
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
136122
136363
|
exports2.convertNxExecutor = convertNxExecutor;
|
|
@@ -136197,9 +136438,9 @@ var require_convert_nx_executor = __commonJS({
|
|
|
136197
136438
|
}
|
|
136198
136439
|
});
|
|
136199
136440
|
|
|
136200
|
-
// ../../node_modules/.pnpm/@nx+devkit@22.
|
|
136441
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/move-dir.js
|
|
136201
136442
|
var require_move_dir = __commonJS({
|
|
136202
|
-
"../../node_modules/.pnpm/@nx+devkit@22.
|
|
136443
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/src/utils/move-dir.js"(exports2) {
|
|
136203
136444
|
"use strict";
|
|
136204
136445
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
136205
136446
|
exports2.moveFilesToNewDirectory = moveFilesToNewDirectory;
|
|
@@ -136224,9 +136465,9 @@ var require_move_dir = __commonJS({
|
|
|
136224
136465
|
}
|
|
136225
136466
|
});
|
|
136226
136467
|
|
|
136227
|
-
// ../../node_modules/.pnpm/@nx+devkit@22.
|
|
136468
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/public-api.js
|
|
136228
136469
|
var require_public_api = __commonJS({
|
|
136229
|
-
"../../node_modules/.pnpm/@nx+devkit@22.
|
|
136470
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/public-api.js"(exports2) {
|
|
136230
136471
|
"use strict";
|
|
136231
136472
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
136232
136473
|
exports2.moveFilesToNewDirectory = exports2.convertNxExecutor = exports2.convertNxGenerator = exports2.offsetFromRoot = exports2.ChangeType = exports2.applyChangesToString = exports2.extractLayoutDirectory = exports2.getWorkspaceLayout = exports2.names = exports2.installPackagesTask = exports2.NX_VERSION = exports2.getDependencyVersionFromPackageJson = exports2.ensurePackage = exports2.removeDependenciesFromPackageJson = exports2.addDependenciesToPackageJson = exports2.readTargetOptions = exports2.targetToTargetString = exports2.parseTargetString = exports2.visitNotIgnoredFiles = exports2.runTasksInSerial = exports2.updateTsConfigsToJs = exports2.toJS = exports2.OverwriteStrategy = exports2.generateFiles = exports2.formatFiles = void 0;
|
|
@@ -136325,9 +136566,9 @@ var require_public_api = __commonJS({
|
|
|
136325
136566
|
}
|
|
136326
136567
|
});
|
|
136327
136568
|
|
|
136328
|
-
// ../../node_modules/.pnpm/@nx+devkit@22.
|
|
136569
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/index.js
|
|
136329
136570
|
var require_devkit = __commonJS({
|
|
136330
|
-
"../../node_modules/.pnpm/@nx+devkit@22.
|
|
136571
|
+
"../../node_modules/.pnpm/@nx+devkit@22.6.0_nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_30d082607ae21f723b6d52779543f219/node_modules/@nx/devkit/index.js"(exports2) {
|
|
136331
136572
|
"use strict";
|
|
136332
136573
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
136333
136574
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/tsdown",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.122",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing `tsdown` utilities for building Storm Software libraries and applications",
|
|
6
6
|
"repository": {
|
|
@@ -146,9 +146,9 @@
|
|
|
146
146
|
"tsdown": { "optional": false }
|
|
147
147
|
},
|
|
148
148
|
"dependencies": {
|
|
149
|
-
"@storm-software/build-tools": "^0.158.
|
|
150
|
-
"@storm-software/config": "^1.135.
|
|
151
|
-
"@storm-software/config-tools": "^1.189.
|
|
149
|
+
"@storm-software/build-tools": "^0.158.121",
|
|
150
|
+
"@storm-software/config": "^1.135.41",
|
|
151
|
+
"@storm-software/config-tools": "^1.189.40",
|
|
152
152
|
"chokidar": "^4.0.3",
|
|
153
153
|
"commander": "^12.1.0",
|
|
154
154
|
"es-toolkit": "^1.45.1",
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
},
|
|
161
161
|
"devDependencies": {
|
|
162
162
|
"@microsoft/api-extractor": "^7.57.7",
|
|
163
|
-
"@nx/devkit": "^22.
|
|
163
|
+
"@nx/devkit": "^22.6.0",
|
|
164
164
|
"@nx/js": "22.5.1",
|
|
165
165
|
"@types/node": "^25.5.0",
|
|
166
166
|
"defu": "6.1.4",
|
|
@@ -171,5 +171,5 @@
|
|
|
171
171
|
},
|
|
172
172
|
"publishConfig": { "access": "public" },
|
|
173
173
|
"sideEffects": false,
|
|
174
|
-
"gitHead": "
|
|
174
|
+
"gitHead": "f5dd2e96c8a8f7afd74015f40e6fbfb7fb0b57c9"
|
|
175
175
|
}
|