@nx/playwright 23.2.0-beta.7 → 23.2.0-beta.9
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.
|
@@ -197,23 +197,23 @@ async function normalizeOptions(tree, options) {
|
|
|
197
197
|
};
|
|
198
198
|
}
|
|
199
199
|
async function promptForMissingServeData(projectName) {
|
|
200
|
-
|
|
201
|
-
{
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
name: 'port',
|
|
210
|
-
message: 'What port will the application be served on?',
|
|
211
|
-
initial: 3000,
|
|
212
|
-
},
|
|
213
|
-
], {
|
|
214
|
-
command: `npx nx serve ${projectName}`,
|
|
215
|
-
port: 3000,
|
|
200
|
+
if (!(0, internal_1.isInteractive)()) {
|
|
201
|
+
return {
|
|
202
|
+
webServerCommand: `npx nx serve ${projectName}`,
|
|
203
|
+
webServerAddress: 'http://localhost:3000',
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
const command = await (0, internal_1.textPrompt)({
|
|
207
|
+
message: 'What command should be run to serve the application locally?',
|
|
208
|
+
initialValue: `npx nx serve ${projectName}`,
|
|
216
209
|
});
|
|
210
|
+
const port = Number(await (0, internal_1.textPrompt)({
|
|
211
|
+
message: 'What port will the application be served on?',
|
|
212
|
+
initialValue: '3000',
|
|
213
|
+
validate: (value) => value !== '' && !Number.isNaN(Number(value))
|
|
214
|
+
? undefined
|
|
215
|
+
: 'Please enter a number',
|
|
216
|
+
}));
|
|
217
217
|
return {
|
|
218
218
|
webServerCommand: command,
|
|
219
219
|
webServerAddress: `http://localhost:${port}`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/playwright",
|
|
3
|
-
"version": "23.2.0-beta.
|
|
3
|
+
"version": "23.2.0-beta.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
@@ -78,12 +78,12 @@
|
|
|
78
78
|
"tslib": "^2.3.0",
|
|
79
79
|
"minimatch": "10.2.5",
|
|
80
80
|
"semver": "^7.6.3",
|
|
81
|
-
"@nx/devkit": "23.2.0-beta.
|
|
82
|
-
"@nx/eslint": "23.2.0-beta.
|
|
83
|
-
"@nx/js": "23.2.0-beta.
|
|
81
|
+
"@nx/devkit": "23.2.0-beta.9",
|
|
82
|
+
"@nx/eslint": "23.2.0-beta.9",
|
|
83
|
+
"@nx/js": "23.2.0-beta.9"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"nx": "23.2.0-beta.
|
|
86
|
+
"nx": "23.2.0-beta.9"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
89
|
"@playwright/test": "^1.36.0"
|