@nx/web 22.1.0-beta.0 → 22.1.0-beta.2

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.1.0-beta.0",
3
+ "version": "22.1.0-beta.2",
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.1.0-beta.0",
39
- "@nx/js": "22.1.0-beta.0"
38
+ "@nx/devkit": "22.1.0-beta.2",
39
+ "@nx/js": "22.1.0-beta.2"
40
40
  },
41
41
  "devDependencies": {
42
- "nx": "22.1.0-beta.0"
42
+ "nx": "22.1.0-beta.2"
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
  }
@@ -239,7 +239,7 @@ async function applicationGeneratorInternal(host, schema) {
239
239
  if (options.bundler === 'vite') {
240
240
  const { viteConfigurationGenerator, createOrEditViteConfig } = (0, devkit_1.ensurePackage)('@nx/vite', versions_2.nxVersion);
241
241
  // We recommend users use `import.meta.env.MODE` and other variables in their code to differentiate between production and development.
242
- // See: https://vitejs.dev/guide/env-and-mode.html
242
+ // See: https://vite.dev/guide/env-and-mode.html
243
243
  if (host.exists((0, devkit_1.joinPathFragments)(options.appProjectRoot, 'src/environments'))) {
244
244
  host.delete((0, devkit_1.joinPathFragments)(options.appProjectRoot, 'src/environments'));
245
245
  }