@nx/playwright 24.0.0 → 24.0.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.
|
@@ -57,6 +57,7 @@ async function configurationGeneratorInternal(tree, rawOptions) {
|
|
|
57
57
|
allowJs: true,
|
|
58
58
|
outDir: 'out-tsc/playwright',
|
|
59
59
|
sourceMap: false,
|
|
60
|
+
types: ['node'],
|
|
60
61
|
},
|
|
61
62
|
include: [
|
|
62
63
|
(0, devkit_1.joinPathFragments)(options.directory, '**/*.ts'),
|
|
@@ -85,6 +86,7 @@ async function configurationGeneratorInternal(tree, rawOptions) {
|
|
|
85
86
|
allowJs: true,
|
|
86
87
|
outDir: `${offsetFromProjectRoot}dist/out-tsc`,
|
|
87
88
|
sourceMap: false,
|
|
89
|
+
types: ['node'],
|
|
88
90
|
},
|
|
89
91
|
include: [
|
|
90
92
|
'**/*.ts',
|
|
@@ -115,7 +117,6 @@ async function configurationGeneratorInternal(tree, rawOptions) {
|
|
|
115
117
|
}
|
|
116
118
|
else {
|
|
117
119
|
tsconfig.compilerOptions.outDir = `${offsetFromProjectRoot}dist/out-tsc`;
|
|
118
|
-
tsconfig.compilerOptions.module = 'commonjs';
|
|
119
120
|
}
|
|
120
121
|
(0, devkit_1.writeJson)(tree, tsconfigPath, tsconfig);
|
|
121
122
|
}
|
|
@@ -153,7 +154,9 @@ async function configurationGeneratorInternal(tree, rawOptions) {
|
|
|
153
154
|
tasks.push((0, devkit_1.addDependenciesToPackageJson)(tree, {}, {
|
|
154
155
|
// required since used in playwright config
|
|
155
156
|
'@nx/devkit': versions_1.nxVersion,
|
|
156
|
-
})
|
|
157
|
+
}),
|
|
158
|
+
// The e2e tsconfig loads Node types. Keep an installed version.
|
|
159
|
+
(0, devkit_1.addDependenciesToPackageJson)(tree, {}, { '@types/node': internal_2.typesNodeVersion }, undefined, true));
|
|
157
160
|
}
|
|
158
161
|
if (!options.skipInstall) {
|
|
159
162
|
tasks.push(getBrowsersInstallTask());
|
|
@@ -669,8 +669,8 @@ function toReadinessServer(task) {
|
|
|
669
669
|
return server;
|
|
670
670
|
}
|
|
671
671
|
function parseTaskFromCommand(command) {
|
|
672
|
-
const nxRunRegex = /^(?:(?:npx|yarn|bun|pnpm|pnpm exec|pnpx) )?nx run (\S+:\S+)$/;
|
|
673
|
-
const infixRegex = /^(?:(?:npx|yarn|bun|pnpm|pnpm exec|pnpx) )?nx (\S+ \S+)$/;
|
|
672
|
+
const nxRunRegex = /^(?:(?:npx|yarn|bun|bunx|bun x|pnpm|pnpm exec|pnpx) )?nx run (\S+:\S+)$/;
|
|
673
|
+
const infixRegex = /^(?:(?:npx|yarn|bun|bunx|bun x|pnpm|pnpm exec|pnpx) )?nx (\S+ \S+)$/;
|
|
674
674
|
const nxRunMatch = command.match(nxRunRegex);
|
|
675
675
|
if (nxRunMatch) {
|
|
676
676
|
// Truthiness rather than `!== undefined`: a trailing colon (`app:serve:`)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/playwright",
|
|
3
|
-
"version": "24.0.
|
|
3
|
+
"version": "24.0.2",
|
|
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.
|
|
79
|
-
"@nx/eslint": "24.0.
|
|
80
|
-
"@nx/js": "24.0.
|
|
78
|
+
"@nx/devkit": "24.0.2",
|
|
79
|
+
"@nx/eslint": "24.0.2",
|
|
80
|
+
"@nx/js": "24.0.2",
|
|
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.
|
|
87
|
+
"nx": "24.0.2"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
90
|
"@playwright/test": "^1.36.0"
|