@nx/js 18.2.0-beta.1 → 18.2.0-beta.2

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": "18.2.0-beta.1",
3
+ "version": "18.2.0-beta.2",
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": {
@@ -57,9 +57,9 @@
57
57
  "semver": "^7.5.3",
58
58
  "source-map-support": "0.5.19",
59
59
  "tslib": "^2.3.0",
60
- "@nx/devkit": "18.2.0-beta.1",
61
- "@nx/workspace": "18.2.0-beta.1",
62
- "@nrwl/js": "18.2.0-beta.1"
60
+ "@nx/devkit": "18.2.0-beta.2",
61
+ "@nx/workspace": "18.2.0-beta.2",
62
+ "@nrwl/js": "18.2.0-beta.2"
63
63
  },
64
64
  "peerDependencies": {
65
65
  "verdaccio": "^5.0.4"
@@ -121,8 +121,9 @@ function collectHelperDependencies(workspaceRoot, sourceProject, projectGraph, b
121
121
  return;
122
122
  if (target.executor === '@nx/js:tsc' && target.options?.tsConfig) {
123
123
  const tsConfig = (0, ts_config_1.readTsConfig)((0, path_1.join)(workspaceRoot, target.options.tsConfig));
124
- if (tsConfig?.options['importHelpers']) {
125
- npmDeps['tslib'] = projectGraph.externalNodes['npm:tslib']?.data.version;
124
+ if (tsConfig?.options['importHelpers'] &&
125
+ projectGraph.externalNodes['npm:tslib']?.type === 'npm') {
126
+ npmDeps['tslib'] = projectGraph.externalNodes['npm:tslib'].data.version;
126
127
  }
127
128
  }
128
129
  if (target.executor === '@nx/js:swc') {
@@ -132,9 +133,10 @@ function collectHelperDependencies(workspaceRoot, sourceProject, projectGraph, b
132
133
  const swcConfig = (0, fileutils_1.fileExists)(swcConfigPath)
133
134
  ? (0, devkit_1.readJsonFile)(swcConfigPath)
134
135
  : {};
135
- if (swcConfig?.jsc?.externalHelpers) {
136
+ if (swcConfig?.jsc?.externalHelpers &&
137
+ projectGraph.externalNodes['npm:@swc/helpers']?.type === 'npm') {
136
138
  npmDeps['@swc/helpers'] =
137
- projectGraph.externalNodes['npm:@swc/helpers']?.data.version;
139
+ projectGraph.externalNodes['npm:@swc/helpers'].data.version;
138
140
  }
139
141
  }
140
142
  }