@nx/web 17.0.0-beta.8 → 17.0.0-rc.1

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/web",
3
- "version": "17.0.0-beta.8",
3
+ "version": "17.0.0-rc.1",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Web Components contains generators for managing Web Component applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Jest, Cypress, and Storybook.\n\n- Scaffolding for creating buildable libraries that can be published to npm.\n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -34,9 +34,9 @@
34
34
  "detect-port": "^1.5.1",
35
35
  "http-server": "^14.1.0",
36
36
  "tslib": "^2.3.0",
37
- "@nx/devkit": "17.0.0-beta.8",
38
- "@nx/js": "17.0.0-beta.8",
39
- "@nrwl/web": "17.0.0-beta.8"
37
+ "@nx/devkit": "17.0.0-rc.1",
38
+ "@nx/js": "17.0.0-rc.1",
39
+ "@nrwl/web": "17.0.0-rc.1"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"
@@ -8,6 +8,7 @@ const versions_1 = require("@nx/js/src/utils/versions");
8
8
  const path_1 = require("path");
9
9
  const versions_2 = require("../../utils/versions");
10
10
  const init_1 = require("../init/init");
11
+ const get_npm_scope_1 = require("@nx/js/src/utils/package-json/get-npm-scope");
11
12
  function createApplicationFiles(tree, options) {
12
13
  (0, devkit_1.generateFiles)(tree, (0, path_1.join)(__dirname, options.bundler === 'vite' ? './files/app-vite' : './files/app-webpack'), options.appProjectRoot, {
13
14
  ...options,
@@ -267,11 +268,11 @@ async function normalizeOptions(host, options) {
267
268
  options.projectNameAndRootFormat = projectNameAndRootFormat;
268
269
  const e2eProjectName = `${appProjectName}-e2e`;
269
270
  const e2eProjectRoot = `${appProjectRoot}-e2e`;
270
- const { npmScope } = (0, devkit_1.getWorkspaceLayout)(host);
271
+ const npmScope = (0, get_npm_scope_1.getNpmScope)(host);
271
272
  const parsedTags = options.tags
272
273
  ? options.tags.split(',').map((s) => s.trim())
273
274
  : [];
274
- if (options.bundler === 'vite' && !options.unitTestRunner) {
275
+ if (options.bundler === 'vite' && options.unitTestRunner !== 'none') {
275
276
  options.unitTestRunner = 'vitest';
276
277
  }
277
278
  options.style = options.style || 'css';