@nx/playwright 22.7.0-beta.1 → 22.7.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/playwright",
|
|
3
|
-
"version": "22.7.0-beta.
|
|
3
|
+
"version": "22.7.0-beta.2",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"homepage": "https://nx.dev",
|
|
6
6
|
"private": false,
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"directory": "packages/playwright"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@nx/devkit": "22.7.0-beta.
|
|
38
|
-
"@nx/eslint": "22.7.0-beta.
|
|
39
|
-
"@nx/js": "22.7.0-beta.
|
|
37
|
+
"@nx/devkit": "22.7.0-beta.2",
|
|
38
|
+
"@nx/eslint": "22.7.0-beta.2",
|
|
39
|
+
"@nx/js": "22.7.0-beta.2",
|
|
40
40
|
"tslib": "^2.3.0",
|
|
41
41
|
"minimatch": "10.2.4"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"nx": "22.7.0-beta.
|
|
44
|
+
"nx": "22.7.0-beta.2"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@playwright/test": "^1.36.0"
|
|
@@ -17,7 +17,7 @@ async function playwrightExecutor(options, context) {
|
|
|
17
17
|
(0, child_process_1.execSync)(`${pmc.exec} playwright install`, {
|
|
18
18
|
cwd: devkit_1.workspaceRoot,
|
|
19
19
|
stdio: 'inherit',
|
|
20
|
-
windowsHide:
|
|
20
|
+
windowsHide: true,
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
const args = createArgs(options);
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.configurationGenerator = configurationGenerator;
|
|
4
4
|
exports.configurationGeneratorInternal = configurationGeneratorInternal;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
5
6
|
const devkit_1 = require("@nx/devkit");
|
|
6
7
|
const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
|
|
7
8
|
const prompt_1 = require("@nx/devkit/src/generators/prompt");
|
|
@@ -11,7 +12,7 @@ const package_manager_workspaces_1 = require("@nx/js/src/utils/package-manager-w
|
|
|
11
12
|
const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
|
|
12
13
|
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
13
14
|
const child_process_1 = require("child_process");
|
|
14
|
-
const path = require("path");
|
|
15
|
+
const path = tslib_1.__importStar(require("path"));
|
|
15
16
|
const add_linter_1 = require("../../utils/add-linter");
|
|
16
17
|
const versions_1 = require("../../utils/versions");
|
|
17
18
|
const init_1 = require("../init/init");
|
|
@@ -216,7 +217,7 @@ function getBrowsersInstallTask() {
|
|
|
216
217
|
const pmc = (0, devkit_1.getPackageManagerCommand)();
|
|
217
218
|
(0, child_process_1.execSync)(`${pmc.exec} playwright install`, {
|
|
218
219
|
cwd: devkit_1.workspaceRoot,
|
|
219
|
-
windowsHide:
|
|
220
|
+
windowsHide: true,
|
|
220
221
|
});
|
|
221
222
|
};
|
|
222
223
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-linter.d.ts","sourceRoot":"","sources":["../../../../../packages/playwright/src/utils/add-linter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAIjB,IAAI,EACL,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,MAAM,EAAE,UAAU,EAAwB,MAAM,YAAY,CAAC;AAatE,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC;IAC5B,uBAAuB,EAAE,OAAO,CAAC;IACjC,eAAe,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,EAAE,CAAC,EAAE,OAAO,CAAC;IACb;;QAEI;IACJ,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAsB,4BAA4B,CAChD,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"add-linter.d.ts","sourceRoot":"","sources":["../../../../../packages/playwright/src/utils/add-linter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAIjB,IAAI,EACL,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,MAAM,EAAE,UAAU,EAAwB,MAAM,YAAY,CAAC;AAatE,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC;IAC5B,uBAAuB,EAAE,OAAO,CAAC;IACjC,eAAe,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,EAAE,CAAC,EAAE,OAAO,CAAC;IACb;;QAEI;IACJ,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAsB,4BAA4B,CAChD,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,iBAAiB,CAAC,CAmF5B"}
|
package/src/utils/add-linter.js
CHANGED
|
@@ -35,7 +35,12 @@ async function addLinterToPlaywrightProject(tree, options) {
|
|
|
35
35
|
if ((0, eslint_file_1.isEslintConfigSupported)(tree, projectConfig.root) ||
|
|
36
36
|
(0, eslint_file_1.isEslintConfigSupported)(tree)) {
|
|
37
37
|
if ((0, flat_config_1.useFlatConfig)(tree)) {
|
|
38
|
-
(0, eslint_file_1.addPredefinedConfigToFlatLintConfig)(tree, projectConfig.root, 'flat/recommended',
|
|
38
|
+
(0, eslint_file_1.addPredefinedConfigToFlatLintConfig)(tree, projectConfig.root, 'flat/recommended', {
|
|
39
|
+
moduleName: 'playwright',
|
|
40
|
+
moduleImportPath: 'eslint-plugin-playwright',
|
|
41
|
+
spread: false,
|
|
42
|
+
insertAtTheEnd: false,
|
|
43
|
+
});
|
|
39
44
|
(0, eslint_file_1.addOverrideToLintConfig)(tree, projectConfig.root, {
|
|
40
45
|
files: ['*.ts', '*.js'],
|
|
41
46
|
rules: {},
|