@nx/rollup 23.0.0-beta.20 → 23.0.0-beta.22

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/migrations.json CHANGED
@@ -4,7 +4,8 @@
4
4
  "cli": "nx",
5
5
  "version": "23.0.0-beta.4",
6
6
  "description": "Remove deprecated useLegacyTypescriptPlugin option from @nx/rollup:rollup",
7
- "implementation": "./src/migrations/update-23-0-0/remove-use-legacy-typescript-plugin"
7
+ "implementation": "./src/migrations/update-23-0-0/remove-use-legacy-typescript-plugin",
8
+ "documentation": "./src/migrations/update-23-0-0/remove-use-legacy-typescript-plugin.md"
8
9
  }
9
10
  },
10
11
  "packageJsonUpdates": {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/rollup",
3
- "version": "23.0.0-beta.20",
3
+ "version": "23.0.0-beta.22",
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": {
@@ -30,8 +30,8 @@
30
30
  "migrations": "./migrations.json"
31
31
  },
32
32
  "dependencies": {
33
- "@nx/devkit": "23.0.0-beta.20",
34
- "@nx/js": "23.0.0-beta.20",
33
+ "@nx/devkit": "23.0.0-beta.22",
34
+ "@nx/js": "23.0.0-beta.22",
35
35
  "@phenomnomnominal/tsquery": "~6.2.0",
36
36
  "@rollup/plugin-babel": "^6.0.4",
37
37
  "@rollup/plugin-commonjs": "^25.0.7",
@@ -49,7 +49,7 @@
49
49
  "tslib": "^2.3.0"
50
50
  },
51
51
  "devDependencies": {
52
- "nx": "23.0.0-beta.20",
52
+ "nx": "23.0.0-beta.22",
53
53
  "source-map-js": "^1.2.0"
54
54
  },
55
55
  "publishConfig": {
@@ -0,0 +1,100 @@
1
+ #### Remove the `useLegacyTypescriptPlugin` Option from the `@nx/rollup:rollup` Executor
2
+
3
+ Removes the deprecated `useLegacyTypescriptPlugin` option from the `@nx/rollup:rollup` executor. The legacy TypeScript plugin support has been dropped; the option no longer has any effect. The migration removes it from project configuration, target defaults in `nx.json`, and `rollup.config.*` files that pass it to `withNx`.
4
+
5
+ #### Sample Code Changes
6
+
7
+ Remove `useLegacyTypescriptPlugin` from the `@nx/rollup:rollup` executor options in project configuration.
8
+
9
+ ##### Before
10
+
11
+ ```json title="libs/my-lib/project.json" {8}
12
+ {
13
+ "targets": {
14
+ "build": {
15
+ "executor": "@nx/rollup:rollup",
16
+ "options": {
17
+ "main": "libs/my-lib/src/index.ts",
18
+ "outputPath": "dist/libs/my-lib",
19
+ "useLegacyTypescriptPlugin": true
20
+ }
21
+ }
22
+ }
23
+ }
24
+ ```
25
+
26
+ ##### After
27
+
28
+ ```json title="libs/my-lib/project.json"
29
+ {
30
+ "targets": {
31
+ "build": {
32
+ "executor": "@nx/rollup:rollup",
33
+ "options": {
34
+ "main": "libs/my-lib/src/index.ts",
35
+ "outputPath": "dist/libs/my-lib"
36
+ }
37
+ }
38
+ }
39
+ }
40
+ ```
41
+
42
+ Remove `useLegacyTypescriptPlugin` from the `@nx/rollup:rollup` executor target defaults in `nx.json`.
43
+
44
+ ##### Before
45
+
46
+ ```json title="nx.json" {7}
47
+ {
48
+ "targetDefaults": {
49
+ "@nx/rollup:rollup": {
50
+ "options": {
51
+ "outputPath": "dist/{projectRoot}",
52
+ "tsConfig": "{projectRoot}/tsconfig.lib.json",
53
+ "useLegacyTypescriptPlugin": true
54
+ }
55
+ }
56
+ }
57
+ }
58
+ ```
59
+
60
+ ##### After
61
+
62
+ ```json title="nx.json"
63
+ {
64
+ "targetDefaults": {
65
+ "@nx/rollup:rollup": {
66
+ "options": {
67
+ "outputPath": "dist/{projectRoot}",
68
+ "tsConfig": "{projectRoot}/tsconfig.lib.json"
69
+ }
70
+ }
71
+ }
72
+ }
73
+ ```
74
+
75
+ Remove `useLegacyTypescriptPlugin` from `withNx` calls in `rollup.config.*` files.
76
+
77
+ ##### Before
78
+
79
+ ```js title="libs/my-lib/rollup.config.cjs" {7}
80
+ const { withNx } = require('@nx/rollup/with-nx');
81
+ module.exports = withNx({
82
+ outputPath: '../../dist/libs/my-lib',
83
+ main: './src/index.ts',
84
+ tsConfig: './tsconfig.lib.json',
85
+ format: ['cjs', 'esm'],
86
+ useLegacyTypescriptPlugin: true,
87
+ });
88
+ ```
89
+
90
+ ##### After
91
+
92
+ ```js title="libs/my-lib/rollup.config.cjs"
93
+ const { withNx } = require('@nx/rollup/with-nx');
94
+ module.exports = withNx({
95
+ outputPath: '../../dist/libs/my-lib',
96
+ main: './src/index.ts',
97
+ tsConfig: './tsconfig.lib.json',
98
+ format: ['cjs', 'esm'],
99
+ });
100
+ ```