@storm-software/pulumi-tools 0.7.1 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/{chunk-MK5672IG.js → chunk-6FXELAAU.js} +2 -2
- package/dist/{chunk-ZKKGELHG.js → chunk-7PPYQH3N.js} +2 -2
- package/dist/{chunk-YKA43YLP.mjs → chunk-A6CBZSEQ.mjs} +1 -1
- package/dist/{chunk-SLTQXX2P.js → chunk-AUKNCSAG.js} +5 -5
- package/dist/{chunk-XJAQ2474.mjs → chunk-BDMO52WS.mjs} +1 -1
- package/dist/{chunk-IVJCWDEC.js → chunk-EXRYBEI6.js} +2 -2
- package/dist/{chunk-L3GQE7P7.js → chunk-GHJM2ZLS.js} +133 -144
- package/dist/{chunk-P37NP2DS.mjs → chunk-IJD3Y56I.mjs} +1 -1
- package/dist/{chunk-VZUKDJHC.mjs → chunk-KUMMH6MK.mjs} +136 -147
- package/dist/{chunk-SFVBFQZH.js → chunk-L2RV7FVQ.js} +2 -2
- package/dist/{chunk-W67Y7ZM5.mjs → chunk-OMYSB5DA.mjs} +1 -1
- package/dist/{chunk-GZTEXR7Q.mjs → chunk-T6M6HPMY.mjs} +1 -1
- package/dist/{chunk-2XCPMHDR.js → chunk-TEMOWP6U.js} +2 -2
- package/dist/{chunk-CBUURZ5R.mjs → chunk-TRHIR6LO.mjs} +1 -1
- package/dist/{chunk-F7LBNSGO.js → chunk-WAPECT7Q.js} +3 -3
- package/dist/{chunk-UMOWC7KG.mjs → chunk-XQUDEM6K.mjs} +1 -1
- package/dist/executors.js +7 -7
- package/dist/executors.mjs +7 -7
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +2 -2
- package/dist/index.js +9 -9
- package/dist/index.mjs +8 -8
- package/dist/src/base/base-executor.js +3 -3
- package/dist/src/base/base-executor.mjs +2 -2
- package/dist/src/base/index.js +3 -3
- package/dist/src/base/index.mjs +2 -2
- package/dist/src/executors/config/executor.js +4 -4
- package/dist/src/executors/config/executor.mjs +3 -3
- package/dist/src/executors/import/executor.js +4 -4
- package/dist/src/executors/import/executor.mjs +3 -3
- package/dist/src/executors/preview/executor.js +4 -4
- package/dist/src/executors/preview/executor.mjs +3 -3
- package/dist/src/executors/refresh/executor.js +4 -4
- package/dist/src/executors/refresh/executor.mjs +3 -3
- package/dist/src/executors/up/executor.js +4 -4
- package/dist/src/executors/up/executor.mjs +3 -3
- package/dist/src/generators/init/generator.js +3 -3
- package/dist/src/generators/init/generator.mjs +2 -2
- package/package.json +142 -1
|
@@ -655,26 +655,26 @@ var applyWorkspaceTokens = /* @__PURE__ */ __name(async (options, config, tokeni
|
|
|
655
655
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
656
656
|
var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, options = {}) => {
|
|
657
657
|
const workspacePath = filePath || findWorkspaceRoot(filePath);
|
|
658
|
-
let config = loadConfig({
|
|
658
|
+
let config = await loadConfig({
|
|
659
659
|
cwd: workspacePath,
|
|
660
660
|
packageJson: true,
|
|
661
661
|
name: fileName,
|
|
662
662
|
envName: fileName?.toUpperCase(),
|
|
663
663
|
jitiOptions: {
|
|
664
664
|
debug: false,
|
|
665
|
-
|
|
665
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
666
666
|
},
|
|
667
667
|
...options
|
|
668
668
|
});
|
|
669
669
|
if (!config || Object.keys(config).length === 0) {
|
|
670
|
-
config = loadConfig({
|
|
670
|
+
config = await loadConfig({
|
|
671
671
|
cwd: workspacePath,
|
|
672
672
|
packageJson: true,
|
|
673
673
|
name: fileName,
|
|
674
674
|
envName: fileName?.toUpperCase(),
|
|
675
675
|
jitiOptions: {
|
|
676
676
|
debug: false,
|
|
677
|
-
|
|
677
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
678
678
|
},
|
|
679
679
|
configFile: fileName,
|
|
680
680
|
...options
|
|
@@ -1586,8 +1586,8 @@ import { logger } from "@nx/devkit";
|
|
|
1586
1586
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
1587
1587
|
|
|
1588
1588
|
// ../esbuild/src/build.ts
|
|
1589
|
-
import { hfs as
|
|
1590
|
-
import { createProjectGraphAsync
|
|
1589
|
+
import { hfs as hfs3 } from "@humanfs/node";
|
|
1590
|
+
import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2, writeJsonFile } from "@nx/devkit";
|
|
1591
1591
|
|
|
1592
1592
|
// ../build-tools/src/config.ts
|
|
1593
1593
|
var DEFAULT_COMPILED_BANNER = `
|
|
@@ -1614,13 +1614,14 @@ import { stripIndents } from "@nx/devkit";
|
|
|
1614
1614
|
import { relative as relative2 } from "path";
|
|
1615
1615
|
|
|
1616
1616
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
1617
|
-
import {
|
|
1618
|
-
import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph } from "@nx/devkit";
|
|
1617
|
+
import { readCachedProjectGraph, readProjectsConfigurationFromProjectGraph } from "@nx/devkit";
|
|
1619
1618
|
import { copyAssets as copyAssetsBase } from "@nx/js";
|
|
1620
1619
|
import { glob } from "glob";
|
|
1620
|
+
import { readFile as readFile2, writeFile } from "node:fs/promises";
|
|
1621
1621
|
|
|
1622
1622
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
1623
|
-
import {
|
|
1623
|
+
import { existsSync as existsSync3 } from "node:fs";
|
|
1624
|
+
import { readFile } from "node:fs/promises";
|
|
1624
1625
|
var readNxConfig = /* @__PURE__ */ __name(async (workspaceRoot3) => {
|
|
1625
1626
|
let rootDir = workspaceRoot3;
|
|
1626
1627
|
if (!rootDir) {
|
|
@@ -1628,10 +1629,11 @@ var readNxConfig = /* @__PURE__ */ __name(async (workspaceRoot3) => {
|
|
|
1628
1629
|
rootDir = config.workspaceRoot;
|
|
1629
1630
|
}
|
|
1630
1631
|
const nxJsonPath = joinPaths(rootDir, "nx.json");
|
|
1631
|
-
if (!
|
|
1632
|
+
if (!existsSync3(nxJsonPath)) {
|
|
1632
1633
|
throw new Error("Cannot find project.json configuration");
|
|
1633
1634
|
}
|
|
1634
|
-
|
|
1635
|
+
const configContent = await readFile(nxJsonPath, "utf8");
|
|
1636
|
+
return JSON.parse(configContent);
|
|
1635
1637
|
}, "readNxConfig");
|
|
1636
1638
|
|
|
1637
1639
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
@@ -1666,14 +1668,12 @@ var copyAssets = /* @__PURE__ */ __name(async (config, assets, outputPath, proje
|
|
|
1666
1668
|
});
|
|
1667
1669
|
}
|
|
1668
1670
|
const nxJson = readNxConfig(config.workspaceRoot);
|
|
1669
|
-
const projectGraph =
|
|
1670
|
-
exitOnError: true
|
|
1671
|
-
});
|
|
1671
|
+
const projectGraph = readCachedProjectGraph();
|
|
1672
1672
|
const projectsConfigurations = readProjectsConfigurationFromProjectGraph(projectGraph);
|
|
1673
1673
|
if (!projectsConfigurations?.projects?.[projectName]) {
|
|
1674
1674
|
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
1675
1675
|
}
|
|
1676
|
-
const buildTarget = projectsConfigurations.projects[projectName]
|
|
1676
|
+
const buildTarget = projectsConfigurations.projects[projectName].targets?.build;
|
|
1677
1677
|
if (!buildTarget) {
|
|
1678
1678
|
throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${joinPaths(projectRoot, "project.json")}`);
|
|
1679
1679
|
}
|
|
@@ -1703,42 +1703,30 @@ var copyAssets = /* @__PURE__ */ __name(async (config, assets, outputPath, proje
|
|
|
1703
1703
|
joinPaths(config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
1704
1704
|
joinPaths(config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
1705
1705
|
]);
|
|
1706
|
-
await Promise.allSettled(files.map(async (file) =>
|
|
1706
|
+
await Promise.allSettled(files.map(async (file) => writeFile(file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
|
|
1707
1707
|
|
|
1708
|
-
${await
|
|
1708
|
+
${await readFile2(file, "utf8")}
|
|
1709
1709
|
|
|
1710
1710
|
${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `// ${footer}` : ""}`)));
|
|
1711
1711
|
}
|
|
1712
1712
|
}, "copyAssets");
|
|
1713
1713
|
|
|
1714
1714
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
1715
|
-
import { hfs as hfs3 } from "@humanfs/node";
|
|
1716
1715
|
import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildable-libs-utils";
|
|
1717
1716
|
import { Glob } from "glob";
|
|
1718
|
-
import {
|
|
1717
|
+
import { existsSync as existsSync4 } from "node:fs";
|
|
1718
|
+
import { readFile as readFile3 } from "node:fs/promises";
|
|
1719
|
+
import { readCachedProjectGraph as readCachedProjectGraph2 } from "nx/src/project-graph/project-graph";
|
|
1719
1720
|
var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot3, projectRoot, projectName, packageJson) => {
|
|
1720
|
-
const
|
|
1721
|
-
exitOnError: true
|
|
1722
|
-
});
|
|
1723
|
-
const projectConfigurations = readProjectsConfigurationFromProjectGraph2(projectGraph);
|
|
1724
|
-
if (!projectConfigurations?.projects?.[projectName]) {
|
|
1725
|
-
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
1726
|
-
}
|
|
1727
|
-
const projectJsonPath = joinPaths(workspaceRoot3, projectRoot, "project.json");
|
|
1728
|
-
if (!await hfs3.isFile(projectJsonPath)) {
|
|
1729
|
-
throw new Error("Cannot find project.json configuration");
|
|
1730
|
-
}
|
|
1731
|
-
if (!projectConfigurations?.projects?.[projectName]) {
|
|
1732
|
-
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
1733
|
-
}
|
|
1734
|
-
const projectDependencies = calculateProjectBuildableDependencies(void 0, projectGraph, workspaceRoot3, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
|
|
1721
|
+
const projectDependencies = calculateProjectBuildableDependencies(void 0, readCachedProjectGraph2(), workspaceRoot3, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
|
|
1735
1722
|
const localPackages = [];
|
|
1736
1723
|
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot3)) {
|
|
1737
1724
|
const projectNode = project.node;
|
|
1738
1725
|
if (projectNode.data.root) {
|
|
1739
1726
|
const projectPackageJsonPath = joinPaths(workspaceRoot3, projectNode.data.root, "package.json");
|
|
1740
|
-
if (
|
|
1741
|
-
const
|
|
1727
|
+
if (existsSync4(projectPackageJsonPath)) {
|
|
1728
|
+
const projectPackageJsonContent = await readFile3(projectPackageJsonPath, "utf8");
|
|
1729
|
+
const projectPackageJson = JSON.parse(projectPackageJsonContent);
|
|
1742
1730
|
if (projectPackageJson.private !== false) {
|
|
1743
1731
|
localPackages.push(projectPackageJson);
|
|
1744
1732
|
}
|
|
@@ -1774,7 +1762,8 @@ var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot3, proje
|
|
|
1774
1762
|
}, "addPackageDependencies");
|
|
1775
1763
|
var addWorkspacePackageJsonFields = /* @__PURE__ */ __name(async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
1776
1764
|
const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : findWorkspaceRoot();
|
|
1777
|
-
const
|
|
1765
|
+
const workspacePackageJsonContent = await readFile3(joinPaths(workspaceRoot3, "package.json"), "utf8");
|
|
1766
|
+
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
1778
1767
|
packageJson.type ??= "module";
|
|
1779
1768
|
packageJson.sideEffects ??= false;
|
|
1780
1769
|
if (includeSrc === true) {
|
|
@@ -1920,18 +1909,18 @@ var getEnv = /* @__PURE__ */ __name((builder, options) => {
|
|
|
1920
1909
|
}, "getEnv");
|
|
1921
1910
|
|
|
1922
1911
|
// ../build-tools/src/utilities/get-out-extension.ts
|
|
1923
|
-
function getOutExtension(
|
|
1912
|
+
function getOutExtension(format2, pkgType) {
|
|
1924
1913
|
let jsExtension = ".js";
|
|
1925
1914
|
let dtsExtension = ".d.ts";
|
|
1926
|
-
if (pkgType === "module" &&
|
|
1915
|
+
if (pkgType === "module" && format2 === "cjs") {
|
|
1927
1916
|
jsExtension = ".cjs";
|
|
1928
1917
|
dtsExtension = ".d.cts";
|
|
1929
1918
|
}
|
|
1930
|
-
if (pkgType !== "module" &&
|
|
1919
|
+
if (pkgType !== "module" && format2 === "esm") {
|
|
1931
1920
|
jsExtension = ".mjs";
|
|
1932
1921
|
dtsExtension = ".d.mts";
|
|
1933
1922
|
}
|
|
1934
|
-
if (
|
|
1923
|
+
if (format2 === "iife") {
|
|
1935
1924
|
jsExtension = ".global.js";
|
|
1936
1925
|
}
|
|
1937
1926
|
return {
|
|
@@ -2095,11 +2084,11 @@ var RendererEngine = class {
|
|
|
2095
2084
|
};
|
|
2096
2085
|
|
|
2097
2086
|
// ../esbuild/src/clean.ts
|
|
2098
|
-
import { hfs
|
|
2087
|
+
import { hfs } from "@humanfs/node";
|
|
2099
2088
|
async function clean(name = "ESBuild", directory, config) {
|
|
2100
2089
|
writeDebug(` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
2101
2090
|
const stopwatch = getStopwatch(`${name} output clean`);
|
|
2102
|
-
await
|
|
2091
|
+
await hfs.deleteAll(directory);
|
|
2103
2092
|
stopwatch();
|
|
2104
2093
|
}
|
|
2105
2094
|
__name(clean, "clean");
|
|
@@ -2274,7 +2263,7 @@ var resolvePathsPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
|
|
|
2274
2263
|
}), "resolvePathsPlugin");
|
|
2275
2264
|
|
|
2276
2265
|
// ../esbuild/src/plugins/tsc.ts
|
|
2277
|
-
import { hfs as
|
|
2266
|
+
import { hfs as hfs2 } from "@humanfs/node";
|
|
2278
2267
|
import { Extractor, ExtractorConfig } from "@microsoft/api-extractor";
|
|
2279
2268
|
function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
2280
2269
|
const { dependencies, peerDependencies, devDependencies } = __require(joinPaths(options.projectRoot, "package.json"));
|
|
@@ -2348,18 +2337,18 @@ var tscPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
|
|
|
2348
2337
|
const entryPoint = resolvedOptions.entryPoints[0].replace(sourceRoot, "").replace(/\.ts$/, "");
|
|
2349
2338
|
const bundlePath = joinPaths(resolvedOptions.outdir, entryPoint);
|
|
2350
2339
|
let dtsPath;
|
|
2351
|
-
if (await
|
|
2340
|
+
if (await hfs2.isFile(joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
|
|
2352
2341
|
dtsPath = joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
|
|
2353
|
-
} else if (await
|
|
2342
|
+
} else if (await hfs2.isFile(joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
|
|
2354
2343
|
dtsPath = joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
|
|
2355
2344
|
}
|
|
2356
2345
|
const ext = resolvedOptions.outExtension.dts || resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
|
|
2357
2346
|
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
2358
2347
|
bundleTypeDefinitions(dtsPath, bundlePath, resolvedOptions.external ?? [], resolvedOptions);
|
|
2359
|
-
const dtsContents = await
|
|
2360
|
-
await
|
|
2348
|
+
const dtsContents = await hfs2.text(`${bundlePath}.d.ts`);
|
|
2349
|
+
await hfs2.write(`${bundlePath}.${ext}`, dtsContents);
|
|
2361
2350
|
} else {
|
|
2362
|
-
await
|
|
2351
|
+
await hfs2.write(`${bundlePath}.${ext}`, `export * from './${entryPoint}'`);
|
|
2363
2352
|
}
|
|
2364
2353
|
}
|
|
2365
2354
|
});
|
|
@@ -2604,16 +2593,16 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
2604
2593
|
const config = await loadStormConfig(workspaceRoot3.dir);
|
|
2605
2594
|
writeDebug(" \u2699\uFE0F Resolving build options", config);
|
|
2606
2595
|
const stopwatch = getStopwatch("Build options resolution");
|
|
2607
|
-
const projectGraph = await
|
|
2596
|
+
const projectGraph = await createProjectGraphAsync({
|
|
2608
2597
|
exitOnError: true
|
|
2609
2598
|
});
|
|
2610
2599
|
const projectJsonPath = joinPaths(workspaceRoot3.dir, projectRoot, "project.json");
|
|
2611
|
-
if (!await
|
|
2600
|
+
if (!await hfs3.isFile(projectJsonPath)) {
|
|
2612
2601
|
throw new Error("Cannot find project.json configuration");
|
|
2613
2602
|
}
|
|
2614
|
-
const projectJson = await
|
|
2603
|
+
const projectJson = await hfs3.json(projectJsonPath);
|
|
2615
2604
|
const projectName = projectJson.name;
|
|
2616
|
-
const projectConfigurations =
|
|
2605
|
+
const projectConfigurations = readProjectsConfigurationFromProjectGraph2(projectGraph);
|
|
2617
2606
|
if (!projectConfigurations?.projects?.[projectName]) {
|
|
2618
2607
|
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
2619
2608
|
}
|
|
@@ -2621,10 +2610,10 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
2621
2610
|
options.name ??= `${projectName}-${options.format}`;
|
|
2622
2611
|
options.target ??= DEFAULT_TARGET;
|
|
2623
2612
|
const packageJsonPath = joinPaths(workspaceRoot3.dir, options.projectRoot, "package.json");
|
|
2624
|
-
if (!await
|
|
2613
|
+
if (!await hfs3.isFile(packageJsonPath)) {
|
|
2625
2614
|
throw new Error("Cannot find package.json configuration");
|
|
2626
2615
|
}
|
|
2627
|
-
const packageJson = await
|
|
2616
|
+
const packageJson = await hfs3.json(packageJsonPath);
|
|
2628
2617
|
const outExtension = getOutputExtensionMap(options, packageJson.type);
|
|
2629
2618
|
const env = getEnv("esbuild", options);
|
|
2630
2619
|
const result = {
|
|
@@ -2703,14 +2692,14 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
2703
2692
|
return result;
|
|
2704
2693
|
}, "resolveOptions");
|
|
2705
2694
|
async function generatePackageJson(context2) {
|
|
2706
|
-
if (context2.options.generatePackageJson !== false && await
|
|
2695
|
+
if (context2.options.generatePackageJson !== false && await hfs3.isFile(joinPaths(context2.options.projectRoot, "package.json"))) {
|
|
2707
2696
|
writeDebug(" \u270D\uFE0F Writing package.json file", context2.options.config);
|
|
2708
2697
|
const stopwatch = getStopwatch("Write package.json file");
|
|
2709
2698
|
const packageJsonPath = joinPaths(context2.options.projectRoot, "project.json");
|
|
2710
|
-
if (!await
|
|
2699
|
+
if (!await hfs3.isFile(packageJsonPath)) {
|
|
2711
2700
|
throw new Error("Cannot find package.json configuration");
|
|
2712
2701
|
}
|
|
2713
|
-
let packageJson = await
|
|
2702
|
+
let packageJson = await hfs3.json(joinPaths(context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"));
|
|
2714
2703
|
if (!packageJson) {
|
|
2715
2704
|
throw new Error("Cannot find package.json configuration file");
|
|
2716
2705
|
}
|
|
@@ -2783,7 +2772,7 @@ async function executeEsBuild(context2) {
|
|
|
2783
2772
|
const result = await esbuild2.build(context2.options);
|
|
2784
2773
|
if (result.metafile) {
|
|
2785
2774
|
const metafilePath = `${context2.options.outdir}/${context2.options.name}.meta.json`;
|
|
2786
|
-
await
|
|
2775
|
+
await hfs3.write(metafilePath, JSON.stringify(result.metafile));
|
|
2787
2776
|
}
|
|
2788
2777
|
stopwatch();
|
|
2789
2778
|
return context2;
|
|
@@ -2933,8 +2922,9 @@ import { execSync as execSync4 } from "node:child_process";
|
|
|
2933
2922
|
import fs3 from "node:fs/promises";
|
|
2934
2923
|
|
|
2935
2924
|
// ../workspace-tools/src/utils/pnpm-deps-update.ts
|
|
2936
|
-
import { existsSync as
|
|
2937
|
-
import { readFile, writeFile } from "node:fs/promises";
|
|
2925
|
+
import { existsSync as existsSync5 } from "node:fs";
|
|
2926
|
+
import { readFile as readFile4, writeFile as writeFile2 } from "node:fs/promises";
|
|
2927
|
+
import { format } from "prettier";
|
|
2938
2928
|
import readYamlFile from "read-yaml-file";
|
|
2939
2929
|
|
|
2940
2930
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
@@ -2975,18 +2965,18 @@ var executor_default7 = withRunExecutor("Size-Limit Performance Test Executor",
|
|
|
2975
2965
|
});
|
|
2976
2966
|
|
|
2977
2967
|
// ../tsdown/src/build.ts
|
|
2978
|
-
import { hfs as
|
|
2979
|
-
import { createProjectGraphAsync as
|
|
2968
|
+
import { hfs as hfs5 } from "@humanfs/node";
|
|
2969
|
+
import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph3, writeJsonFile as writeJsonFile2 } from "@nx/devkit";
|
|
2980
2970
|
import defu4 from "defu";
|
|
2981
2971
|
import { findWorkspaceRoot as findWorkspaceRoot3 } from "nx/src/utils/find-workspace-root";
|
|
2982
2972
|
import { build as tsdown } from "tsdown";
|
|
2983
2973
|
|
|
2984
2974
|
// ../tsdown/src/clean.ts
|
|
2985
|
-
import { hfs as
|
|
2975
|
+
import { hfs as hfs4 } from "@humanfs/node";
|
|
2986
2976
|
async function clean2(name = "ESBuild", directory, config) {
|
|
2987
2977
|
writeDebug(` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
2988
2978
|
const stopwatch = getStopwatch(`${name} output clean`);
|
|
2989
|
-
await
|
|
2979
|
+
await hfs4.deleteAll(directory);
|
|
2990
2980
|
stopwatch();
|
|
2991
2981
|
}
|
|
2992
2982
|
__name(clean2, "clean");
|
|
@@ -3023,16 +3013,16 @@ var resolveOptions2 = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
3023
3013
|
const config = await loadStormConfig(workspaceRoot3.dir);
|
|
3024
3014
|
writeDebug(" \u2699\uFE0F Resolving build options", config);
|
|
3025
3015
|
const stopwatch = getStopwatch("Build options resolution");
|
|
3026
|
-
const projectGraph = await
|
|
3016
|
+
const projectGraph = await createProjectGraphAsync2({
|
|
3027
3017
|
exitOnError: true
|
|
3028
3018
|
});
|
|
3029
3019
|
const projectJsonPath = joinPaths(workspaceRoot3.dir, projectRoot, "project.json");
|
|
3030
|
-
if (!await
|
|
3020
|
+
if (!await hfs5.isFile(projectJsonPath)) {
|
|
3031
3021
|
throw new Error("Cannot find project.json configuration");
|
|
3032
3022
|
}
|
|
3033
|
-
const projectJson = await
|
|
3023
|
+
const projectJson = await hfs5.json(projectJsonPath);
|
|
3034
3024
|
const projectName = projectJson.name;
|
|
3035
|
-
const projectConfigurations =
|
|
3025
|
+
const projectConfigurations = readProjectsConfigurationFromProjectGraph3(projectGraph);
|
|
3036
3026
|
if (!projectConfigurations?.projects?.[projectName]) {
|
|
3037
3027
|
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
3038
3028
|
}
|
|
@@ -3040,7 +3030,7 @@ var resolveOptions2 = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
3040
3030
|
options.name ??= `${projectName}-${options.format}`;
|
|
3041
3031
|
options.target ??= DEFAULT_TARGET;
|
|
3042
3032
|
const packageJsonPath = joinPaths(workspaceRoot3.dir, options.projectRoot, "package.json");
|
|
3043
|
-
if (!await
|
|
3033
|
+
if (!await hfs5.isFile(packageJsonPath)) {
|
|
3044
3034
|
throw new Error("Cannot find package.json configuration");
|
|
3045
3035
|
}
|
|
3046
3036
|
const env = getEnv("tsdown", options);
|
|
@@ -3095,14 +3085,14 @@ var resolveOptions2 = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
3095
3085
|
return result;
|
|
3096
3086
|
}, "resolveOptions");
|
|
3097
3087
|
async function generatePackageJson2(options) {
|
|
3098
|
-
if (options.generatePackageJson !== false && await
|
|
3088
|
+
if (options.generatePackageJson !== false && await hfs5.isFile(joinPaths(options.projectRoot, "package.json"))) {
|
|
3099
3089
|
writeDebug(" \u270D\uFE0F Writing package.json file", options.config);
|
|
3100
3090
|
const stopwatch = getStopwatch("Write package.json file");
|
|
3101
3091
|
const packageJsonPath = joinPaths(options.projectRoot, "project.json");
|
|
3102
|
-
if (!await
|
|
3092
|
+
if (!await hfs5.isFile(packageJsonPath)) {
|
|
3103
3093
|
throw new Error("Cannot find package.json configuration");
|
|
3104
3094
|
}
|
|
3105
|
-
let packageJson = await
|
|
3095
|
+
let packageJson = await hfs5.json(joinPaths(options.config.workspaceRoot, options.projectRoot, "package.json"));
|
|
3106
3096
|
if (!packageJson) {
|
|
3107
3097
|
throw new Error("Cannot find package.json configuration file");
|
|
3108
3098
|
}
|
|
@@ -3280,21 +3270,25 @@ var executor_default9 = withRunExecutor("Typia runtime validation generator", ty
|
|
|
3280
3270
|
});
|
|
3281
3271
|
|
|
3282
3272
|
// ../unbuild/src/build.ts
|
|
3283
|
-
import {
|
|
3284
|
-
import { createProjectGraphAsync as createProjectGraphAsync6, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph5, writeJsonFile as writeJsonFile3 } from "@nx/devkit";
|
|
3273
|
+
import { readCachedProjectGraph as readCachedProjectGraph4, writeJsonFile as writeJsonFile3 } from "@nx/devkit";
|
|
3285
3274
|
import { getHelperDependency as getHelperDependency2, HelperDependency as HelperDependency2 } from "@nx/js";
|
|
3286
3275
|
import { calculateProjectBuildableDependencies as calculateProjectBuildableDependencies3 } from "@nx/js/src/utils/buildable-libs-utils";
|
|
3287
3276
|
import defu5 from "defu";
|
|
3277
|
+
import { createJiti } from "jiti";
|
|
3278
|
+
import { existsSync as existsSync6 } from "node:fs";
|
|
3279
|
+
import { readFile as readFile5 } from "node:fs/promises";
|
|
3288
3280
|
import { relative as relative4 } from "node:path";
|
|
3289
3281
|
import { findWorkspaceRoot as findWorkspaceRoot4 } from "nx/src/utils/find-workspace-root";
|
|
3290
|
-
import { build as unbuild } from "unbuild";
|
|
3291
3282
|
|
|
3292
3283
|
// ../unbuild/src/clean.ts
|
|
3293
|
-
import {
|
|
3284
|
+
import { rm } from "node:fs/promises";
|
|
3294
3285
|
async function clean3(name = "Unbuild", directory, config) {
|
|
3295
3286
|
writeDebug(` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
3296
3287
|
const stopwatch = getStopwatch(`${name} output clean`);
|
|
3297
|
-
await
|
|
3288
|
+
await rm(directory, {
|
|
3289
|
+
recursive: true,
|
|
3290
|
+
force: true
|
|
3291
|
+
});
|
|
3298
3292
|
stopwatch();
|
|
3299
3293
|
}
|
|
3300
3294
|
__name(clean3, "clean");
|
|
@@ -3345,28 +3339,8 @@ ${error ? error.message : "Unknown build error"}
|
|
|
3345
3339
|
}
|
|
3346
3340
|
}), "onErrorPlugin");
|
|
3347
3341
|
|
|
3348
|
-
// ../unbuild/src/plugins/swc.ts
|
|
3349
|
-
var swcPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => {
|
|
3350
|
-
const { transform: transform3 } = __require("@swc/core");
|
|
3351
|
-
return {
|
|
3352
|
-
name: "storm:swc",
|
|
3353
|
-
transform(code, filename) {
|
|
3354
|
-
return transform3(code, {
|
|
3355
|
-
filename,
|
|
3356
|
-
jsc: {
|
|
3357
|
-
transform: {
|
|
3358
|
-
react: {
|
|
3359
|
-
runtime: "automatic"
|
|
3360
|
-
}
|
|
3361
|
-
}
|
|
3362
|
-
}
|
|
3363
|
-
});
|
|
3364
|
-
}
|
|
3365
|
-
};
|
|
3366
|
-
}, "swcPlugin");
|
|
3367
|
-
|
|
3368
3342
|
// ../unbuild/src/plugins/tsc.ts
|
|
3369
|
-
import {
|
|
3343
|
+
import { readCachedProjectGraph as readCachedProjectGraph3 } from "@nx/devkit";
|
|
3370
3344
|
import { calculateProjectBuildableDependencies as calculateProjectBuildableDependencies2 } from "@nx/js/src/utils/buildable-libs-utils";
|
|
3371
3345
|
import { getHelperDependency, HelperDependency } from "@nx/js/src/utils/compiler-helper-dependency";
|
|
3372
3346
|
import ts2Plugin from "rollup-plugin-typescript2";
|
|
@@ -3399,9 +3373,7 @@ __name(createTsCompilerOptions, "createTsCompilerOptions");
|
|
|
3399
3373
|
|
|
3400
3374
|
// ../unbuild/src/plugins/tsc.ts
|
|
3401
3375
|
var tscPlugin2 = /* @__PURE__ */ __name(async (options, resolvedOptions) => {
|
|
3402
|
-
const projectGraph =
|
|
3403
|
-
exitOnError: true
|
|
3404
|
-
});
|
|
3376
|
+
const projectGraph = readCachedProjectGraph3();
|
|
3405
3377
|
const result = calculateProjectBuildableDependencies2(void 0, projectGraph, resolvedOptions.config.workspaceRoot, resolvedOptions.projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
|
|
3406
3378
|
let dependencies = result.dependencies;
|
|
3407
3379
|
const tsLibDependency = getHelperDependency(HelperDependency.tsc, resolvedOptions.tsconfig, dependencies, projectGraph, true);
|
|
@@ -3420,37 +3392,39 @@ var tscPlugin2 = /* @__PURE__ */ __name(async (options, resolvedOptions) => {
|
|
|
3420
3392
|
|
|
3421
3393
|
// ../unbuild/src/plugins/type-definitions.ts
|
|
3422
3394
|
import { relative as relative3 } from "node:path";
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3395
|
+
function typeDefinitions(projectRoot) {
|
|
3396
|
+
return {
|
|
3397
|
+
name: "storm:dts-bundle",
|
|
3398
|
+
async generateBundle(_opts, bundle) {
|
|
3399
|
+
for (const file of Object.values(bundle)) {
|
|
3400
|
+
if (file.type === "asset" || !file.isEntry || file.facadeModuleId == null) {
|
|
3401
|
+
continue;
|
|
3402
|
+
}
|
|
3403
|
+
const hasDefaultExport = file.exports.includes("default");
|
|
3404
|
+
const entrySourceFileName = relative3(projectRoot, file.facadeModuleId);
|
|
3405
|
+
const entrySourceDtsName = entrySourceFileName.replace(/\.[cm]?[jt]sx?$/, "");
|
|
3406
|
+
const dtsFileName = file.fileName.replace(/\.[cm]?js$/, ".d.ts");
|
|
3407
|
+
const relativeSourceDtsName = JSON.stringify("./" + entrySourceDtsName);
|
|
3408
|
+
const dtsFileSource = hasDefaultExport ? `
|
|
3436
3409
|
export * from ${relativeSourceDtsName};
|
|
3437
3410
|
export { default } from ${relativeSourceDtsName};
|
|
3438
3411
|
` : `export * from ${relativeSourceDtsName};
|
|
3439
3412
|
`;
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3413
|
+
this.emitFile({
|
|
3414
|
+
type: "asset",
|
|
3415
|
+
fileName: dtsFileName,
|
|
3416
|
+
source: dtsFileSource
|
|
3417
|
+
});
|
|
3418
|
+
}
|
|
3445
3419
|
}
|
|
3446
|
-
}
|
|
3447
|
-
}
|
|
3420
|
+
};
|
|
3421
|
+
}
|
|
3422
|
+
__name(typeDefinitions, "typeDefinitions");
|
|
3448
3423
|
|
|
3449
3424
|
// ../unbuild/src/config.ts
|
|
3450
3425
|
var getDefaultBuildPlugins2 = /* @__PURE__ */ __name(async (options, resolvedOptions) => Promise.all([
|
|
3451
3426
|
analyzePlugin(options, resolvedOptions),
|
|
3452
|
-
|
|
3453
|
-
typeDefinitions(options, resolvedOptions),
|
|
3427
|
+
typeDefinitions(resolvedOptions.projectRoot),
|
|
3454
3428
|
tscPlugin2(options, resolvedOptions),
|
|
3455
3429
|
onErrorPlugin2(options, resolvedOptions)
|
|
3456
3430
|
].map((plugin) => Promise.resolve(plugin))), "getDefaultBuildPlugins");
|
|
@@ -3475,38 +3449,34 @@ async function resolveOptions3(options) {
|
|
|
3475
3449
|
options = defu5(options, configFile);
|
|
3476
3450
|
}
|
|
3477
3451
|
}
|
|
3478
|
-
const projectGraph =
|
|
3479
|
-
exitOnError: true
|
|
3480
|
-
});
|
|
3452
|
+
const projectGraph = readCachedProjectGraph4();
|
|
3481
3453
|
const projectJsonPath = joinPaths(config.workspaceRoot, projectRoot, "project.json");
|
|
3482
|
-
if (!
|
|
3454
|
+
if (!existsSync6(projectJsonPath)) {
|
|
3483
3455
|
throw new Error("Cannot find project.json configuration");
|
|
3484
3456
|
}
|
|
3485
|
-
const
|
|
3457
|
+
const projectJsonContent = await readFile5(projectJsonPath, "utf8");
|
|
3458
|
+
const projectJson = JSON.parse(projectJsonContent);
|
|
3486
3459
|
const projectName = projectJson.name;
|
|
3487
3460
|
const packageJsonPath = joinPaths(workspaceRoot3.dir, projectRoot, "package.json");
|
|
3488
|
-
if (!
|
|
3461
|
+
if (!existsSync6(packageJsonPath)) {
|
|
3489
3462
|
throw new Error("Cannot find package.json configuration");
|
|
3490
3463
|
}
|
|
3491
|
-
const
|
|
3464
|
+
const packageJsonContent = await readFile5(packageJsonPath, "utf8");
|
|
3465
|
+
const packageJson = JSON.parse(packageJsonContent);
|
|
3492
3466
|
let tsconfig = options.tsconfig;
|
|
3493
3467
|
if (!tsconfig) {
|
|
3494
3468
|
tsconfig = joinPaths(workspaceRoot3.dir, projectRoot, "tsconfig.json");
|
|
3495
3469
|
}
|
|
3496
|
-
if (!
|
|
3470
|
+
if (!existsSync6(tsconfig)) {
|
|
3497
3471
|
throw new Error("Cannot find tsconfig.json configuration");
|
|
3498
3472
|
}
|
|
3499
3473
|
let sourceRoot = projectJson.sourceRoot;
|
|
3500
3474
|
if (!sourceRoot) {
|
|
3501
3475
|
sourceRoot = joinPaths(projectRoot, "src");
|
|
3502
3476
|
}
|
|
3503
|
-
if (!
|
|
3477
|
+
if (!existsSync6(sourceRoot)) {
|
|
3504
3478
|
throw new Error("Cannot find sourceRoot directory");
|
|
3505
3479
|
}
|
|
3506
|
-
const projectConfigurations = readProjectsConfigurationFromProjectGraph5(projectGraph);
|
|
3507
|
-
if (!projectConfigurations?.projects?.[projectName]) {
|
|
3508
|
-
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
3509
|
-
}
|
|
3510
3480
|
const result = calculateProjectBuildableDependencies3(void 0, projectGraph, workspaceRoot3.dir, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
|
|
3511
3481
|
let dependencies = result.dependencies;
|
|
3512
3482
|
const tsLibDependency = getHelperDependency2(HelperDependency2.tsc, tsconfig, dependencies, projectGraph, true);
|
|
@@ -3514,6 +3484,11 @@ async function resolveOptions3(options) {
|
|
|
3514
3484
|
dependencies = dependencies.filter((deps) => deps.name !== tsLibDependency.name);
|
|
3515
3485
|
dependencies.push(tsLibDependency);
|
|
3516
3486
|
}
|
|
3487
|
+
const jiti = createJiti(config.workspaceRoot, {
|
|
3488
|
+
cache: true,
|
|
3489
|
+
fsCache: config.skipCache ? false : joinPaths(config.directories.cache || "node_modules/.cache/storm", "jiti"),
|
|
3490
|
+
interopDefault: true
|
|
3491
|
+
});
|
|
3517
3492
|
const resolvedOptions = {
|
|
3518
3493
|
name: projectName,
|
|
3519
3494
|
config,
|
|
@@ -3521,6 +3496,7 @@ async function resolveOptions3(options) {
|
|
|
3521
3496
|
sourceRoot,
|
|
3522
3497
|
projectName,
|
|
3523
3498
|
tsconfig,
|
|
3499
|
+
jiti,
|
|
3524
3500
|
clean: false,
|
|
3525
3501
|
entries: [
|
|
3526
3502
|
{
|
|
@@ -3587,7 +3563,7 @@ async function resolveOptions3(options) {
|
|
|
3587
3563
|
]
|
|
3588
3564
|
},
|
|
3589
3565
|
esbuild: {
|
|
3590
|
-
minify:
|
|
3566
|
+
minify: options.minify !== false,
|
|
3591
3567
|
splitting: options.splitting !== false,
|
|
3592
3568
|
treeShaking: options.treeShaking !== false,
|
|
3593
3569
|
color: true,
|
|
@@ -3627,31 +3603,44 @@ async function resolveOptions3(options) {
|
|
|
3627
3603
|
}
|
|
3628
3604
|
__name(resolveOptions3, "resolveOptions");
|
|
3629
3605
|
async function generatePackageJson3(options) {
|
|
3630
|
-
if (options.generatePackageJson !== false &&
|
|
3606
|
+
if (options.generatePackageJson !== false && existsSync6(joinPaths(options.projectRoot, "package.json"))) {
|
|
3631
3607
|
writeDebug(" \u270D\uFE0F Writing package.json file", options.config);
|
|
3632
3608
|
const stopwatch = getStopwatch("Write package.json file");
|
|
3633
3609
|
const packageJsonPath = joinPaths(options.projectRoot, "project.json");
|
|
3634
|
-
if (!
|
|
3610
|
+
if (!existsSync6(packageJsonPath)) {
|
|
3635
3611
|
throw new Error("Cannot find package.json configuration");
|
|
3636
3612
|
}
|
|
3637
|
-
let
|
|
3638
|
-
if (!
|
|
3613
|
+
let packageJsonContent = await readFile5(joinPaths(options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
|
|
3614
|
+
if (!packageJsonContent) {
|
|
3639
3615
|
throw new Error("Cannot find package.json configuration file");
|
|
3640
3616
|
}
|
|
3617
|
+
let packageJson = JSON.parse(packageJsonContent);
|
|
3641
3618
|
packageJson = await addPackageDependencies(options.config.workspaceRoot, options.projectRoot, options.projectName, packageJson);
|
|
3642
3619
|
packageJson = await addWorkspacePackageJsonFields(options.config, options.projectRoot, options.sourceRoot, options.projectName, false, packageJson);
|
|
3643
|
-
|
|
3644
|
-
await writeJsonFile3(joinPaths(options.outDir, "package.json"), packageJson);
|
|
3620
|
+
await writeJsonFile3(joinPaths(options.outDir, "package.json"), await addPackageJsonExports(options.sourceRoot, packageJson));
|
|
3645
3621
|
stopwatch();
|
|
3646
3622
|
}
|
|
3647
3623
|
return options;
|
|
3648
3624
|
}
|
|
3649
3625
|
__name(generatePackageJson3, "generatePackageJson");
|
|
3626
|
+
async function resolveUnbuild(options) {
|
|
3627
|
+
writeTrace(`Resolving Unbuild package with Jiti`, options.config);
|
|
3628
|
+
try {
|
|
3629
|
+
return options.jiti.import("unbuild");
|
|
3630
|
+
} catch (error) {
|
|
3631
|
+
writeError(" \u274C An error occurred while resolving the Unbuild package", options.config);
|
|
3632
|
+
throw new Error("An error occurred while resolving the Unbuild package", {
|
|
3633
|
+
cause: error
|
|
3634
|
+
});
|
|
3635
|
+
}
|
|
3636
|
+
}
|
|
3637
|
+
__name(resolveUnbuild, "resolveUnbuild");
|
|
3650
3638
|
async function executeUnbuild(options) {
|
|
3651
3639
|
writeDebug(` \u{1F680} Running ${options.name} (${options.projectRoot}) build`, options.config);
|
|
3652
3640
|
const stopwatch = getStopwatch(`${options.name} (${options.projectRoot}) build`);
|
|
3653
3641
|
try {
|
|
3654
|
-
await
|
|
3642
|
+
const unbuild = await resolveUnbuild(options);
|
|
3643
|
+
await unbuild.build(options.projectRoot, false, {
|
|
3655
3644
|
...options,
|
|
3656
3645
|
rootDir: options.projectRoot
|
|
3657
3646
|
});
|
|
@@ -5134,7 +5123,7 @@ import { names as names5 } from "@nx/devkit";
|
|
|
5134
5123
|
import { retrieveProjectConfigurationsWithoutPluginInference } from "nx/src/project-graph/utils/retrieve-workspace-files";
|
|
5135
5124
|
|
|
5136
5125
|
// ../workspace-tools/src/utils/lock-file.ts
|
|
5137
|
-
import { existsSync as
|
|
5126
|
+
import { existsSync as existsSync7 } from "node:fs";
|
|
5138
5127
|
import { join as join4 } from "node:path";
|
|
5139
5128
|
import { output as output2, readJsonFile, workspaceRoot as workspaceRoot2 } from "nx/src/devkit-exports";
|
|
5140
5129
|
import { getNpmLockfileDependencies, getNpmLockfileNodes } from "nx/src/plugins/js/lock-file/npm-parser";
|
|
@@ -5149,7 +5138,7 @@ var PNPM_LOCK_PATH = join4(workspaceRoot2, PNPM_LOCK_FILE);
|
|
|
5149
5138
|
|
|
5150
5139
|
// ../workspace-tools/src/utils/package-helpers.ts
|
|
5151
5140
|
import { joinPathFragments as joinPathFragments11, readJsonFile as readJsonFile2 } from "@nx/devkit";
|
|
5152
|
-
import { existsSync as
|
|
5141
|
+
import { existsSync as existsSync8 } from "node:fs";
|
|
5153
5142
|
|
|
5154
5143
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
5155
5144
|
import transform2 from "typia/lib/transform";
|