@nx/playwright 22.0.0-beta.2 → 22.0.0-beta.3
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 +5 -5
- package/src/migrations/update-19-6-0/use-serve-static-preview-for-command.d.ts +1 -0
- package/src/migrations/update-19-6-0/use-serve-static-preview-for-command.d.ts.map +1 -0
- package/src/migrations/update-19-6-0/use-serve-static-preview-for-command.js +0 -0
- package/src/plugins/plugin.d.ts +2 -6
- package/src/plugins/plugin.d.ts.map +1 -1
- package/src/plugins/plugin.js +3 -13
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/playwright",
|
3
|
-
"version": "22.0.0-beta.
|
3
|
+
"version": "22.0.0-beta.3",
|
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.0.0-beta.
|
38
|
-
"@nx/eslint": "22.0.0-beta.
|
39
|
-
"@nx/js": "22.0.0-beta.
|
37
|
+
"@nx/devkit": "22.0.0-beta.3",
|
38
|
+
"@nx/eslint": "22.0.0-beta.3",
|
39
|
+
"@nx/js": "22.0.0-beta.3",
|
40
40
|
"tslib": "^2.3.0",
|
41
41
|
"minimatch": "9.0.3"
|
42
42
|
},
|
43
43
|
"devDependencies": {
|
44
|
-
"nx": "22.0.0-beta.
|
44
|
+
"nx": "22.0.0-beta.3"
|
45
45
|
},
|
46
46
|
"peerDependencies": {
|
47
47
|
"@playwright/test": "^1.36.0"
|
@@ -0,0 +1 @@
|
|
1
|
+
//# sourceMappingURL=use-serve-static-preview-for-command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"use-serve-static-preview-for-command.d.ts","sourceRoot":"","sources":["../../../../../../packages/playwright/src/migrations/update-19-6-0/use-serve-static-preview-for-command.ts"],"names":[],"mappings":""}
|
File without changes
|
package/src/plugins/plugin.d.ts
CHANGED
@@ -1,12 +1,8 @@
|
|
1
|
-
import { type
|
1
|
+
import { type CreateNodesV2 } from '@nx/devkit';
|
2
2
|
export interface PlaywrightPluginOptions {
|
3
3
|
targetName?: string;
|
4
4
|
ciTargetName?: string;
|
5
5
|
}
|
6
|
+
export declare const createNodes: CreateNodesV2<PlaywrightPluginOptions>;
|
6
7
|
export declare const createNodesV2: CreateNodesV2<PlaywrightPluginOptions>;
|
7
|
-
/**
|
8
|
-
* @deprecated This is replaced with {@link createNodesV2}. Update your plugin to export its own `createNodesV2` function that wraps this one instead.
|
9
|
-
* This function will change to the v2 function in Nx 20.
|
10
|
-
*/
|
11
|
-
export declare const createNodes: CreateNodes<PlaywrightPluginOptions>;
|
12
8
|
//# sourceMappingURL=plugin.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/playwright/src/plugins/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/playwright/src/plugins/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,aAAa,EAUnB,MAAM,YAAY,CAAC;AAgBpB,MAAM,WAAW,uBAAuB;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AA8BD,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,uBAAuB,CAqB9D,CAAC;AAEF,eAAO,MAAM,aAAa,wCAAc,CAAC"}
|
package/src/plugins/plugin.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.createNodesV2 = exports.createNodes = void 0;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const calculate_hash_for_create_nodes_1 = require("@nx/devkit/src/utils/calculate-hash-for-create-nodes");
|
6
6
|
const config_utils_1 = require("@nx/devkit/src/utils/config-utils");
|
@@ -28,7 +28,7 @@ function writeTargetsToCache(cachePath, results) {
|
|
28
28
|
(0, devkit_1.writeJsonFile)(cachePath, results);
|
29
29
|
}
|
30
30
|
const playwrightConfigGlob = '**/playwright.config.{js,ts,cjs,cts,mjs,mts}';
|
31
|
-
exports.
|
31
|
+
exports.createNodes = [
|
32
32
|
playwrightConfigGlob,
|
33
33
|
async (configFilePaths, options, context) => {
|
34
34
|
const optionsHash = (0, file_hasher_1.hashObject)(options);
|
@@ -42,17 +42,7 @@ exports.createNodesV2 = [
|
|
42
42
|
}
|
43
43
|
},
|
44
44
|
];
|
45
|
-
|
46
|
-
* @deprecated This is replaced with {@link createNodesV2}. Update your plugin to export its own `createNodesV2` function that wraps this one instead.
|
47
|
-
* This function will change to the v2 function in Nx 20.
|
48
|
-
*/
|
49
|
-
exports.createNodes = [
|
50
|
-
playwrightConfigGlob,
|
51
|
-
async (configFile, options, context) => {
|
52
|
-
devkit_1.logger.warn('`createNodes` is deprecated. Update your plugin to utilize createNodesV2 instead. In Nx 20, this will change to the createNodesV2 API.');
|
53
|
-
return createNodesInternal(configFile, options, context, {});
|
54
|
-
},
|
55
|
-
];
|
45
|
+
exports.createNodesV2 = exports.createNodes;
|
56
46
|
async function createNodesInternal(configFilePath, options, context, targetsCache) {
|
57
47
|
const projectRoot = (0, node_path_1.dirname)(configFilePath);
|
58
48
|
// Do not create a project if package.json and project.json isn't there.
|