@nx/web 22.7.1 → 22.7.3

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": "22.7.1",
3
+ "version": "22.7.3",
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, Playwright, 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": {
@@ -32,24 +32,24 @@
32
32
  "migrations": "./migrations.json"
33
33
  },
34
34
  "dependencies": {
35
- "detect-port": "^1.5.1",
35
+ "detect-port": "^2.1.0",
36
36
  "http-server": "^14.1.0",
37
37
  "picocolors": "^1.1.0",
38
38
  "tslib": "^2.3.0",
39
- "@nx/devkit": "22.7.1",
40
- "@nx/js": "22.7.1"
39
+ "@nx/devkit": "22.7.3",
40
+ "@nx/js": "22.7.3"
41
41
  },
42
42
  "devDependencies": {
43
- "nx": "22.7.1",
44
- "@nx/vitest": "22.7.1"
43
+ "nx": "22.7.3",
44
+ "@nx/vitest": "22.7.3"
45
45
  },
46
46
  "peerDependencies": {
47
- "@nx/cypress": "22.7.1",
48
- "@nx/eslint": "22.7.1",
49
- "@nx/jest": "22.7.1",
50
- "@nx/playwright": "22.7.1",
51
- "@nx/vite": "22.7.1",
52
- "@nx/webpack": "22.7.1"
47
+ "@nx/cypress": "22.7.3",
48
+ "@nx/eslint": "22.7.3",
49
+ "@nx/jest": "22.7.3",
50
+ "@nx/playwright": "22.7.3",
51
+ "@nx/vite": "22.7.3",
52
+ "@nx/webpack": "22.7.3"
53
53
  },
54
54
  "peerDependenciesMeta": {
55
55
  "@nx/cypress": {
@@ -1 +1 @@
1
- {"version":3,"file":"file-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/web/src/executors/file-server/file-server.impl.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,eAAe,EAIhB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AA6IlC,wBAA+B,kBAAkB,CAC/C,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,eAAe;;;;aA4HM,OAAO;YAUtC"}
1
+ {"version":3,"file":"file-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/web/src/executors/file-server/file-server.impl.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,eAAe,EAIhB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAgJlC,wBAA+B,kBAAkB,CAC/C,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,eAAe;;;;aA4HM,OAAO;YAUtC"}
@@ -12,7 +12,8 @@ const path_1 = require("path");
12
12
  const package_json_1 = require("nx/src/utils/package-json");
13
13
  const client_1 = require("nx/src/daemon/client/client");
14
14
  const utils_1 = require("nx/src/tasks-runner/utils");
15
- const detectPort = require('detect-port');
15
+ const strip_glob_to_base_dir_1 = require("@nx/js/src/utils/strip-glob-to-base-dir");
16
+ const detect_port_1 = tslib_1.__importDefault(require("detect-port"));
16
17
  // platform specific command name
17
18
  const pmCmd = (0, os_1.platform)() === 'win32' ? `npx.cmd` : 'npx';
18
19
  function getHttpServerArgs(options) {
@@ -80,11 +81,13 @@ function getBuildTargetOutputPath(options, context) {
80
81
  const project = context.projectGraph.nodes[context.projectName];
81
82
  const buildTarget = project.data.targets[target.target];
82
83
  outputPath = buildTarget.outputs?.[0];
83
- if (outputPath)
84
+ if (outputPath) {
84
85
  outputPath = (0, utils_1.interpolate)(outputPath, {
85
86
  projectName: project.data.name,
86
87
  projectRoot: project.data.root,
87
88
  });
89
+ outputPath = (0, strip_glob_to_base_dir_1.stripGlobToBaseDir)(outputPath);
90
+ }
88
91
  }
89
92
  }
90
93
  catch (e) {
@@ -167,7 +170,7 @@ async function* fileServerExecutor(options, context) {
167
170
  // perform initial run
168
171
  run();
169
172
  }
170
- const port = await detectPort(options.port || 8080);
173
+ const port = await (0, detect_port_1.default)(options.port || 8080);
171
174
  const outputPath = getBuildTargetOutputPath(options, context);
172
175
  if (options.spa) {
173
176
  const src = (0, path_1.join)(outputPath, 'index.html');