@nx/js 20.2.0-beta.1 → 20.2.0-beta.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/js",
3
- "version": "20.2.0-beta.1",
3
+ "version": "20.2.0-beta.3",
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.2.0-beta.1",
43
- "@nx/workspace": "20.2.0-beta.1",
42
+ "@nx/devkit": "20.2.0-beta.3",
43
+ "@nx/workspace": "20.2.0-beta.3",
44
44
  "@zkochan/js-yaml": "0.0.7",
45
45
  "babel-plugin-const-enum": "^1.0.1",
46
46
  "babel-plugin-macros": "^2.8.0",
@@ -47,7 +47,14 @@ function generateTaskProjectTsConfig(task, tasksOptions, context, taskInMemoryTs
47
47
  return tsConfigPath;
48
48
  }
49
49
  function getDependencyTasksInOtherProjects(task, project, context) {
50
- return context.taskGraph.dependencies[task].filter((t) => t !== task && (0, devkit_1.parseTargetString)(t, context).project !== project);
50
+ const implicitDependencies = new Set(context.projectGraph.nodes[project].data.implicitDependencies ?? []);
51
+ return context.taskGraph.dependencies[task].filter((t) => {
52
+ const { project: dependencyProject } = (0, devkit_1.parseTargetString)(t, context);
53
+ // Tasks for implicit dependencies are skipped since incremental builds only apply to explicit dependencies
54
+ return (t !== task &&
55
+ dependencyProject !== project &&
56
+ !implicitDependencies.has(dependencyProject));
57
+ });
51
58
  }
52
59
  function getDependencyTasksInSameProject(task, context) {
53
60
  const { project: taskProject } = (0, devkit_1.parseTargetString)(task, context);