@nx/playwright 22.7.0-beta.7 → 22.7.0-beta.8

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/executors.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
- "executors": {
3
- "playwright": {
4
- "implementation": "./src/executors/playwright/playwright.impl",
5
- "schema": "./src/executors/playwright/schema.json",
6
- "description": "Run Playwright tests."
7
- },
8
- "merge-reports": {
9
- "implementation": "./src/executors/merge-reports/merge-reports.impl",
10
- "schema": "./src/executors/merge-reports/schema.json",
11
- "description": "Merge Playwright blob reports to produce unified reports for the configured reporters (excluding the `blob` reporter).",
12
- "hidden": true
2
+ "executors": {
3
+ "playwright": {
4
+ "implementation": "./src/executors/playwright/playwright.impl",
5
+ "schema": "./src/executors/playwright/schema.json",
6
+ "description": "Run Playwright tests."
7
+ },
8
+ "merge-reports": {
9
+ "implementation": "./src/executors/merge-reports/merge-reports.impl",
10
+ "schema": "./src/executors/merge-reports/schema.json",
11
+ "description": "Merge Playwright blob reports to produce unified reports for the configured reporters (excluding the `blob` reporter).",
12
+ "hidden": true
13
+ }
13
14
  }
14
- }
15
15
  }
package/generators.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
- "name": "Nx Playwright",
3
- "version": "0.1",
4
- "generators": {
5
- "configuration": {
6
- "factory": "./src/generators/configuration/configuration#configurationGeneratorInternal",
7
- "schema": "./src/generators/configuration/schema.json",
8
- "description": "Add Nx Playwright configuration to your project"
9
- },
10
- "init": {
11
- "factory": "./src/generators/init/init#initGeneratorInternal",
12
- "schema": "./src/generators/init/schema.json",
13
- "description": "Initializes a Playwright project in the current workspace",
14
- "hidden": true
15
- },
16
- "convert-to-inferred": {
17
- "factory": "./src/generators/convert-to-inferred/convert-to-inferred",
18
- "schema": "./src/generators/convert-to-inferred/schema.json",
19
- "description": "Convert existing Playwright project(s) using `@nx/playwright:playwright` executor to use `@nx/playwright/plugin`."
2
+ "name": "Nx Playwright",
3
+ "version": "0.1",
4
+ "generators": {
5
+ "configuration": {
6
+ "factory": "./src/generators/configuration/configuration#configurationGeneratorInternal",
7
+ "schema": "./src/generators/configuration/schema.json",
8
+ "description": "Add Nx Playwright configuration to your project"
9
+ },
10
+ "init": {
11
+ "factory": "./src/generators/init/init#initGeneratorInternal",
12
+ "schema": "./src/generators/init/schema.json",
13
+ "description": "Initializes a Playwright project in the current workspace",
14
+ "hidden": true
15
+ },
16
+ "convert-to-inferred": {
17
+ "factory": "./src/generators/convert-to-inferred/convert-to-inferred",
18
+ "schema": "./src/generators/convert-to-inferred/schema.json",
19
+ "description": "Convert existing Playwright project(s) using `@nx/playwright:playwright` executor to use `@nx/playwright/plugin`."
20
+ }
20
21
  }
21
- }
22
22
  }
package/migrations.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "generators": {}
2
+ "generators": {}
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/playwright",
3
- "version": "22.7.0-beta.7",
3
+ "version": "22.7.0-beta.8",
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.7",
38
- "@nx/eslint": "22.7.0-beta.7",
39
- "@nx/js": "22.7.0-beta.7",
37
+ "@nx/devkit": "22.7.0-beta.8",
38
+ "@nx/eslint": "22.7.0-beta.8",
39
+ "@nx/js": "22.7.0-beta.8",
40
40
  "tslib": "^2.3.0",
41
41
  "minimatch": "10.2.4"
42
42
  },
43
43
  "devDependencies": {
44
- "nx": "22.7.0-beta.7"
44
+ "nx": "22.7.0-beta.8"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@playwright/test": "^1.36.0"
@@ -1,22 +1,22 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "version": 2,
4
- "title": "Schema for Playwright Merge Reports Executor",
5
- "description": "Merge Playwright blob reports to produce unified reports for the configured reporters (excluding the `blob` reporter).",
6
- "type": "object",
7
- "properties": {
8
- "config": {
9
- "description": "The Playwright configuration file path. Relative to the project root.",
10
- "type": "string",
11
- "x-completion-type": "file",
12
- "x-completion-glob": "playwright?(*)@(.js|.cjs|.mjs|.ts|.cts|.mtx)",
13
- "x-priority": "important"
2
+ "$schema": "https://json-schema.org/schema",
3
+ "version": 2,
4
+ "title": "Schema for Playwright Merge Reports Executor",
5
+ "description": "Merge Playwright blob reports to produce unified reports for the configured reporters (excluding the `blob` reporter).",
6
+ "type": "object",
7
+ "properties": {
8
+ "config": {
9
+ "description": "The Playwright configuration file path. Relative to the project root.",
10
+ "type": "string",
11
+ "x-completion-type": "file",
12
+ "x-completion-glob": "playwright?(*)@(.js|.cjs|.mjs|.ts|.cts|.mtx)",
13
+ "x-priority": "important"
14
+ },
15
+ "expectedSuites": {
16
+ "description": "The expected number of test suites to produce a report.",
17
+ "type": "number",
18
+ "x-priority": "important"
19
+ }
14
20
  },
15
- "expectedSuites": {
16
- "description": "The expected number of test suites to produce a report.",
17
- "type": "number",
18
- "x-priority": "important"
19
- }
20
- },
21
- "required": ["config"]
21
+ "required": ["config"]
22
22
  }
@@ -1,165 +1,165 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "version": 2,
4
- "title": "Playwright executor",
5
- "description": "Run Playwright tests.",
6
- "type": "object",
7
- "properties": {
8
- "browser": {
9
- "type": "string",
10
- "description": "Browser to use for tests, one of 'all', 'chromium', 'firefox' or 'webkit'. If a playwright config is provided/discovered then the browserName value is expected from the configured 'projects'",
11
- "x-priority": "important"
12
- },
13
- "config": {
14
- "type": "string",
15
- "description": "Configuration file, or a test directory with optional",
16
- "x-completion-type": "file",
17
- "x-completion-glob": "playwright?(*)@(.js|.cjs|.mjs|.ts|.cts|.mtx)",
18
- "x-priority": "important"
19
- },
20
- "debug": {
21
- "type": "boolean",
22
- "description": "Run tests with Playwright Inspector. Shortcut for 'PWDEBUG=1' environment variable and '--timeout=0',--max-failures=1 --headed --workers=1' options"
23
- },
24
- "lastFailed": {
25
- "type": "boolean",
26
- "description": "Run only the tests that failed in the last run"
27
- },
28
- "forbidOnly": {
29
- "type": "boolean",
30
- "description": "Fail if test.only is called"
31
- },
32
- "fullyParallel": {
33
- "type": "boolean",
34
- "description": "Run all tests in parallel"
35
- },
36
- "grep": {
37
- "alias": "g",
38
- "type": "string",
39
- "description": "Only run tests matching this regular expression"
40
- },
41
- "globalTimeout": {
42
- "type": "number",
43
- "description": "Maximum time this test suite can run in milliseconds"
44
- },
45
- "grepInvert": {
46
- "alias": "gv",
47
- "type": "string",
48
- "description": "Only run tests that do not match this regular expression"
49
- },
50
- "testFiles": {
51
- "alias": "t",
52
- "type": "array",
53
- "description": "Test files to run",
54
- "items": {
55
- "type": "string"
56
- }
57
- },
58
- "headed": {
59
- "type": "boolean",
60
- "description": "Run tests in headed browsers",
61
- "x-priority": "important"
62
- },
63
- "ignoreSnapshots": {
64
- "type": "boolean",
65
- "description": "Ignore screenshot and snapshot expectations"
66
- },
67
- "workers": {
68
- "alias": "j",
69
- "oneOf": [{ "type": "number" }, { "type": "string" }],
70
- "description": "Number of concurrent workers or percentage of logical CPU cores, use 1 to run in a single worker"
71
- },
72
- "list": {
73
- "type": "boolean",
74
- "description": "Collect all the tests and report them, but do not run"
75
- },
76
- "maxFailures": {
77
- "alias": "x",
78
- "oneOf": [{ "type": "number" }, { "type": "boolean" }],
79
- "description": "Stop after the first N failures"
80
- },
81
- "noDeps": {
82
- "type": "boolean",
83
- "description": "Do not run project dependencies"
84
- },
85
- "output": {
86
- "type": "string",
87
- "description": "Folder for output artifacts"
88
- },
89
- "passWithNoTests": {
90
- "type": "boolean",
91
- "description": "Makes test run succeed even if no tests were found",
92
- "default": true
93
- },
94
- "project": {
95
- "description": "Only run tests from the specified list of projects",
96
- "type": "array",
97
- "items": {
98
- "type": "string"
99
- }
100
- },
101
- "quiet": {
102
- "alias": "q",
103
- "type": "boolean",
104
- "description": "Suppress stdio"
105
- },
106
- "repeatEach": {
107
- "type": "number",
108
- "description": "Run each test N times"
109
- },
110
- "reporter": {
111
- "type": "string",
112
- "description": "Common Reporter values to use, comma-separated, 'list', 'line', 'dot', 'json', 'junit', 'null', 'github', 'html', 'blob'. To configure reporter options, use the playwright configuration."
113
- },
114
- "retries": {
115
- "type": "number",
116
- "description": "Maximum retry count for flaky tests, zero for no retries"
117
- },
118
- "shard": {
119
- "type": "string",
120
- "description": "Shard tests and execute only the selected shard, specify in the form 'current/all', 1-based, for example '3/5'"
121
- },
122
- "timeout": {
123
- "type": "number",
124
- "description": "Specify test timeout threshold in milliseconds, zero for unlimited"
125
- },
126
- "trace": {
127
- "type": "string",
128
- "enum": [
129
- "on",
130
- "off",
131
- "on-first-retry",
132
- "on-all-retries",
133
- "retain-on-failure"
134
- ],
135
- "description": "Force tracing mode, can be 'on', 'off', 'on-first-retry', 'on-all-retries', 'retain-on-failure'"
136
- },
137
- "updateSnapshots": {
138
- "alias": "u",
139
- "type": "boolean",
140
- "description": "Update snapshots with actual results. Snapshots will be created if missing."
141
- },
142
- "ui": {
143
- "type": "boolean",
144
- "description": "Run tests in interactive UI mode"
145
- },
146
- "uiHost": {
147
- "type": "string",
148
- "description": "Host to serve UI on; specifying this option opens UI in a browser tab"
149
- },
150
- "uiPort": {
151
- "type": "number",
152
- "description": "Port to serve UI on, 0 for any free port; specifying this option opens UI in a browser tab"
153
- },
154
- "skipInstall": {
155
- "type": "boolean",
156
- "description": "Skip running playwright install before running playwright tests. This is to ensure that playwright browsers are installed before running tests.",
157
- "default": false
158
- },
159
- "cacheDir": {
160
- "type": "string",
161
- "description": "Directory for Playwright internal cache (browser binaries, etc.). Sets the PWTEST_CACHE_DIR environment variable."
162
- }
163
- },
164
- "required": []
2
+ "$schema": "https://json-schema.org/schema",
3
+ "version": 2,
4
+ "title": "Playwright executor",
5
+ "description": "Run Playwright tests.",
6
+ "type": "object",
7
+ "properties": {
8
+ "browser": {
9
+ "type": "string",
10
+ "description": "Browser to use for tests, one of 'all', 'chromium', 'firefox' or 'webkit'. If a playwright config is provided/discovered then the browserName value is expected from the configured 'projects'",
11
+ "x-priority": "important"
12
+ },
13
+ "config": {
14
+ "type": "string",
15
+ "description": "Configuration file, or a test directory with optional",
16
+ "x-completion-type": "file",
17
+ "x-completion-glob": "playwright?(*)@(.js|.cjs|.mjs|.ts|.cts|.mtx)",
18
+ "x-priority": "important"
19
+ },
20
+ "debug": {
21
+ "type": "boolean",
22
+ "description": "Run tests with Playwright Inspector. Shortcut for 'PWDEBUG=1' environment variable and '--timeout=0',--max-failures=1 --headed --workers=1' options"
23
+ },
24
+ "lastFailed": {
25
+ "type": "boolean",
26
+ "description": "Run only the tests that failed in the last run"
27
+ },
28
+ "forbidOnly": {
29
+ "type": "boolean",
30
+ "description": "Fail if test.only is called"
31
+ },
32
+ "fullyParallel": {
33
+ "type": "boolean",
34
+ "description": "Run all tests in parallel"
35
+ },
36
+ "grep": {
37
+ "alias": "g",
38
+ "type": "string",
39
+ "description": "Only run tests matching this regular expression"
40
+ },
41
+ "globalTimeout": {
42
+ "type": "number",
43
+ "description": "Maximum time this test suite can run in milliseconds"
44
+ },
45
+ "grepInvert": {
46
+ "alias": "gv",
47
+ "type": "string",
48
+ "description": "Only run tests that do not match this regular expression"
49
+ },
50
+ "testFiles": {
51
+ "alias": "t",
52
+ "type": "array",
53
+ "description": "Test files to run",
54
+ "items": {
55
+ "type": "string"
56
+ }
57
+ },
58
+ "headed": {
59
+ "type": "boolean",
60
+ "description": "Run tests in headed browsers",
61
+ "x-priority": "important"
62
+ },
63
+ "ignoreSnapshots": {
64
+ "type": "boolean",
65
+ "description": "Ignore screenshot and snapshot expectations"
66
+ },
67
+ "workers": {
68
+ "alias": "j",
69
+ "oneOf": [{ "type": "number" }, { "type": "string" }],
70
+ "description": "Number of concurrent workers or percentage of logical CPU cores, use 1 to run in a single worker"
71
+ },
72
+ "list": {
73
+ "type": "boolean",
74
+ "description": "Collect all the tests and report them, but do not run"
75
+ },
76
+ "maxFailures": {
77
+ "alias": "x",
78
+ "oneOf": [{ "type": "number" }, { "type": "boolean" }],
79
+ "description": "Stop after the first N failures"
80
+ },
81
+ "noDeps": {
82
+ "type": "boolean",
83
+ "description": "Do not run project dependencies"
84
+ },
85
+ "output": {
86
+ "type": "string",
87
+ "description": "Folder for output artifacts"
88
+ },
89
+ "passWithNoTests": {
90
+ "type": "boolean",
91
+ "description": "Makes test run succeed even if no tests were found",
92
+ "default": true
93
+ },
94
+ "project": {
95
+ "description": "Only run tests from the specified list of projects",
96
+ "type": "array",
97
+ "items": {
98
+ "type": "string"
99
+ }
100
+ },
101
+ "quiet": {
102
+ "alias": "q",
103
+ "type": "boolean",
104
+ "description": "Suppress stdio"
105
+ },
106
+ "repeatEach": {
107
+ "type": "number",
108
+ "description": "Run each test N times"
109
+ },
110
+ "reporter": {
111
+ "type": "string",
112
+ "description": "Common Reporter values to use, comma-separated, 'list', 'line', 'dot', 'json', 'junit', 'null', 'github', 'html', 'blob'. To configure reporter options, use the playwright configuration."
113
+ },
114
+ "retries": {
115
+ "type": "number",
116
+ "description": "Maximum retry count for flaky tests, zero for no retries"
117
+ },
118
+ "shard": {
119
+ "type": "string",
120
+ "description": "Shard tests and execute only the selected shard, specify in the form 'current/all', 1-based, for example '3/5'"
121
+ },
122
+ "timeout": {
123
+ "type": "number",
124
+ "description": "Specify test timeout threshold in milliseconds, zero for unlimited"
125
+ },
126
+ "trace": {
127
+ "type": "string",
128
+ "enum": [
129
+ "on",
130
+ "off",
131
+ "on-first-retry",
132
+ "on-all-retries",
133
+ "retain-on-failure"
134
+ ],
135
+ "description": "Force tracing mode, can be 'on', 'off', 'on-first-retry', 'on-all-retries', 'retain-on-failure'"
136
+ },
137
+ "updateSnapshots": {
138
+ "alias": "u",
139
+ "type": "boolean",
140
+ "description": "Update snapshots with actual results. Snapshots will be created if missing."
141
+ },
142
+ "ui": {
143
+ "type": "boolean",
144
+ "description": "Run tests in interactive UI mode"
145
+ },
146
+ "uiHost": {
147
+ "type": "string",
148
+ "description": "Host to serve UI on; specifying this option opens UI in a browser tab"
149
+ },
150
+ "uiPort": {
151
+ "type": "number",
152
+ "description": "Port to serve UI on, 0 for any free port; specifying this option opens UI in a browser tab"
153
+ },
154
+ "skipInstall": {
155
+ "type": "boolean",
156
+ "description": "Skip running playwright install before running playwright tests. This is to ensure that playwright browsers are installed before running tests.",
157
+ "default": false
158
+ },
159
+ "cacheDir": {
160
+ "type": "string",
161
+ "description": "Directory for Playwright internal cache (browser binaries, etc.). Sets the PWTEST_CACHE_DIR environment variable."
162
+ }
163
+ },
164
+ "required": []
165
165
  }
@@ -1,73 +1,73 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxPlaywrightConfiguration",
4
- "description": "Add a Playwright configuration.",
5
- "title": "Add a Playwright configuration",
6
- "type": "object",
7
- "properties": {
8
- "project": {
9
- "type": "string",
10
- "description": "The project to add a Playwright configuration to.",
11
- "$default": {
12
- "$source": "projectName"
13
- },
14
- "x-priority": "important",
15
- "x-prompt": "What is the name of the project to set up Playwright for?"
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxPlaywrightConfiguration",
4
+ "description": "Add a Playwright configuration.",
5
+ "title": "Add a Playwright configuration",
6
+ "type": "object",
7
+ "properties": {
8
+ "project": {
9
+ "type": "string",
10
+ "description": "The project to add a Playwright configuration to.",
11
+ "$default": {
12
+ "$source": "projectName"
13
+ },
14
+ "x-priority": "important",
15
+ "x-prompt": "What is the name of the project to set up Playwright for?"
16
+ },
17
+ "directory": {
18
+ "type": "string",
19
+ "description": "A directory where the project is placed relative from the project root.",
20
+ "x-priority": "important",
21
+ "default": "e2e"
22
+ },
23
+ "linter": {
24
+ "description": "The tool to use for running lint checks.",
25
+ "type": "string",
26
+ "enum": ["none", "eslint"],
27
+ "x-priority": "important"
28
+ },
29
+ "js": {
30
+ "type": "boolean",
31
+ "description": "Generate JavaScript files rather than TypeScript files.",
32
+ "default": false
33
+ },
34
+ "webServerCommand": {
35
+ "type": "string",
36
+ "description": "The command to start the web server."
37
+ },
38
+ "webServerAddress": {
39
+ "type": "string",
40
+ "description": "The address of the web server."
41
+ },
42
+ "setParserOptionsProject": {
43
+ "type": "boolean",
44
+ "description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
45
+ "default": false
46
+ },
47
+ "skipFormat": {
48
+ "description": "Skip formatting files.",
49
+ "type": "boolean",
50
+ "default": false,
51
+ "x-priority": "internal"
52
+ },
53
+ "skipPackageJson": {
54
+ "type": "boolean",
55
+ "default": false,
56
+ "description": "Do not add dependencies to `package.json`.",
57
+ "x-priority": "internal"
58
+ },
59
+ "rootProject": {
60
+ "description": "Create a application at the root of the workspace",
61
+ "type": "boolean",
62
+ "default": false,
63
+ "hidden": true,
64
+ "x-priority": "internal"
65
+ },
66
+ "skipInstall": {
67
+ "type": "boolean",
68
+ "description": "Skip running `playwright install`. This is to ensure that playwright browsers are installed.",
69
+ "default": false
70
+ }
16
71
  },
17
- "directory": {
18
- "type": "string",
19
- "description": "A directory where the project is placed relative from the project root.",
20
- "x-priority": "important",
21
- "default": "e2e"
22
- },
23
- "linter": {
24
- "description": "The tool to use for running lint checks.",
25
- "type": "string",
26
- "enum": ["none", "eslint"],
27
- "x-priority": "important"
28
- },
29
- "js": {
30
- "type": "boolean",
31
- "description": "Generate JavaScript files rather than TypeScript files.",
32
- "default": false
33
- },
34
- "webServerCommand": {
35
- "type": "string",
36
- "description": "The command to start the web server."
37
- },
38
- "webServerAddress": {
39
- "type": "string",
40
- "description": "The address of the web server."
41
- },
42
- "setParserOptionsProject": {
43
- "type": "boolean",
44
- "description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
45
- "default": false
46
- },
47
- "skipFormat": {
48
- "description": "Skip formatting files.",
49
- "type": "boolean",
50
- "default": false,
51
- "x-priority": "internal"
52
- },
53
- "skipPackageJson": {
54
- "type": "boolean",
55
- "default": false,
56
- "description": "Do not add dependencies to `package.json`.",
57
- "x-priority": "internal"
58
- },
59
- "rootProject": {
60
- "description": "Create a application at the root of the workspace",
61
- "type": "boolean",
62
- "default": false,
63
- "hidden": true,
64
- "x-priority": "internal"
65
- },
66
- "skipInstall": {
67
- "type": "boolean",
68
- "description": "Skip running `playwright install`. This is to ensure that playwright browsers are installed.",
69
- "default": false
70
- }
71
- },
72
- "required": ["project"]
72
+ "required": ["project"]
73
73
  }
@@ -1,19 +1,19 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxPlaywrightConvertToInferred",
4
- "description": "Convert existing Playwright project(s) using `@nx/playwright:playwright` executor to use `@nx/playwright/plugin`. Defaults to migrating all projects. Pass '--project' to migrate only one target.",
5
- "title": "Convert Playwright project from executor to plugin",
6
- "type": "object",
7
- "properties": {
8
- "project": {
9
- "type": "string",
10
- "description": "The project to convert from using the `@nx/playwright:playwright` executor to use `@nx/playwright/plugin`.",
11
- "x-priority": "important"
12
- },
13
- "skipFormat": {
14
- "type": "boolean",
15
- "description": "Whether to format files at the end of the migration.",
16
- "default": false
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxPlaywrightConvertToInferred",
4
+ "description": "Convert existing Playwright project(s) using `@nx/playwright:playwright` executor to use `@nx/playwright/plugin`. Defaults to migrating all projects. Pass '--project' to migrate only one target.",
5
+ "title": "Convert Playwright project from executor to plugin",
6
+ "type": "object",
7
+ "properties": {
8
+ "project": {
9
+ "type": "string",
10
+ "description": "The project to convert from using the `@nx/playwright:playwright` executor to use `@nx/playwright/plugin`.",
11
+ "x-priority": "important"
12
+ },
13
+ "skipFormat": {
14
+ "type": "boolean",
15
+ "description": "Whether to format files at the end of the migration.",
16
+ "default": false
17
+ }
17
18
  }
18
- }
19
19
  }
@@ -1,34 +1,34 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxPlaywrightInit",
4
- "title": "Playwright Init Generator",
5
- "description": "Initializes a Playwright project in the current workspace.",
6
- "type": "object",
7
- "properties": {
8
- "skipFormat": {
9
- "description": "Skip formatting files.",
10
- "type": "boolean",
11
- "default": false,
12
- "x-priority": "internal"
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxPlaywrightInit",
4
+ "title": "Playwright Init Generator",
5
+ "description": "Initializes a Playwright project in the current workspace.",
6
+ "type": "object",
7
+ "properties": {
8
+ "skipFormat": {
9
+ "description": "Skip formatting files.",
10
+ "type": "boolean",
11
+ "default": false,
12
+ "x-priority": "internal"
13
+ },
14
+ "skipPackageJson": {
15
+ "type": "boolean",
16
+ "default": false,
17
+ "description": "Do not add dependencies to `package.json`.",
18
+ "x-priority": "internal"
19
+ },
20
+ "keepExistingVersions": {
21
+ "type": "boolean",
22
+ "x-priority": "internal",
23
+ "description": "Keep existing dependencies versions",
24
+ "default": false
25
+ },
26
+ "updatePackageScripts": {
27
+ "type": "boolean",
28
+ "x-priority": "internal",
29
+ "description": "Update `package.json` scripts with inferred targets",
30
+ "default": false
31
+ }
13
32
  },
14
- "skipPackageJson": {
15
- "type": "boolean",
16
- "default": false,
17
- "description": "Do not add dependencies to `package.json`.",
18
- "x-priority": "internal"
19
- },
20
- "keepExistingVersions": {
21
- "type": "boolean",
22
- "x-priority": "internal",
23
- "description": "Keep existing dependencies versions",
24
- "default": false
25
- },
26
- "updatePackageScripts": {
27
- "type": "boolean",
28
- "x-priority": "internal",
29
- "description": "Update `package.json` scripts with inferred targets",
30
- "default": false
31
- }
32
- },
33
- "required": []
33
+ "required": []
34
34
  }
@@ -99,7 +99,7 @@ async function buildPlaywrightTargets(configFilePath, projectRoot, options, cont
99
99
  cache: true,
100
100
  inputs: [
101
101
  ...('production' in namedInputs
102
- ? ['default', '^{projectRoot}/tsconfig*.json', '^production']
102
+ ? ['default', '^production', '^{projectRoot}/tsconfig*.json']
103
103
  : ['default', '^default']),
104
104
  { externalDependencies: ['@playwright/test'] },
105
105
  ],
@@ -116,7 +116,7 @@ async function buildPlaywrightTargets(configFilePath, projectRoot, options, cont
116
116
  cache: true,
117
117
  inputs: [
118
118
  ...('production' in namedInputs
119
- ? ['default', '^{projectRoot}/tsconfig*.json', '^production']
119
+ ? ['default', '^production', '^{projectRoot}/tsconfig*.json']
120
120
  : ['default', '^default']),
121
121
  { externalDependencies: ['@playwright/test'] },
122
122
  ],