@nx/rollup 19.8.0-canary.20240911-2a3307c → 19.8.0-canary.20240913-5bbaffb

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/rollup",
3
- "version": "19.8.0-canary.20240911-2a3307c",
3
+ "version": "19.8.0-canary.20240913-5bbaffb",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Rollup contains executors and generators that support building applications using Rollup.",
6
6
  "repository": {
@@ -44,9 +44,9 @@
44
44
  "rollup-plugin-postcss": "^4.0.2",
45
45
  "rollup-plugin-typescript2": "^0.36.0",
46
46
  "tslib": "^2.3.0",
47
- "@nx/devkit": "19.8.0-canary.20240911-2a3307c",
48
- "@nx/js": "19.8.0-canary.20240911-2a3307c",
49
- "@nrwl/rollup": "19.8.0-canary.20240911-2a3307c"
47
+ "@nx/devkit": "19.8.0-canary.20240913-5bbaffb",
48
+ "@nx/js": "19.8.0-canary.20240913-5bbaffb",
49
+ "@nrwl/rollup": "19.8.0-canary.20240913-5bbaffb"
50
50
  },
51
51
  "publishConfig": {
52
52
  "access": "public"
@@ -5,6 +5,7 @@ const devkit_1 = require("@nx/devkit");
5
5
  const executor_options_utils_1 = require("@nx/devkit/src/generators/executor-options-utils");
6
6
  const extract_rollup_config_from_executor_options_1 = require("./lib/extract-rollup-config-from-executor-options");
7
7
  const add_plugin_registrations_1 = require("./lib/add-plugin-registrations");
8
+ const executor_to_plugin_migrator_1 = require("@nx/devkit/src/generators/plugin-migrations/executor-to-plugin-migrator");
8
9
  async function convertToInferred(tree, options) {
9
10
  const migratedProjects = new Map();
10
11
  let projects = (0, devkit_1.getProjects)(tree);
@@ -66,7 +67,7 @@ async function convertToInferred(tree, options) {
66
67
  migratedProjects.set(projectName, { buildTargetName: targetName });
67
68
  });
68
69
  if (migratedProjects.size === 0) {
69
- throw new Error('Could not find any targets to migrate.');
70
+ throw new executor_to_plugin_migrator_1.NoTargetsToMigrateError();
70
71
  }
71
72
  projects = (0, devkit_1.getProjects)(tree);
72
73
  await (0, add_plugin_registrations_1.addPluginRegistrations)(tree, migratedProjects, projects, '@nx/rollup/plugin');