@nx/playwright 24.0.0-canary.20261020-e7ffd79 → 24.0.0-rc.0
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.
|
@@ -141,7 +141,7 @@ async function configurationGeneratorInternal(tree, rawOptions) {
|
|
|
141
141
|
skipPackageJson: options.skipPackageJson,
|
|
142
142
|
js: options.js,
|
|
143
143
|
directory: options.directory,
|
|
144
|
-
enableTypedLinting:
|
|
144
|
+
enableTypedLinting: options.enableTypedLinting,
|
|
145
145
|
rootProject: options.rootProject ?? projectConfig.root === '.',
|
|
146
146
|
}));
|
|
147
147
|
if (options.js) {
|
|
@@ -12,10 +12,6 @@ export interface ConfigurationGeneratorSchema {
|
|
|
12
12
|
skipInstall?: boolean;
|
|
13
13
|
linter?: LinterType;
|
|
14
14
|
enableTypedLinting?: boolean; // default is false
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
|
|
17
|
-
*/
|
|
18
|
-
setParserOptionsProject?: boolean; // default is false
|
|
19
15
|
/**
|
|
20
16
|
* command to give playwright to run the web server
|
|
21
17
|
* @example: "npx nx serve my-fe-app"
|
|
@@ -52,12 +52,6 @@
|
|
|
52
52
|
"description": "Whether to enable typed linting. For flat configs, this configures the recommended `parserOptions.projectService` and `tsconfigRootDir`. For legacy `.eslintrc` configs, this configures `parserOptions.project`. We do not enable this by default for lint performance reasons.",
|
|
53
53
|
"default": false
|
|
54
54
|
},
|
|
55
|
-
"setParserOptionsProject": {
|
|
56
|
-
"type": "boolean",
|
|
57
|
-
"description": "Deprecated alias for `enableTypedLinting`.",
|
|
58
|
-
"default": false,
|
|
59
|
-
"x-deprecated": "Use `enableTypedLinting` instead. This option will be removed in Nx v24."
|
|
60
|
-
},
|
|
61
55
|
"skipFormat": {
|
|
62
56
|
"description": "Skip formatting files.",
|
|
63
57
|
"type": "boolean",
|
|
@@ -4,10 +4,6 @@ export interface PlaywrightLinterOptions {
|
|
|
4
4
|
project: string;
|
|
5
5
|
linter: LinterType;
|
|
6
6
|
enableTypedLinting?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
|
|
9
|
-
*/
|
|
10
|
-
setParserOptionsProject?: boolean;
|
|
11
7
|
skipPackageJson: boolean;
|
|
12
8
|
rootProject: boolean;
|
|
13
9
|
js?: boolean;
|
|
@@ -12,7 +12,7 @@ async function addLinterToPlaywrightProject(tree, options) {
|
|
|
12
12
|
const tasks = [];
|
|
13
13
|
const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, options.project);
|
|
14
14
|
const eslintFile = (0, internal_1.findEslintFile)(tree, projectConfig.root);
|
|
15
|
-
const enableTypedLinting =
|
|
15
|
+
const { enableTypedLinting } = options;
|
|
16
16
|
// An existing ESLint config means the project is already registered, so skip
|
|
17
17
|
// straight to the Playwright-specific shaping below.
|
|
18
18
|
if (options.linter !== 'eslint' || !eslintFile) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/playwright",
|
|
3
|
-
"version": "24.0.0-
|
|
3
|
+
"version": "24.0.0-rc.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
@@ -75,16 +75,16 @@
|
|
|
75
75
|
"supportsOptionalMigrations": true
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@nx/devkit": "24.0.0-
|
|
79
|
-
"@nx/eslint": "24.0.0-
|
|
80
|
-
"@nx/js": "24.0.0-
|
|
78
|
+
"@nx/devkit": "24.0.0-rc.0",
|
|
79
|
+
"@nx/eslint": "24.0.0-rc.0",
|
|
80
|
+
"@nx/js": "24.0.0-rc.0",
|
|
81
81
|
"https-proxy-agent": "^7.0.6",
|
|
82
82
|
"minimatch": "10.2.5",
|
|
83
83
|
"semver": "^7.6.3",
|
|
84
84
|
"tslib": "^2.3.0"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
|
-
"nx": "24.0.0-
|
|
87
|
+
"nx": "24.0.0-rc.0"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
90
|
"@playwright/test": "^1.36.0"
|