@nx/web 17.2.0-beta.10 → 17.2.0-beta.12

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": "17.2.0-beta.10",
3
+ "version": "17.2.0-beta.12",
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": "17.2.0-beta.10",
38
- "@nx/js": "17.2.0-beta.10",
39
- "@nrwl/web": "17.2.0-beta.10"
37
+ "@nx/devkit": "17.2.0-beta.12",
38
+ "@nx/js": "17.2.0-beta.12",
39
+ "@nrwl/web": "17.2.0-beta.12"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"
@@ -44,8 +44,15 @@ function getHttpServerArgs(options) {
44
44
  }
45
45
  return args;
46
46
  }
47
- function getBuildTargetCommand(options) {
48
- const cmd = ['nx', 'run', options.buildTarget];
47
+ function getBuildTargetCommand(options, context) {
48
+ const target = (0, devkit_1.parseTargetString)(options.buildTarget, context);
49
+ const cmd = ['nx', 'run'];
50
+ if (target.configuration) {
51
+ cmd.push(`${target.project}:${target.target}:${target.configuration}`);
52
+ }
53
+ else {
54
+ cmd.push(`${target.project}:${target.target}`);
55
+ }
49
56
  if (options.parallel) {
50
57
  cmd.push(`--parallel`);
51
58
  }
@@ -104,7 +111,7 @@ async function* fileServerExecutor(options, context) {
104
111
  if (!running) {
105
112
  running = true;
106
113
  try {
107
- const args = getBuildTargetCommand(options);
114
+ const args = getBuildTargetCommand(options, context);
108
115
  (0, child_process_1.execFileSync)(pmCmd, args, {
109
116
  stdio: [0, 1, 2],
110
117
  });