@nx/web 22.0.1 → 22.0.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.0.1",
3
+ "version": "22.0.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": {
@@ -35,11 +35,11 @@
35
35
  "http-server": "^14.1.0",
36
36
  "picocolors": "^1.1.0",
37
37
  "tslib": "^2.3.0",
38
- "@nx/devkit": "22.0.1",
39
- "@nx/js": "22.0.1"
38
+ "@nx/devkit": "22.0.3",
39
+ "@nx/js": "22.0.3"
40
40
  },
41
41
  "devDependencies": {
42
- "nx": "22.0.1"
42
+ "nx": "22.0.3"
43
43
  },
44
44
  "publishConfig": {
45
45
  "access": "public"
@@ -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":"AAEA,OAAO,EACL,eAAe,EAIhB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAqIlC,wBAA+B,kBAAkB,CAC/C,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,eAAe;;;;aA4HM,OAAO;YAStC"}
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;AAqIlC,wBAA+B,kBAAkB,CAC/C,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,eAAe;;;;aA4HM,OAAO;YAUtC"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = fileServerExecutor;
4
+ const internal_1 = require("@nx/devkit/internal");
4
5
  const child_process_1 = require("child_process");
5
6
  const pc = require("picocolors");
6
7
  const devkit_1 = require("@nx/devkit");
@@ -207,7 +208,9 @@ async function* fileServerExecutor(options, context) {
207
208
  baseUrl: `${options.ssl ? 'https' : 'http'}://${options.host}:${port}`,
208
209
  };
209
210
  return new Promise((res) => {
210
- serve.on('exit', (code) => {
211
+ serve.on('exit', (code, signal) => {
212
+ if (code === null)
213
+ code = (0, internal_1.signalToCode)(signal);
211
214
  if (code == 0) {
212
215
  res({ success: true });
213
216
  }