@nx/rollup 20.2.1 → 20.3.0-beta.0

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/rollup",
3
- "version": "20.2.1",
3
+ "version": "20.3.0-beta.0",
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": {
@@ -43,8 +43,8 @@
43
43
  "rollup-plugin-postcss": "^4.0.2",
44
44
  "rollup-plugin-typescript2": "^0.36.0",
45
45
  "tslib": "^2.3.0",
46
- "@nx/devkit": "20.2.1",
47
- "@nx/js": "20.2.1"
46
+ "@nx/devkit": "20.3.0-beta.0",
47
+ "@nx/js": "20.3.0-beta.0"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public"
@@ -3,8 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.normalizeRollupExecutorOptions = normalizeRollupExecutorOptions;
4
4
  exports.normalizePluginPath = normalizePluginPath;
5
5
  const path_1 = require("path");
6
+ const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
6
7
  function normalizeRollupExecutorOptions(options, context) {
7
8
  const { root } = context;
9
+ const skipTypeCheck = (0, ts_solution_setup_1.isUsingTsSolutionSetup)() ? true : options.skipTypeCheck;
8
10
  return {
9
11
  ...options,
10
12
  rollupConfig: []
@@ -12,7 +14,7 @@ function normalizeRollupExecutorOptions(options, context) {
12
14
  .filter(Boolean)
13
15
  .map((p) => normalizePluginPath(p, root)),
14
16
  projectRoot: context.projectGraph.nodes[context.projectName].data.root,
15
- skipTypeCheck: options.skipTypeCheck || false,
17
+ skipTypeCheck: skipTypeCheck || false,
16
18
  };
17
19
  }
18
20
  function normalizePluginPath(pluginPath, root) {
@@ -5,10 +5,15 @@ const node_path_1 = require("node:path");
5
5
  const node_fs_1 = require("node:fs");
6
6
  const devkit_1 = require("@nx/devkit");
7
7
  const js_1 = require("@nx/js");
8
+ const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
8
9
  function normalizeOptions(projectRoot, sourceRoot, options) {
9
10
  if (global.NX_GRAPH_CREATION)
10
11
  return options;
11
12
  normalizeRelativePaths(projectRoot, options);
13
+ // New TS Solution already has a typecheck target
14
+ if ((0, ts_solution_setup_1.isUsingTsSolutionSetup)()) {
15
+ options.skipTypeCheck = true;
16
+ }
12
17
  return {
13
18
  ...options,
14
19
  additionalEntryPoints: (0, js_1.createEntryPoints)(options.additionalEntryPoints, devkit_1.workspaceRoot),