@nx/web 22.7.0-beta.0 → 22.7.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.7.0-beta.0",
3
+ "version": "22.7.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,12 +35,12 @@
35
35
  "http-server": "^14.1.0",
36
36
  "picocolors": "^1.1.0",
37
37
  "tslib": "^2.3.0",
38
- "@nx/devkit": "22.7.0-beta.0",
39
- "@nx/js": "22.7.0-beta.0"
38
+ "@nx/devkit": "22.7.0-beta.2",
39
+ "@nx/js": "22.7.0-beta.2"
40
40
  },
41
41
  "devDependencies": {
42
- "nx": "22.7.0-beta.0",
43
- "@nx/vitest": "22.7.0-beta.0"
42
+ "nx": "22.7.0-beta.2",
43
+ "@nx/vitest": "22.7.0-beta.2"
44
44
  },
45
45
  "publishConfig": {
46
46
  "access": "public"
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
3
4
  const devkit_1 = require("@nx/devkit");
4
- const file_server_impl_1 = require("./file-server.impl");
5
+ const file_server_impl_1 = tslib_1.__importDefault(require("./file-server.impl"));
5
6
  exports.default = (0, devkit_1.convertNxExecutor)(file_server_impl_1.default);
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = fileServerExecutor;
4
+ const tslib_1 = require("tslib");
4
5
  const internal_1 = require("@nx/devkit/internal");
5
6
  const child_process_1 = require("child_process");
6
- const pc = require("picocolors");
7
+ const pc = tslib_1.__importStar(require("picocolors"));
7
8
  const devkit_1 = require("@nx/devkit");
8
9
  const fs_1 = require("fs");
9
10
  const os_1 = require("os");
@@ -143,7 +144,7 @@ async function* fileServerExecutor(options, context) {
143
144
  (0, child_process_1.execFileSync)(pmCmd, args, {
144
145
  stdio: [0, 1, 2],
145
146
  shell: true,
146
- windowsHide: false,
147
+ windowsHide: true,
147
148
  });
148
149
  }
149
150
  catch {
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.applicationGenerator = applicationGenerator;
4
4
  exports.applicationGeneratorInternal = applicationGeneratorInternal;
5
+ const tslib_1 = require("tslib");
5
6
  const devkit_1 = require("@nx/devkit");
6
7
  const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
7
8
  const js_1 = require("@nx/js");
@@ -13,7 +14,7 @@ const get_npm_scope_1 = require("@nx/js/src/utils/package-json/get-npm-scope");
13
14
  const has_webpack_plugin_1 = require("../../utils/has-webpack-plugin");
14
15
  const target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaults-utils");
15
16
  const log_show_project_command_1 = require("@nx/devkit/src/utils/log-show-project-command");
16
- const static_serve_configuration_1 = require("../static-serve/static-serve-configuration");
17
+ const static_serve_configuration_1 = tslib_1.__importDefault(require("../static-serve/static-serve-configuration"));
17
18
  const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
18
19
  function createApplicationFiles(tree, options) {
19
20
  const rootTsConfigPath = (0, js_1.getRelativePathToRootTsConfig)(tree, options.appProjectRoot);
@@ -232,7 +233,7 @@ async function applicationGeneratorInternal(host, schema) {
232
233
  tasks.push(lintTask);
233
234
  // Add out-tsc ignore pattern when using TS solution setup
234
235
  if (options.isUsingTsSolutionConfig) {
235
- const { addIgnoresToLintConfig } = await Promise.resolve().then(() => require('@nx/eslint/src/generators/utils/eslint-file'));
236
+ const { addIgnoresToLintConfig } = await Promise.resolve().then(() => tslib_1.__importStar(require('@nx/eslint/src/generators/utils/eslint-file')));
236
237
  addIgnoresToLintConfig(host, options.appProjectRoot, ['**/out-tsc']);
237
238
  }
238
239
  }
@@ -264,7 +265,7 @@ async function applicationGeneratorInternal(host, schema) {
264
265
  if (options.bundler !== 'vite' && options.unitTestRunner === 'vitest') {
265
266
  const { createOrEditViteConfig } = (0, devkit_1.ensurePackage)('@nx/vite', versions_2.nxVersion);
266
267
  (0, devkit_1.ensurePackage)('@nx/vitest', versions_2.nxVersion);
267
- const { configurationGenerator } = await Promise.resolve().then(() => require('@nx/vitest/generators'));
268
+ const { configurationGenerator } = await Promise.resolve().then(() => tslib_1.__importStar(require('@nx/vitest/generators')));
268
269
  const vitestTask = await configurationGenerator(host, {
269
270
  uiFramework: 'none',
270
271
  project: options.projectName,
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.waitForPortOpen = waitForPortOpen;
4
+ const tslib_1 = require("tslib");
4
5
  const devkit_1 = require("@nx/devkit");
5
- const net = require("net");
6
+ const net = tslib_1.__importStar(require("net"));
6
7
  function waitForPortOpen(port, options = {}) {
7
8
  const host = options.host ?? '127.0.0.1';
8
9
  const allowedErrorCodes = ['ECONNREFUSED', 'ECONNRESET', 'ETIMEDOUT'];