@nx/rollup 23.0.0-beta.8 → 23.0.0-beta.9
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 +4 -4
- package/src/executors/rollup/rollup.impl.d.ts.map +1 -1
- package/src/executors/rollup/rollup.impl.js +2 -0
- package/src/executors/rollup/schema.json +1 -0
- package/src/generators/configuration/configuration.d.ts.map +1 -1
- package/src/generators/configuration/configuration.js +2 -0
- package/src/utils/deprecation.d.ts +4 -0
- package/src/utils/deprecation.d.ts.map +1 -0
- package/src/utils/deprecation.js +19 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/rollup",
|
|
3
|
-
"version": "23.0.0-beta.
|
|
3
|
+
"version": "23.0.0-beta.9",
|
|
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.
|
|
34
|
-
"@nx/js": "23.0.0-beta.
|
|
33
|
+
"@nx/devkit": "23.0.0-beta.9",
|
|
34
|
+
"@nx/js": "23.0.0-beta.9",
|
|
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.
|
|
52
|
+
"nx": "23.0.0-beta.9",
|
|
53
53
|
"source-map-js": "^1.2.0"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollup.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/rollup/src/executors/rollup/rollup.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,EAAE,KAAK,eAAe,EAAU,MAAM,YAAY,CAAC;AAG1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EACL,+BAA+B,EAEhC,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"rollup.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/rollup/src/executors/rollup/rollup.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,EAAE,KAAK,eAAe,EAAU,MAAM,YAAY,CAAC;AAG1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EACL,+BAA+B,EAEhC,MAAM,iBAAiB,CAAC;AAMzB,wBAAuB,cAAc,CACnC,UAAU,EAAE,qBAAqB,EACjC,OAAO,EAAE,eAAe,qCAoEzB;AAID,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,+BAA+B,EACxC,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,MAAM,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,EAAE,CAAC,CAuDxD;AAWD,eAAe,cAAc,CAAC"}
|
|
@@ -11,7 +11,9 @@ const normalize_1 = require("./lib/normalize");
|
|
|
11
11
|
const with_nx_1 = require("../../plugins/with-nx/with-nx");
|
|
12
12
|
const generate_package_json_1 = require("../../plugins/package-json/generate-package-json");
|
|
13
13
|
const buildable_libs_utils_1 = require("@nx/js/src/utils/buildable-libs-utils");
|
|
14
|
+
const deprecation_1 = require("../../utils/deprecation");
|
|
14
15
|
async function* rollupExecutor(rawOptions, context) {
|
|
16
|
+
(0, deprecation_1.warnRollupExecutorDeprecation)();
|
|
15
17
|
process.env.NODE_ENV ??= 'production';
|
|
16
18
|
const options = (0, normalize_1.normalizeRollupExecutorOptions)(rawOptions, context);
|
|
17
19
|
const rollupOptions = await createRollupOptions(options, context);
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"description": "Packages a library for different web usages (ESM, CommonJS).",
|
|
6
6
|
"cli": "nx",
|
|
7
7
|
"type": "object",
|
|
8
|
+
"x-deprecated": "The `@nx/rollup:rollup` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/rollup:convert-to-inferred` to migrate to the `@nx/rollup/plugin` inferred plugin. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.",
|
|
8
9
|
"properties": {
|
|
9
10
|
"project": {
|
|
10
11
|
"type": "string",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../../../../packages/rollup/src/generators/configuration/configuration.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,iBAAiB,EAOjB,IAAI,EAIL,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../../../../packages/rollup/src/generators/configuration/configuration.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,iBAAiB,EAOjB,IAAI,EAIL,MAAM,YAAY,CAAC;AAkBpB,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAI/C,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,mBAAmB,8BAoC7B;AAsPD,eAAe,sBAAsB,CAAC"}
|
|
@@ -11,6 +11,7 @@ const posix_1 = require("node:path/posix");
|
|
|
11
11
|
const devkit_internals_1 = require("nx/src/devkit-internals");
|
|
12
12
|
const ensure_dependencies_1 = require("../../utils/ensure-dependencies");
|
|
13
13
|
const has_plugin_1 = require("../../utils/has-plugin");
|
|
14
|
+
const deprecation_1 = require("../../utils/deprecation");
|
|
14
15
|
const init_1 = require("../init/init");
|
|
15
16
|
let ts;
|
|
16
17
|
async function configurationGenerator(tree, options) {
|
|
@@ -29,6 +30,7 @@ async function configurationGenerator(tree, options) {
|
|
|
29
30
|
outputConfig = createRollupConfig(tree, options, isTsSolutionSetup);
|
|
30
31
|
}
|
|
31
32
|
else {
|
|
33
|
+
(0, deprecation_1.warnRollupExecutorGenerating)();
|
|
32
34
|
options.buildTarget ??= 'build';
|
|
33
35
|
checkForTargetConflicts(tree, options);
|
|
34
36
|
addBuildTarget(tree, options, isTsSolutionSetup);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const ROLLUP_EXECUTOR_DEPRECATION_MESSAGE = "The `@nx/rollup:rollup` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/rollup:convert-to-inferred` to migrate to the `@nx/rollup/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.";
|
|
2
|
+
export declare function warnRollupExecutorDeprecation(): void;
|
|
3
|
+
export declare function warnRollupExecutorGenerating(): void;
|
|
4
|
+
//# sourceMappingURL=deprecation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deprecation.d.ts","sourceRoot":"","sources":["../../../../../packages/rollup/src/utils/deprecation.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mCAAmC,mQACkN,CAAC;AAEnQ,wBAAgB,6BAA6B,IAAI,IAAI,CAEpD;AAMD,wBAAgB,4BAA4B,IAAI,IAAI,CAInD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ROLLUP_EXECUTOR_DEPRECATION_MESSAGE = void 0;
|
|
4
|
+
exports.warnRollupExecutorDeprecation = warnRollupExecutorDeprecation;
|
|
5
|
+
exports.warnRollupExecutorGenerating = warnRollupExecutorGenerating;
|
|
6
|
+
const devkit_1 = require("@nx/devkit");
|
|
7
|
+
// TODO(v24): Remove the @nx/rollup:rollup executor. The inferred plugin
|
|
8
|
+
// (@nx/rollup/plugin) and the convert-to-inferred generator stay supported.
|
|
9
|
+
exports.ROLLUP_EXECUTOR_DEPRECATION_MESSAGE = 'The `@nx/rollup:rollup` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/rollup:convert-to-inferred` to migrate to the `@nx/rollup/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.';
|
|
10
|
+
function warnRollupExecutorDeprecation() {
|
|
11
|
+
devkit_1.logger.warn(exports.ROLLUP_EXECUTOR_DEPRECATION_MESSAGE);
|
|
12
|
+
}
|
|
13
|
+
// Fired when the @nx/rollup:configuration generator is about to generate a
|
|
14
|
+
// target that uses the deprecated executor — i.e. when @nx/rollup/plugin
|
|
15
|
+
// isn't registered in nx.json. Surfaces the deprecation at generation time
|
|
16
|
+
// rather than only when the user later runs the generated target.
|
|
17
|
+
function warnRollupExecutorGenerating() {
|
|
18
|
+
devkit_1.logger.warn('Generating a target that uses the deprecated `@nx/rollup:rollup` executor. The executor will be removed in Nx v24. Run `nx g @nx/rollup:convert-to-inferred` next to migrate this target to the `@nx/rollup/plugin` inferred plugin and prevent future generators from emitting executor targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.');
|
|
19
|
+
}
|