@nx/web 23.0.0-beta.1 → 23.0.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": "23.0.0-beta.1",
3
+ "version": "23.0.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": {
@@ -36,20 +36,20 @@
36
36
  "http-server": "^14.1.0",
37
37
  "picocolors": "^1.1.0",
38
38
  "tslib": "^2.3.0",
39
- "@nx/devkit": "23.0.0-beta.1",
40
- "@nx/js": "23.0.0-beta.1"
39
+ "@nx/devkit": "23.0.0-beta.2",
40
+ "@nx/js": "23.0.0-beta.2"
41
41
  },
42
42
  "devDependencies": {
43
- "nx": "23.0.0-beta.1",
44
- "@nx/vitest": "23.0.0-beta.1"
43
+ "nx": "23.0.0-beta.2",
44
+ "@nx/vitest": "23.0.0-beta.2"
45
45
  },
46
46
  "peerDependencies": {
47
- "@nx/cypress": "23.0.0-beta.1",
48
- "@nx/eslint": "23.0.0-beta.1",
49
- "@nx/jest": "23.0.0-beta.1",
50
- "@nx/playwright": "23.0.0-beta.1",
51
- "@nx/vite": "23.0.0-beta.1",
52
- "@nx/webpack": "23.0.0-beta.1"
47
+ "@nx/cypress": "23.0.0-beta.2",
48
+ "@nx/eslint": "23.0.0-beta.2",
49
+ "@nx/jest": "23.0.0-beta.2",
50
+ "@nx/playwright": "23.0.0-beta.2",
51
+ "@nx/vite": "23.0.0-beta.2",
52
+ "@nx/webpack": "23.0.0-beta.2"
53
53
  },
54
54
  "peerDependenciesMeta": {
55
55
  "@nx/cypress": {
@@ -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":"AAGA,OAAO,EACL,eAAe,EAIhB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AA6IlC,wBAA+B,kBAAkB,CAC/C,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,eAAe;;;;aA4HM,OAAO;YAUtC"}
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;AAgJlC,wBAA+B,kBAAkB,CAC/C,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,eAAe;;;;aA4HM,OAAO;YAUtC"}
@@ -12,6 +12,7 @@ const path_1 = require("path");
12
12
  const package_json_1 = require("nx/src/utils/package-json");
13
13
  const client_1 = require("nx/src/daemon/client/client");
14
14
  const utils_1 = require("nx/src/tasks-runner/utils");
15
+ const strip_glob_to_base_dir_1 = require("@nx/js/src/utils/strip-glob-to-base-dir");
15
16
  const detectPort = require('detect-port');
16
17
  // platform specific command name
17
18
  const pmCmd = (0, os_1.platform)() === 'win32' ? `npx.cmd` : 'npx';
@@ -80,11 +81,13 @@ function getBuildTargetOutputPath(options, context) {
80
81
  const project = context.projectGraph.nodes[context.projectName];
81
82
  const buildTarget = project.data.targets[target.target];
82
83
  outputPath = buildTarget.outputs?.[0];
83
- if (outputPath)
84
+ if (outputPath) {
84
85
  outputPath = (0, utils_1.interpolate)(outputPath, {
85
86
  projectName: project.data.name,
86
87
  projectRoot: project.data.root,
87
88
  });
89
+ outputPath = (0, strip_glob_to_base_dir_1.stripGlobToBaseDir)(outputPath);
90
+ }
88
91
  }
89
92
  }
90
93
  catch (e) {
@@ -25,6 +25,7 @@
25
25
  "description": "The file extension to be used for style files.",
26
26
  "type": "string",
27
27
  "default": "css",
28
+ "enum": ["css", "scss"],
28
29
  "x-prompt": {
29
30
  "message": "Which stylesheet format would you like to use?",
30
31
  "type": "list",
@@ -35,11 +36,7 @@
35
36
  },
36
37
  {
37
38
  "value": "scss",
38
- "label": "SASS(.scss) [ https://sass-lang.com ]"
39
- },
40
- {
41
- "value": "less",
42
- "label": "LESS [ https://lesscss.org ]"
39
+ "label": "SASS(.scss) [ https://sass-lang.com ]"
43
40
  }
44
41
  ]
45
42
  }