@nx/web 23.0.1 → 23.0.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.
@@ -7,15 +7,12 @@ const child_process_1 = require("child_process");
7
7
  const pc = tslib_1.__importStar(require("picocolors"));
8
8
  const devkit_1 = require("@nx/devkit");
9
9
  const fs_1 = require("fs");
10
- const os_1 = require("os");
11
10
  const path_1 = require("path");
12
11
  const package_json_1 = require("nx/src/utils/package-json");
13
12
  const client_1 = require("nx/src/daemon/client/client");
14
13
  const utils_1 = require("nx/src/tasks-runner/utils");
15
14
  const internal_2 = require("@nx/js/internal");
16
15
  const detect_port_1 = tslib_1.__importDefault(require("detect-port"));
17
- // platform specific command name
18
- const pmCmd = (0, os_1.platform)() === 'win32' ? `npx.cmd` : 'npx';
19
16
  function getHttpServerArgs(options) {
20
17
  const { buildTarget, parallel, host, proxyUrl, ssl, sslCert, sslKey, proxyOptions, watch, spa, cacheSeconds, ...rest } = options;
21
18
  const args = [`-c${options.cacheSeconds}`];
@@ -133,6 +130,9 @@ async function* fileServerExecutor(options, context) {
133
130
  let running = false;
134
131
  let disposeWatch;
135
132
  if (options.buildTarget) {
133
+ // Run the build target through the workspace package manager so workspaces
134
+ // that pin a non-npm manager (e.g. devEngines.packageManager) don't fail.
135
+ const pmc = (0, devkit_1.getPackageManagerCommand)();
136
136
  const run = () => {
137
137
  if (!running) {
138
138
  running = true;
@@ -144,7 +144,7 @@ async function* fileServerExecutor(options, context) {
144
144
  process.env.NX_SERVE_STATIC_BUILD_RUNNING = 'true';
145
145
  try {
146
146
  const args = getBuildTargetCommand(options, context);
147
- (0, child_process_1.execFileSync)(pmCmd, args, {
147
+ (0, child_process_1.execFileSync)(pmc.exec, args, {
148
148
  stdio: [0, 1, 2],
149
149
  shell: true,
150
150
  windowsHide: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/web",
3
- "version": "23.0.1",
3
+ "version": "23.0.2",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "files": [
@@ -75,20 +75,20 @@
75
75
  "http-server": "^14.1.0",
76
76
  "picocolors": "^1.1.0",
77
77
  "tslib": "^2.3.0",
78
- "@nx/devkit": "23.0.1",
79
- "@nx/js": "23.0.1"
78
+ "@nx/devkit": "23.0.2",
79
+ "@nx/js": "23.0.2"
80
80
  },
81
81
  "devDependencies": {
82
- "nx": "23.0.1",
83
- "@nx/vitest": "23.0.1"
82
+ "nx": "23.0.2",
83
+ "@nx/vitest": "23.0.2"
84
84
  },
85
85
  "peerDependencies": {
86
- "@nx/cypress": "23.0.1",
87
- "@nx/eslint": "23.0.1",
88
- "@nx/jest": "23.0.1",
89
- "@nx/playwright": "23.0.1",
90
- "@nx/vite": "23.0.1",
91
- "@nx/webpack": "23.0.1"
86
+ "@nx/eslint": "23.0.2",
87
+ "@nx/cypress": "23.0.2",
88
+ "@nx/jest": "23.0.2",
89
+ "@nx/vite": "23.0.2",
90
+ "@nx/playwright": "23.0.2",
91
+ "@nx/webpack": "23.0.2"
92
92
  },
93
93
  "peerDependenciesMeta": {
94
94
  "@nx/cypress": {