@nx/playwright 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 +6 -6
- package/src/plugins/plugin.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/playwright",
|
|
3
|
-
"version": "20.4.0-beta.
|
|
3
|
+
"version": "20.4.0-beta.2",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"homepage": "https://nx.dev",
|
|
6
6
|
"private": false,
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
38
|
-
"@nx/devkit": "20.4.0-beta.
|
|
39
|
-
"@nx/eslint": "20.4.0-beta.
|
|
40
|
-
"@nx/webpack": "20.4.0-beta.
|
|
41
|
-
"@nx/vite": "20.4.0-beta.
|
|
42
|
-
"@nx/js": "20.4.0-beta.
|
|
38
|
+
"@nx/devkit": "20.4.0-beta.2",
|
|
39
|
+
"@nx/eslint": "20.4.0-beta.2",
|
|
40
|
+
"@nx/webpack": "20.4.0-beta.2",
|
|
41
|
+
"@nx/vite": "20.4.0-beta.2",
|
|
42
|
+
"@nx/js": "20.4.0-beta.2",
|
|
43
43
|
"tslib": "^2.3.0",
|
|
44
44
|
"minimatch": "9.0.3"
|
|
45
45
|
},
|
package/src/plugins/plugin.js
CHANGED
|
@@ -54,7 +54,7 @@ async function createNodesInternal(configFilePath, options, context, targetsCach
|
|
|
54
54
|
return {};
|
|
55
55
|
}
|
|
56
56
|
const normalizedOptions = normalizeOptions(options);
|
|
57
|
-
const hash = await (0, calculate_hash_for_create_nodes_1.calculateHashForCreateNodes)(projectRoot,
|
|
57
|
+
const hash = await (0, calculate_hash_for_create_nodes_1.calculateHashForCreateNodes)(projectRoot, normalizedOptions, context, [(0, js_1.getLockFileName)((0, devkit_1.detectPackageManager)(context.workspaceRoot))]);
|
|
58
58
|
targetsCache[hash] ??= await buildPlaywrightTargets(configFilePath, projectRoot, normalizedOptions, context);
|
|
59
59
|
const { targets, metadata } = targetsCache[hash];
|
|
60
60
|
return {
|
|
@@ -227,8 +227,8 @@ function createMatcher(pattern) {
|
|
|
227
227
|
function normalizeOptions(options) {
|
|
228
228
|
return {
|
|
229
229
|
...options,
|
|
230
|
-
targetName: options
|
|
231
|
-
ciTargetName: options
|
|
230
|
+
targetName: options?.targetName ?? 'e2e',
|
|
231
|
+
ciTargetName: options?.ciTargetName ?? 'e2e-ci',
|
|
232
232
|
};
|
|
233
233
|
}
|
|
234
234
|
function getTestOutput(playwrightConfig) {
|