@nx/playwright 19.0.0-canary.20240430-458f2cc → 19.0.0-canary.20240503-dbad02a

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.0.0-canary.20240430-458f2cc",
3
+ "version": "19.0.0-canary.20240503-dbad02a",
4
4
  "type": "commonjs",
5
5
  "homepage": "https://nx.dev",
6
6
  "private": false,
@@ -33,9 +33,9 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@phenomnomnominal/tsquery": "~5.0.1",
36
- "@nx/devkit": "19.0.0-canary.20240430-458f2cc",
37
- "@nx/eslint": "19.0.0-canary.20240430-458f2cc",
38
- "@nx/js": "19.0.0-canary.20240430-458f2cc",
36
+ "@nx/devkit": "19.0.0-canary.20240503-dbad02a",
37
+ "@nx/eslint": "19.0.0-canary.20240503-dbad02a",
38
+ "@nx/js": "19.0.0-canary.20240503-dbad02a",
39
39
  "tslib": "^2.3.0",
40
40
  "minimatch": "9.0.3"
41
41
  },
@@ -6,7 +6,10 @@ 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
- await (0, executor_to_plugin_migrator_1.migrateExecutorToPlugin)(tree, projectGraph, '@nx/playwright:playwright', '@nx/playwright/plugin', (targetName) => ({ targetName, ciTargetName: 'e2e-ci' }), postTargetTransformer, plugin_1.createNodes, options.project);
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.createNodes, options.project);
10
+ if (migratedProjects === 0) {
11
+ throw new Error('Could not find any targets to migrate.');
12
+ }
10
13
  if (!options.skipFormat) {
11
14
  await (0, devkit_1.formatFiles)(tree);
12
15
  }