@nx/devkit
Advanced tools
@@ -445,3 +445,7 @@ "use strict"; | ||
| try { | ||
| return require(pkg); | ||
| // The workspace comes first so its installed version wins; `__dirname` | ||
| // keeps the old behaviour as a fallback. A bare `require` would only | ||
| // resolve from wherever `@nx/devkit` sits, which in a monorepo can be a | ||
| // different copy of the package than the workspace depends on. | ||
| return require(require.resolve(pkg, { paths: [devkit_exports_1.workspaceRoot, __dirname] })); | ||
| } | ||
@@ -448,0 +452,0 @@ catch (e) { |
+2
-2
| { | ||
| "name": "@nx/devkit", | ||
| "version": "23.2.0-beta.3", | ||
| "version": "23.2.0-beta.4", | ||
| "private": false, | ||
@@ -62,3 +62,3 @@ "type": "commonjs", | ||
| "jest": "30.3.0", | ||
| "nx": "23.2.0-beta.3" | ||
| "nx": "23.2.0-beta.4" | ||
| }, | ||
@@ -65,0 +65,0 @@ "peerDependencies": { |
299926
0.13%6792
0.06%