@nx/web 20.4.0-beta.1 → 20.4.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": "20.4.0-beta.
|
|
3
|
+
"version": "20.4.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,8 +35,8 @@
|
|
|
35
35
|
"http-server": "^14.1.0",
|
|
36
36
|
"picocolors": "^1.1.0",
|
|
37
37
|
"tslib": "^2.3.0",
|
|
38
|
-
"@nx/devkit": "20.4.0-beta.
|
|
39
|
-
"@nx/js": "20.4.0-beta.
|
|
38
|
+
"@nx/devkit": "20.4.0-beta.2",
|
|
39
|
+
"@nx/js": "20.4.0-beta.2"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
@@ -155,12 +155,11 @@ async function addProject(tree, options) {
|
|
|
155
155
|
name: (0, get_import_path_1.getImportPath)(tree, options.name),
|
|
156
156
|
version: '0.0.1',
|
|
157
157
|
private: true,
|
|
158
|
-
nx:
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
},
|
|
158
|
+
nx: options.parsedTags?.length
|
|
159
|
+
? {
|
|
160
|
+
tags: options.parsedTags,
|
|
161
|
+
}
|
|
162
|
+
: undefined,
|
|
164
163
|
});
|
|
165
164
|
}
|
|
166
165
|
else {
|
|
@@ -193,6 +192,9 @@ async function applicationGenerator(host, schema) {
|
|
|
193
192
|
}
|
|
194
193
|
async function applicationGeneratorInternal(host, schema) {
|
|
195
194
|
const options = await normalizeOptions(host, schema);
|
|
195
|
+
if (options.isUsingTsSolutionConfig) {
|
|
196
|
+
(0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(host, options.appProjectRoot);
|
|
197
|
+
}
|
|
196
198
|
const tasks = [];
|
|
197
199
|
const jsInitTask = await (0, js_1.initGenerator)(host, {
|
|
198
200
|
js: false,
|
|
@@ -448,9 +450,6 @@ async function applicationGeneratorInternal(host, schema) {
|
|
|
448
450
|
}, options.linter === 'eslint'
|
|
449
451
|
? ['eslint.config.js', 'eslint.config.cjs', 'eslint.config.mjs']
|
|
450
452
|
: undefined);
|
|
451
|
-
if (options.isUsingTsSolutionConfig) {
|
|
452
|
-
(0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(host, options.appProjectRoot);
|
|
453
|
-
}
|
|
454
453
|
if (!options.skipFormat) {
|
|
455
454
|
await (0, devkit_1.formatFiles)(host);
|
|
456
455
|
}
|
|
@@ -487,7 +486,9 @@ async function normalizeOptions(host, options) {
|
|
|
487
486
|
name: (0, devkit_1.names)(options.name).fileName,
|
|
488
487
|
compiler: options.compiler ?? 'babel',
|
|
489
488
|
bundler: options.bundler ?? 'webpack',
|
|
490
|
-
projectName:
|
|
489
|
+
projectName: isUsingTsSolutionConfig
|
|
490
|
+
? (0, get_import_path_1.getImportPath)(host, appProjectName)
|
|
491
|
+
: appProjectName,
|
|
491
492
|
strict: options.strict ?? true,
|
|
492
493
|
appProjectRoot,
|
|
493
494
|
e2eProjectRoot,
|