@nx/playwright 19.4.0-canary.20240622-963f753 → 19.4.0-canary.20240626-3a2e8d4

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/playwright",
3
- "version": "19.4.0-canary.20240622-963f753",
3
+ "version": "19.4.0-canary.20240626-3a2e8d4",
4
4
  "type": "commonjs",
5
5
  "homepage": "https://nx.dev",
6
6
  "private": false,
@@ -35,9 +35,9 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@phenomnomnominal/tsquery": "~5.0.1",
38
- "@nx/devkit": "19.4.0-canary.20240622-963f753",
39
- "@nx/eslint": "19.4.0-canary.20240622-963f753",
40
- "@nx/js": "19.4.0-canary.20240622-963f753",
38
+ "@nx/devkit": "19.4.0-canary.20240626-3a2e8d4",
39
+ "@nx/eslint": "19.4.0-canary.20240626-3a2e8d4",
40
+ "@nx/js": "19.4.0-canary.20240626-3a2e8d4",
41
41
  "tslib": "^2.3.0",
42
42
  "minimatch": "9.0.3"
43
43
  },
@@ -6,7 +6,13 @@ const plugin_1 = require("../../plugins/plugin");
6
6
  const executor_to_plugin_migrator_1 = require("@nx/devkit/src/generators/plugin-migrations/executor-to-plugin-migrator");
7
7
  async function convertToInferred(tree, options) {
8
8
  const projectGraph = await (0, devkit_1.createProjectGraphAsync)();
9
- const migratedProjects = await (0, executor_to_plugin_migrator_1.migrateExecutorToPlugin)(tree, projectGraph, '@nx/playwright:playwright', '@nx/playwright/plugin', (targetName) => ({ targetName, ciTargetName: 'e2e-ci' }), postTargetTransformer, plugin_1.createNodesV2, options.project);
9
+ const migratedProjects = await (0, executor_to_plugin_migrator_1.migrateProjectExecutorsToPlugin)(tree, projectGraph, '@nx/playwright/plugin', plugin_1.createNodesV2, { targetName: 'e2e', ciTargetName: 'e2e-ci' }, [
10
+ {
11
+ executors: ['@nx/playwright:playwright'],
12
+ postTargetTransformer,
13
+ targetPluginOptionMapper: (targetName) => ({ targetName }),
14
+ },
15
+ ], options.project);
10
16
  if (migratedProjects.size === 0) {
11
17
  throw new Error('Could not find any targets to migrate.');
12
18
  }