@nx/playwright 20.5.0-canary.20250204-bc4ded0 → 20.5.0-canary.20250208-c0fd00d
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/playwright",
|
|
3
|
-
"version": "20.5.0-canary.
|
|
3
|
+
"version": "20.5.0-canary.20250208-c0fd00d",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"homepage": "https://nx.dev",
|
|
6
6
|
"private": false,
|
|
@@ -35,26 +35,20 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
38
|
-
"@nx/devkit": "20.5.0-canary.
|
|
39
|
-
"@nx/eslint": "20.5.0-canary.
|
|
40
|
-
"@nx/
|
|
38
|
+
"@nx/devkit": "20.5.0-canary.20250208-c0fd00d",
|
|
39
|
+
"@nx/eslint": "20.5.0-canary.20250208-c0fd00d",
|
|
40
|
+
"@nx/webpack": "20.5.0-canary.20250208-c0fd00d",
|
|
41
|
+
"@nx/vite": "20.5.0-canary.20250208-c0fd00d",
|
|
42
|
+
"@nx/js": "20.5.0-canary.20250208-c0fd00d",
|
|
41
43
|
"tslib": "^2.3.0",
|
|
42
44
|
"minimatch": "9.0.3"
|
|
43
45
|
},
|
|
44
46
|
"peerDependencies": {
|
|
45
|
-
"@playwright/test": "^1.36.0"
|
|
46
|
-
"@nx/webpack": "file:../webpack",
|
|
47
|
-
"@nx/vite": "file:../vite"
|
|
47
|
+
"@playwright/test": "^1.36.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependenciesMeta": {
|
|
50
50
|
"@playwright/test": {
|
|
51
51
|
"optional": true
|
|
52
|
-
},
|
|
53
|
-
"@nx/webpack": {
|
|
54
|
-
"optional": true
|
|
55
|
-
},
|
|
56
|
-
"@nx/vite": {
|
|
57
|
-
"optional": true
|
|
58
52
|
}
|
|
59
53
|
},
|
|
60
54
|
"executors": "./executors.json",
|
|
@@ -7,6 +7,8 @@ const add_e2e_ci_target_defaults_1 = require("./add-e2e-ci-target-defaults");
|
|
|
7
7
|
const loaded_nx_plugin_1 = require("nx/src/project-graph/plugins/loaded-nx-plugin");
|
|
8
8
|
const retrieve_workspace_files_1 = require("nx/src/project-graph/utils/retrieve-workspace-files");
|
|
9
9
|
const error_types_1 = require("nx/src/project-graph/error-types");
|
|
10
|
+
const plugin_1 = require("@nx/webpack/src/plugins/plugin");
|
|
11
|
+
const plugin_2 = require("@nx/vite/plugin");
|
|
10
12
|
async function default_1(tree) {
|
|
11
13
|
const graph = await (0, devkit_1.createProjectGraphAsync)();
|
|
12
14
|
const collectedProjects = [];
|
|
@@ -84,8 +86,8 @@ async function default_1(tree) {
|
|
|
84
86
|
: 'preview', projectToMigrate.configFileType === 'webpack'
|
|
85
87
|
? 'serveStaticTargetName'
|
|
86
88
|
: 'previewTargetName', projectToMigrate.configFileType === 'webpack'
|
|
87
|
-
?
|
|
88
|
-
:
|
|
89
|
+
? plugin_1.createNodesV2
|
|
90
|
+
: plugin_2.createNodesV2)) ??
|
|
89
91
|
getServeStaticLikeTarget(tree, graph, projectToMigrate.projectName, projectToMigrate.configFileType === 'webpack'
|
|
90
92
|
? '@nx/web:file-server'
|
|
91
93
|
: '@nx/vite:preview-server');
|
|
@@ -131,14 +133,6 @@ async function default_1(tree) {
|
|
|
131
133
|
await (0, add_e2e_ci_target_defaults_1.default)(tree);
|
|
132
134
|
await (0, devkit_1.formatFiles)(tree);
|
|
133
135
|
}
|
|
134
|
-
async function getDynamicImportedModule(moduleName, error) {
|
|
135
|
-
try {
|
|
136
|
-
return (await Promise.resolve(`${moduleName}`).then(s => require(s)));
|
|
137
|
-
}
|
|
138
|
-
catch {
|
|
139
|
-
throw new Error(error);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
136
|
async function getServeStaticTargetNameForConfigFile(tree, pluginName, configFile, defaultTargetName, targetNamePluginOption, createNodesV2) {
|
|
143
137
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
144
138
|
const matchingPluginRegistrations = nxJson.plugins?.filter((p) => typeof p === 'string' ? p === pluginName : p.plugin === pluginName);
|