@nx/cypress 19.0.0-beta.10 → 19.0.0-beta.11

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/cypress",
3
- "version": "19.0.0-beta.10",
3
+ "version": "19.0.0-beta.11",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Cypress contains executors and generators allowing your workspace to use the powerful Cypress integration testing capabilities.",
6
6
  "repository": {
@@ -34,13 +34,13 @@
34
34
  "migrations": "./migrations.json"
35
35
  },
36
36
  "dependencies": {
37
- "@nx/devkit": "19.0.0-beta.10",
38
- "@nx/eslint": "19.0.0-beta.10",
39
- "@nx/js": "19.0.0-beta.10",
37
+ "@nx/devkit": "19.0.0-beta.11",
38
+ "@nx/eslint": "19.0.0-beta.11",
39
+ "@nx/js": "19.0.0-beta.11",
40
40
  "@phenomnomnominal/tsquery": "~5.0.1",
41
41
  "detect-port": "^1.5.1",
42
42
  "tslib": "^2.3.0",
43
- "@nrwl/cypress": "19.0.0-beta.10"
43
+ "@nrwl/cypress": "19.0.0-beta.11"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "cypress": ">= 3 < 14"
@@ -10,10 +10,17 @@ const add_dev_server_target_to_config_1 = require("./lib/add-dev-server-target-t
10
10
  const add_exclude_spec_pattern_1 = require("./lib/add-exclude-spec-pattern");
11
11
  async function convertToInferred(tree, options) {
12
12
  const projectGraph = await (0, devkit_1.createProjectGraphAsync)();
13
- await (0, executor_to_plugin_migrator_1.migrateExecutorToPlugin)(tree, projectGraph, '@nx/cypress:cypress', '@nx/cypress/plugin', (targetName) => ({
13
+ let migratedProjects = await (0, executor_to_plugin_migrator_1.migrateExecutorToPlugin)(tree, projectGraph, '@nx/cypress:cypress', '@nx/cypress/plugin', (targetName) => ({
14
14
  targetName,
15
15
  ciTargetName: 'e2e-ci',
16
16
  }), postTargetTransformer, plugin_1.createNodes, options.project);
17
+ migratedProjects += await (0, executor_to_plugin_migrator_1.migrateExecutorToPlugin)(tree, projectGraph, '@nrwl/cypress:cypress', '@nx/cypress/plugin', (targetName) => ({
18
+ targetName,
19
+ ciTargetName: 'e2e-ci',
20
+ }), postTargetTransformer, plugin_1.createNodes, options.project);
21
+ if (migratedProjects === 0) {
22
+ throw new Error('Could not find any targets to migrate.');
23
+ }
17
24
  if (!options.skipFormat) {
18
25
  await (0, devkit_1.formatFiles)(tree);
19
26
  }