@nx/js 18.0.4 → 18.1.0-beta.0

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.0.4",
3
+ "version": "18.1.0-beta.0",
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.0.4",
61
- "@nx/workspace": "18.0.4",
62
- "@nrwl/js": "18.0.4"
60
+ "@nx/devkit": "18.1.0-beta.0",
61
+ "@nx/workspace": "18.1.0-beta.0",
62
+ "@nrwl/js": "18.1.0-beta.0"
63
63
  },
64
64
  "peerDependencies": {
65
65
  "verdaccio": "^5.0.4"
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveVersionSpec = void 0;
4
4
  const npa = require("npm-package-arg");
5
+ const devkit_1 = require("@nx/devkit");
5
6
  function resolveVersionSpec(name, version, spec, location) {
6
7
  // yarn classic uses link instead of file, normalize to match what npm expects
7
8
  spec = spec.replace(/^link:/, 'file:');
@@ -21,6 +22,8 @@ function resolveVersionSpec(name, version, spec, location) {
21
22
  }
22
23
  }
23
24
  const npaResult = npa.resolve(name, spec, location);
24
- return npaResult.fetchSpec;
25
+ return npaResult.fetchSpec.includes('\\')
26
+ ? (0, devkit_1.normalizePath)(npaResult.fetchSpec)
27
+ : npaResult.fetchSpec;
25
28
  }
26
29
  exports.resolveVersionSpec = resolveVersionSpec;