@nx/js 24.0.1 → 24.0.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.
@@ -101,8 +101,9 @@ async function syncGenerator(tree) {
101
101
  }
102
102
  if (changedFiles.size > 0) {
103
103
  const updatedReferences = Array.from(referencesSet)
104
- // Check composite is true in the internal reference before proceeding
105
- .filter((ref) => hasCompositeEnabled(tsSysFromTree, tsconfigInfoCaches, (0, devkit_1.joinPathFragments)(ref, 'tsconfig.json')))
104
+ // Check composite is true in the internal reference before proceeding.
105
+ // A reference can name a tsconfig file directly rather than a directory.
106
+ .filter((ref) => hasCompositeEnabled(tsSysFromTree, tsconfigInfoCaches, toFullProjectReferencePath(ref)))
106
107
  .map((ref) => ({
107
108
  path: `./${ref}`,
108
109
  }));
@@ -69,7 +69,12 @@ ${warnings.join('\n- ')}\n
69
69
  due to missing "sourceRoot" in the dependencies' project configuration
70
70
  `);
71
71
  }
72
- return dirsToUse.map((sourceDir) => (0, path_1.resolve)(devkit_1.workspaceRoot, (0, devkit_1.joinPathFragments)(sourceDir, fileGlobPattern)));
72
+ // A dependency whose sourceRoot is its project root would otherwise scan its
73
+ // node_modules, where pnpm workspace symlinks fan out across the repo.
74
+ return [
75
+ ...dirsToUse.map((sourceDir) => (0, path_1.resolve)(devkit_1.workspaceRoot, (0, devkit_1.joinPathFragments)(sourceDir, fileGlobPattern))),
76
+ ...dirsToUse.map((sourceDir) => `!${(0, path_1.resolve)(devkit_1.workspaceRoot, (0, devkit_1.joinPathFragments)(sourceDir, '**/node_modules/**'))}`),
77
+ ];
73
78
  }
74
79
  catch (e) {
75
80
  throw new Error(`createGlobPatternsForDependencies: Error when generating globs.\n${e?.message}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/js",
3
- "version": "24.0.1",
3
+ "version": "24.0.3",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "files": [
@@ -162,8 +162,8 @@
162
162
  "@babel/preset-env": "^7.23.2",
163
163
  "@babel/preset-typescript": "^7.22.5",
164
164
  "@babel/runtime": "^7.22.6",
165
- "@nx/devkit": "24.0.1",
166
- "@nx/workspace": "24.0.1",
165
+ "@nx/devkit": "24.0.3",
166
+ "@nx/workspace": "24.0.3",
167
167
  "@zkochan/js-yaml": "0.0.7",
168
168
  "babel-plugin-const-enum": "^1.0.1",
169
169
  "babel-plugin-macros": "^3.1.0",
@@ -183,14 +183,14 @@
183
183
  "tslib": "^2.3.0"
184
184
  },
185
185
  "devDependencies": {
186
- "@nx/esbuild": "24.0.1",
187
- "@nx/eslint": "24.0.1",
188
- "@nx/jest": "24.0.1",
189
- "@nx/oxlint": "24.0.1",
190
- "@nx/rollup": "24.0.1",
191
- "@nx/vite": "24.0.1",
192
- "@nx/vitest": "24.0.1",
193
- "nx": "24.0.1"
186
+ "@nx/esbuild": "24.0.3",
187
+ "@nx/eslint": "24.0.3",
188
+ "@nx/jest": "24.0.3",
189
+ "@nx/oxlint": "24.0.3",
190
+ "@nx/rollup": "24.0.3",
191
+ "@nx/vite": "24.0.3",
192
+ "@nx/vitest": "24.0.3",
193
+ "nx": "24.0.3"
194
194
  },
195
195
  "peerDependencies": {
196
196
  "@swc/cli": ">=0.6.0 <0.9.0",