@nx/playwright 19.2.0-beta.2 → 19.2.0-beta.4
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +4 -4
- package/src/generators/init/init.js +1 -1
- package/src/plugins/plugin.js +12 -6
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/playwright",
|
3
|
-
"version": "19.2.0-beta.
|
3
|
+
"version": "19.2.0-beta.4",
|
4
4
|
"type": "commonjs",
|
5
5
|
"homepage": "https://nx.dev",
|
6
6
|
"private": false,
|
@@ -35,9 +35,9 @@
|
|
35
35
|
},
|
36
36
|
"dependencies": {
|
37
37
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
38
|
-
"@nx/devkit": "19.2.0-beta.
|
39
|
-
"@nx/eslint": "19.2.0-beta.
|
40
|
-
"@nx/js": "19.2.0-beta.
|
38
|
+
"@nx/devkit": "19.2.0-beta.4",
|
39
|
+
"@nx/eslint": "19.2.0-beta.4",
|
40
|
+
"@nx/js": "19.2.0-beta.4",
|
41
41
|
"tslib": "^2.3.0",
|
42
42
|
"minimatch": "9.0.3"
|
43
43
|
},
|
@@ -22,7 +22,7 @@ async function initGeneratorInternal(tree, options) {
|
|
22
22
|
}, undefined, options.keepExistingVersions));
|
23
23
|
}
|
24
24
|
if (options.addPlugin) {
|
25
|
-
await (0, add_plugin_1.
|
25
|
+
await (0, add_plugin_1.addPluginV1)(tree, await (0, devkit_1.createProjectGraphAsync)(), '@nx/playwright/plugin', plugin_1.createNodes, { targetName: ['e2e', 'playwright:e2e', 'playwright-e2e'] }, options.updatePackageScripts);
|
26
26
|
}
|
27
27
|
if (!options.skipFormat) {
|
28
28
|
await (0, devkit_1.formatFiles)(tree);
|
package/src/plugins/plugin.js
CHANGED
@@ -77,18 +77,24 @@ async function buildPlaywrightTargets(configFilePath, projectRoot, options, cont
|
|
77
77
|
targets[options.targetName] = {
|
78
78
|
...baseTargetConfig,
|
79
79
|
cache: true,
|
80
|
-
inputs:
|
81
|
-
|
82
|
-
|
80
|
+
inputs: [
|
81
|
+
...('production' in namedInputs
|
82
|
+
? ['default', '^production']
|
83
|
+
: ['default', '^default']),
|
84
|
+
{ externalDependencies: ['@playwright/test'] },
|
85
|
+
],
|
83
86
|
outputs: getOutputs(projectRoot, playwrightConfig),
|
84
87
|
};
|
85
88
|
if (options.ciTargetName) {
|
86
89
|
const ciBaseTargetConfig = {
|
87
90
|
...baseTargetConfig,
|
88
91
|
cache: true,
|
89
|
-
inputs:
|
90
|
-
|
91
|
-
|
92
|
+
inputs: [
|
93
|
+
...('production' in namedInputs
|
94
|
+
? ['default', '^production']
|
95
|
+
: ['default', '^default']),
|
96
|
+
{ externalDependencies: ['@playwright/test'] },
|
97
|
+
],
|
92
98
|
outputs: getOutputs(projectRoot, playwrightConfig),
|
93
99
|
};
|
94
100
|
const groupName = 'E2E (CI)';
|