@nx/js 17.2.5 → 17.2.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/README.md CHANGED
@@ -1,9 +1,4 @@
1
- <p style="text-align: center;">
2
- <picture>
3
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-dark.svg">
4
- <img alt="Nx - Smart Monorepos · Fast CI" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
5
- </picture>
6
- </p>
1
+ <p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx.png" width="600" alt="Nx - Smart, Fast and Extensible Build System"></p>
7
2
 
8
3
  <div style="text-align: center;">
9
4
 
@@ -20,9 +15,9 @@
20
15
 
21
16
  <hr>
22
17
 
23
- # Nx: Smart Monorepos · Fast CI
18
+ # Nx: Smart, Fast and Extensible Build System
24
19
 
25
- Nx is a build system with built-in tooling and advanced CI capabilities. It helps you maintain and scale monorepos, both locally and on CI.
20
+ Nx is a next generation build system with first class monorepo support and powerful integrations.
26
21
 
27
22
  This package is a [JavaScript/TypeScript plugin for Nx](https://nx.dev/js/overview).
28
23
 
@@ -64,5 +59,5 @@ npx nx@latest init
64
59
  - [Blog Posts About Nx](https://blog.nrwl.io/nx/home)
65
60
 
66
61
  <p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
67
- width="100%" alt="Nx - Smart Monorepos · Fast CI"></a></p>
62
+ width="100%" alt="Nx - Smart, Fast and Extensible Build System"></a></p>
68
63
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/js",
3
- "version": "v17.2.5",
3
+ "version": "17.2.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": {
@@ -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": "v17.2.5",
61
- "@nx/workspace": "v17.2.5",
62
- "@nrwl/js": "v17.2.5"
60
+ "@nx/devkit": "17.2.6",
61
+ "@nx/workspace": "17.2.6",
62
+ "@nrwl/js": "17.2.6"
63
63
  },
64
64
  "peerDependencies": {
65
65
  "verdaccio": "^5.0.4"
@@ -14,6 +14,6 @@ Run `<%= cliCommand %> build <%= name %>` to build the library.
14
14
 
15
15
  ## Running unit tests
16
16
 
17
- Run `<%= cliCommand %> test <%= name %>` to execute the unit tests via [Jest](https://jestjs.io).
17
+ Run `<%= cliCommand %> test <%= name %>` to execute the unit tests via <% if(unitTestRunner === 'jest') { %>[Jest](https://jestjs.io)<% } else { %>[Vitest](https://vitest.dev/)<% } %>.
18
18
 
19
19
  <% } %>
@@ -6,5 +6,9 @@
6
6
  "types": ["node"]
7
7
  },
8
8
  "include": ["src/**/*.ts"<% if (js) { %>, "src/**/*.js"<% } %>],
9
- "exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"<% if (js) { %>, "src/**/*.spec.js", "src/**/*.test.js"<% } %>]
9
+ "exclude": [
10
+ <% if (hasUnitTestRunner && unitTestRunner === 'jest') { %>"jest.config.ts",
11
+ <% } else if (hasUnitTestRunner) { %>"vite.config.ts",
12
+ <% } %>"src/**/*.spec.ts", "src/**/*.test.ts"<% if (js) { %>, "src/**/*.spec.js", "src/**/*.test.js"<% } %>
13
+ ]
10
14
  }
@@ -18,8 +18,12 @@ async function releaseVersionGenerator(tree, options) {
18
18
  try {
19
19
  const versionData = {};
20
20
  // If the user provided a specifier, validate that it is valid semver or a relative semver keyword
21
- if (options.specifier && !(0, semver_1.isValidSemverSpecifier)(options.specifier)) {
22
- throw new Error(`The given version specifier "${options.specifier}" is not valid. You provide an exact version or a valid semver keyword such as "major", "minor", "patch", etc.`);
21
+ if (options.specifier) {
22
+ if (!(0, semver_1.isValidSemverSpecifier)(options.specifier)) {
23
+ throw new Error(`The given version specifier "${options.specifier}" is not valid. You provide an exact version or a valid semver keyword such as "major", "minor", "patch", etc.`);
24
+ }
25
+ // The node semver library classes a leading `v` as valid, but we want to ensure it is not present in the final version
26
+ options.specifier = options.specifier.replace(/^v/, '');
23
27
  }
24
28
  const projects = options.projects;
25
29
  const createResolvePackageRoot = (customPackageRoot) => (projectNode) => {