@nx/js 20.4.4 → 20.4.6

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/js",
3
- "version": "20.4.4",
3
+ "version": "20.4.6",
4
4
  "private": false,
5
5
  "description": "The JS plugin for Nx contains executors and generators that provide the best experience for developing JavaScript and TypeScript projects. ",
6
6
  "repository": {
@@ -39,8 +39,8 @@
39
39
  "@babel/preset-env": "^7.23.2",
40
40
  "@babel/preset-typescript": "^7.22.5",
41
41
  "@babel/runtime": "^7.22.6",
42
- "@nx/devkit": "20.4.4",
43
- "@nx/workspace": "20.4.4",
42
+ "@nx/devkit": "20.4.6",
43
+ "@nx/workspace": "20.4.6",
44
44
  "@zkochan/js-yaml": "0.0.7",
45
45
  "babel-plugin-const-enum": "^1.0.1",
46
46
  "babel-plugin-macros": "^3.1.0",
@@ -404,7 +404,7 @@ To fix this you will either need to add a package.json file at that location, or
404
404
  const allDependentProjects = Object.values(localPackageDependencies)
405
405
  .flat()
406
406
  .filter((localPackageDependency) => {
407
- return localPackageDependency.target === project.name;
407
+ return localPackageDependency.target === projectName;
408
408
  });
409
409
  const includeTransitiveDependents = updateDependents !== 'never' &&
410
410
  options.releaseGroup.projectsRelationship === 'independent';
@@ -423,9 +423,10 @@ To fix this you will either need to add a package.json file at that location, or
423
423
  const dependentProjectsOutsideCurrentBatch = [];
424
424
  // Track circular dependencies using value of project1:project2
425
425
  const circularDependencies = new Set();
426
+ const projectsDependOnCurrentProject = localPackageDependencies[projectName]?.map((localPackageDependencies) => localPackageDependencies.target) ?? [];
426
427
  for (const dependentProject of allDependentProjects) {
427
428
  // Track circular dependencies (add both directions for easy look up)
428
- if (dependentProject.target === projectName) {
429
+ if (projectsDependOnCurrentProject.includes(dependentProject.source)) {
429
430
  circularDependencies.add(`${dependentProject.source}:${dependentProject.target}`);
430
431
  circularDependencies.add(`${dependentProject.target}:${dependentProject.source}`);
431
432
  }
@@ -16,6 +16,7 @@ const fileutils_1 = require("nx/src/utils/fileutils");
16
16
  const output_1 = require("nx/src/utils/output");
17
17
  const path_1 = require("path");
18
18
  const ts_config_1 = require("./typescript/ts-config");
19
+ const crypto_1 = require("crypto");
19
20
  function isBuildable(target, node) {
20
21
  return (node.data.targets &&
21
22
  node.data.targets[target] &&
@@ -229,7 +230,7 @@ function computeCompilerOptionsPaths(tsConfig, dependencies) {
229
230
  return paths;
230
231
  }
231
232
  function createTmpTsConfig(tsconfigPath, workspaceRoot, projectRoot, dependencies, useWorkspaceAsBaseUrl = false) {
232
- const tmpTsConfigPath = (0, path_1.join)(workspaceRoot, 'tmp', projectRoot, process.env.NX_TASK_TARGET_TARGET ?? 'build', 'tsconfig.generated.json');
233
+ const tmpTsConfigPath = (0, path_1.join)(workspaceRoot, 'tmp', projectRoot, process.env.NX_TASK_TARGET_TARGET ?? 'build', `tsconfig.generated.${(0, crypto_1.randomUUID)()}.json`);
233
234
  if (tsconfigPath === tmpTsConfigPath) {
234
235
  return tsconfigPath;
235
236
  }