@nx/web 18.0.4 → 18.0.5

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": "18.0.4",
3
+ "version": "18.0.5",
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, 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": {
@@ -34,9 +34,9 @@
34
34
  "detect-port": "^1.5.1",
35
35
  "http-server": "^14.1.0",
36
36
  "tslib": "^2.3.0",
37
- "@nx/devkit": "18.0.4",
38
- "@nx/js": "18.0.4",
39
- "@nrwl/web": "18.0.4"
37
+ "@nx/devkit": "18.0.5",
38
+ "@nx/js": "18.0.5",
39
+ "@nrwl/web": "18.0.5"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"
@@ -122,6 +122,12 @@ async function* fileServerExecutor(options, context) {
122
122
  const run = () => {
123
123
  if (!running) {
124
124
  running = true;
125
+ /**
126
+ * Expose a variable to the build target to know if it's being run by the serve-static executor
127
+ * This is useful because a config might need to change if it's being run by serve-static without the user's input
128
+ * or if being ran by another executor (eg. E2E tests)
129
+ * */
130
+ process.env.NX_SERVE_STATIC_BUILD_RUNNING = 'true';
125
131
  try {
126
132
  const args = getBuildTargetCommand(options, context);
127
133
  (0, child_process_1.execFileSync)(pmCmd, args, {
@@ -132,6 +138,7 @@ async function* fileServerExecutor(options, context) {
132
138
  throw new Error(`Build target failed: ${chalk.bold(options.buildTarget)}`);
133
139
  }
134
140
  finally {
141
+ process.env.NX_SERVE_STATIC_BUILD_RUNNING = undefined;
135
142
  running = false;
136
143
  }
137
144
  }
@@ -289,7 +289,7 @@ export class AppElement extends HTMLElement {
289
289
  You can activate distributed tasks executions and caching by
290
290
  running:
291
291
  </p>
292
- <pre>nx connect-to-nx-cloud</pre>
292
+ <pre>nx connect</pre>
293
293
  <a href="https://nx.app/?utm_source=nx-project" target="_blank" rel="noreferrer"> What is Nx Cloud? </a>
294
294
  </div>
295
295
  <a id="nx-repo" class="button-pill rounded shadow" href="https://github.com/nrwl/nx?utm_source=nx-project" target="_blank" rel="noreferrer">
@@ -289,7 +289,7 @@ export class AppElement extends HTMLElement {
289
289
  You can activate distributed tasks executions and caching by
290
290
  running:
291
291
  </p>
292
- <pre>nx connect-to-nx-cloud</pre>
292
+ <pre>nx connect</pre>
293
293
  <a href="https://nx.app/?utm_source=nx-project" target="_blank" rel="noreferrer"> What is Nx Cloud? </a>
294
294
  </div>
295
295
  <a id="nx-repo" class="button-pill rounded shadow" href="https://github.com/nrwl/nx?utm_source=nx-project" target="_blank" rel="noreferrer">