@nx/js 0.0.0-pr-29464-a8559fe → 0.0.0-pr-29720-ae0a5be

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": "0.0.0-pr-29464-a8559fe",
3
+ "version": "0.0.0-pr-29720-ae0a5be",
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": "0.0.0-pr-29464-a8559fe",
43
- "@nx/workspace": "0.0.0-pr-29464-a8559fe",
42
+ "@nx/devkit": "0.0.0-pr-29720-ae0a5be",
43
+ "@nx/workspace": "0.0.0-pr-29720-ae0a5be",
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",
@@ -16,7 +16,6 @@ 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 project_graph_1 = require("nx/src/config/project-graph");
20
19
  function isBuildable(target, node) {
21
20
  return (node.data.targets &&
22
21
  node.data.targets[target] &&
@@ -68,7 +67,7 @@ function calculateProjectDependencies(projGraph, root, projectName, targetName,
68
67
  nonBuildableDependencies.push(dep);
69
68
  }
70
69
  }
71
- else if ((0, project_graph_1.isProjectGraphExternalNode)(depNode)) {
70
+ else if (depNode.type === 'npm') {
72
71
  project = {
73
72
  name: depNode.data.packageName,
74
73
  outputs: [],
@@ -284,9 +283,10 @@ function findMissingBuildDependencies(root, projectName, targetName, projectDepe
284
283
  function updatePaths(dependencies, paths) {
285
284
  const pathsKeys = Object.keys(paths);
286
285
  // For each registered dependency
287
- dependencies
288
- .filter((dep) => !(0, project_graph_1.isProjectGraphExternalNode)(dep.node))
289
- .forEach((dep) => {
286
+ dependencies.forEach((dep) => {
287
+ if (dep.node.type === 'npm') {
288
+ return;
289
+ }
290
290
  // If there are outputs
291
291
  if (dep.outputs && dep.outputs.length > 0) {
292
292
  // Directly map the dependency name to the output paths (dist/packages/..., etc.)