@nx/playwright 19.5.0-canary.20240711-2c4c2ae → 19.5.0-canary.20240712-0b0db78
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +4 -4
- package/src/executors/playwright/playwright.impl.js +1 -2
- package/src/generators/configuration/configuration.js +2 -3
- package/src/generators/convert-to-inferred/convert-to-inferred.js +1 -2
- package/src/generators/init/init.js +2 -3
- package/src/migrations/update-17-3-1/add-project-to-config.js +1 -1
- package/src/migrations/update-18-1-0/remove-baseUrl-from-project-json.js +1 -1
- package/src/utils/add-linter.js +1 -2
- package/src/utils/preset.js +1 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/playwright",
|
3
|
-
"version": "19.5.0-canary.
|
3
|
+
"version": "19.5.0-canary.20240712-0b0db78",
|
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.5.0-canary.
|
39
|
-
"@nx/eslint": "19.5.0-canary.
|
40
|
-
"@nx/js": "19.5.0-canary.
|
38
|
+
"@nx/devkit": "19.5.0-canary.20240712-0b0db78",
|
39
|
+
"@nx/eslint": "19.5.0-canary.20240712-0b0db78",
|
40
|
+
"@nx/js": "19.5.0-canary.20240712-0b0db78",
|
41
41
|
"tslib": "^2.3.0",
|
42
42
|
"minimatch": "9.0.3"
|
43
43
|
},
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.playwrightExecutor =
|
3
|
+
exports.playwrightExecutor = playwrightExecutor;
|
4
4
|
const child_process_1 = require("child_process");
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
6
6
|
async function playwrightExecutor(options, context) {
|
@@ -33,7 +33,6 @@ async function playwrightExecutor(options, context) {
|
|
33
33
|
});
|
34
34
|
});
|
35
35
|
}
|
36
|
-
exports.playwrightExecutor = playwrightExecutor;
|
37
36
|
function createArgs(opts, exclude = ['skipInstall']) {
|
38
37
|
const args = [];
|
39
38
|
const { testFiles, ...rest } = opts;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.configurationGenerator = configurationGenerator;
|
4
|
+
exports.configurationGeneratorInternal = configurationGeneratorInternal;
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
const js_1 = require("@nx/js");
|
6
7
|
const versions_1 = require("@nx/js/src/utils/versions");
|
@@ -12,7 +13,6 @@ const init_1 = require("../init/init");
|
|
12
13
|
function configurationGenerator(tree, options) {
|
13
14
|
return configurationGeneratorInternal(tree, { addPlugin: false, ...options });
|
14
15
|
}
|
15
|
-
exports.configurationGenerator = configurationGenerator;
|
16
16
|
async function configurationGeneratorInternal(tree, options) {
|
17
17
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
18
18
|
options.addPlugin ??=
|
@@ -91,7 +91,6 @@ async function configurationGeneratorInternal(tree, options) {
|
|
91
91
|
}
|
92
92
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
93
93
|
}
|
94
|
-
exports.configurationGeneratorInternal = configurationGeneratorInternal;
|
95
94
|
function getBrowsersInstallTask() {
|
96
95
|
return () => {
|
97
96
|
devkit_1.output.log({
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.convertToInferred =
|
3
|
+
exports.convertToInferred = convertToInferred;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const plugin_1 = require("../../plugins/plugin");
|
6
6
|
const executor_to_plugin_migrator_1 = require("@nx/devkit/src/generators/plugin-migrations/executor-to-plugin-migrator");
|
@@ -20,7 +20,6 @@ async function convertToInferred(tree, options) {
|
|
20
20
|
await (0, devkit_1.formatFiles)(tree);
|
21
21
|
}
|
22
22
|
}
|
23
|
-
exports.convertToInferred = convertToInferred;
|
24
23
|
function postTargetTransformer(target) {
|
25
24
|
if (target.options) {
|
26
25
|
if (target.options?.config) {
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.initGenerator = initGenerator;
|
4
|
+
exports.initGeneratorInternal = initGeneratorInternal;
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
const add_plugin_1 = require("@nx/devkit/src/utils/add-plugin");
|
6
7
|
const plugin_1 = require("../../plugins/plugin");
|
@@ -8,7 +9,6 @@ const versions_1 = require("../../utils/versions");
|
|
8
9
|
function initGenerator(tree, options) {
|
9
10
|
return initGeneratorInternal(tree, { addPlugin: false, ...options });
|
10
11
|
}
|
11
|
-
exports.initGenerator = initGenerator;
|
12
12
|
async function initGeneratorInternal(tree, options) {
|
13
13
|
const tasks = [];
|
14
14
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
@@ -29,5 +29,4 @@ async function initGeneratorInternal(tree, options) {
|
|
29
29
|
}
|
30
30
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
31
31
|
}
|
32
|
-
exports.initGeneratorInternal = initGeneratorInternal;
|
33
32
|
exports.default = initGenerator;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = update;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const ts = require("typescript");
|
5
6
|
const tsquery_1 = require("@phenomnomnominal/tsquery");
|
@@ -13,7 +14,6 @@ async function update(tree) {
|
|
13
14
|
}
|
14
15
|
});
|
15
16
|
}
|
16
|
-
exports.default = update;
|
17
17
|
function addProjectIfExists(tree, configFilePath) {
|
18
18
|
const configFileContent = tree.read(configFilePath, 'utf-8');
|
19
19
|
const sourceFile = tsquery_1.tsquery.ast(configFileContent);
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const executor_options_utils_1 = require("@nx/devkit/src/generators/executor-options-utils");
|
5
6
|
async function default_1(tree) {
|
@@ -39,4 +40,3 @@ async function default_1(tree) {
|
|
39
40
|
}
|
40
41
|
await (0, devkit_1.formatFiles)(tree);
|
41
42
|
}
|
42
|
-
exports.default = default_1;
|
package/src/utils/add-linter.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addLinterToPlaywrightProject =
|
3
|
+
exports.addLinterToPlaywrightProject = addLinterToPlaywrightProject;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const eslint_1 = require("@nx/eslint");
|
6
6
|
const global_eslint_config_1 = require("@nx/eslint/src/generators/init/global-eslint-config");
|
@@ -50,4 +50,3 @@ async function addLinterToPlaywrightProject(tree, options) {
|
|
50
50
|
}
|
51
51
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
52
52
|
}
|
53
|
-
exports.addLinterToPlaywrightProject = addLinterToPlaywrightProject;
|
package/src/utils/preset.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.nxE2EPreset =
|
3
|
+
exports.nxE2EPreset = nxE2EPreset;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const node_fs_1 = require("node:fs");
|
6
6
|
const node_path_1 = require("node:path");
|
@@ -57,4 +57,3 @@ function nxE2EPreset(pathToConfig, options) {
|
|
57
57
|
],
|
58
58
|
});
|
59
59
|
}
|
60
|
-
exports.nxE2EPreset = nxE2EPreset;
|