@nx/esbuild 18.3.1 → 18.3.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/esbuild",
|
|
3
|
-
"version": "18.3.
|
|
3
|
+
"version": "18.3.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for esbuild contains executors and generators that support building applications using esbuild",
|
|
6
6
|
"repository": {
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"fs-extra": "^11.1.0",
|
|
35
35
|
"tslib": "^2.3.0",
|
|
36
36
|
"tsconfig-paths": "^4.1.2",
|
|
37
|
-
"@nx/devkit": "18.3.
|
|
38
|
-
"@nx/js": "18.3.
|
|
39
|
-
"@nrwl/esbuild": "18.3.
|
|
37
|
+
"@nx/devkit": "18.3.3",
|
|
38
|
+
"@nx/js": "18.3.3",
|
|
39
|
+
"@nrwl/esbuild": "18.3.3"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"esbuild": "~0.19.2"
|
|
@@ -3,8 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getExtraDependencies = void 0;
|
|
4
4
|
function getExtraDependencies(projectName, graph) {
|
|
5
5
|
const deps = new Map();
|
|
6
|
+
const visited = new Set(); // Track visited projects
|
|
6
7
|
recur(projectName);
|
|
7
8
|
function recur(currProjectName) {
|
|
9
|
+
if (visited.has(currProjectName))
|
|
10
|
+
return; // Check if project already visited
|
|
11
|
+
visited.add(currProjectName); // Mark project as visited
|
|
8
12
|
const allDeps = graph.dependencies[currProjectName];
|
|
9
13
|
const externalDeps = allDeps.reduce((acc, node) => {
|
|
10
14
|
const found = graph.externalNodes[node.target];
|