@nx/rollup 21.2.3 → 21.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": "21.
|
3
|
+
"version": "21.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": {
|
@@ -29,8 +29,8 @@
|
|
29
29
|
"migrations": "./migrations.json"
|
30
30
|
},
|
31
31
|
"dependencies": {
|
32
|
-
"@nx/devkit": "21.
|
33
|
-
"@nx/js": "21.
|
32
|
+
"@nx/devkit": "21.3.0-beta.0",
|
33
|
+
"@nx/js": "21.3.0-beta.0",
|
34
34
|
"@rollup/plugin-babel": "^6.0.4",
|
35
35
|
"@rollup/plugin-commonjs": "^25.0.7",
|
36
36
|
"@rollup/plugin-image": "^3.0.3",
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { DependentBuildableProjectNode } from '@nx/js/src/utils/buildable-libs-utils';
|
2
1
|
import * as rollup from 'rollup';
|
2
|
+
import { DependentBuildableProjectNode } from '@nx/js/src/utils/buildable-libs-utils';
|
3
3
|
import { RollupWithNxPluginOptions } from './with-nx-options';
|
4
4
|
export declare function withNx(rawOptions: RollupWithNxPluginOptions, rollupConfig?: rollup.RollupOptions, dependencies?: DependentBuildableProjectNode[]): rollup.RollupOptions;
|
@@ -1,21 +1,21 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.withNx = withNx;
|
4
|
+
const node_fs_1 = require("node:fs");
|
5
|
+
const node_path_1 = require("node:path");
|
6
|
+
const plugin_babel_1 = require("@rollup/plugin-babel");
|
7
|
+
const autoprefixer = require("autoprefixer");
|
4
8
|
const devkit_1 = require("@nx/devkit");
|
5
|
-
const type_definitions_1 = require("@nx/js/src/plugins/rollup/type-definitions");
|
6
9
|
const buildable_libs_utils_1 = require("@nx/js/src/utils/buildable-libs-utils");
|
7
|
-
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
8
|
-
const plugin_babel_1 = require("@rollup/plugin-babel");
|
9
10
|
const plugin_node_resolve_1 = require("@rollup/plugin-node-resolve");
|
10
|
-
const
|
11
|
-
const node_fs_1 = require("node:fs");
|
12
|
-
const node_path_1 = require("node:path");
|
11
|
+
const type_definitions_1 = require("@nx/js/src/plugins/rollup/type-definitions");
|
13
12
|
const analyze_1 = require("../analyze");
|
14
|
-
const delete_output_1 = require("../delete-output");
|
15
|
-
const generate_package_json_1 = require("../package-json/generate-package-json");
|
16
13
|
const swc_1 = require("../swc");
|
14
|
+
const generate_package_json_1 = require("../package-json/generate-package-json");
|
17
15
|
const get_project_node_1 = require("./get-project-node");
|
16
|
+
const delete_output_1 = require("../delete-output");
|
18
17
|
const normalize_options_1 = require("./normalize-options");
|
18
|
+
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
19
19
|
// These use require because the ES import isn't correct.
|
20
20
|
const commonjs = require('@rollup/plugin-commonjs');
|
21
21
|
const image = require('@rollup/plugin-image');
|
@@ -51,8 +51,7 @@ dependencies) {
|
|
51
51
|
const result = (0, buildable_libs_utils_1.calculateProjectBuildableDependencies)(undefined, projectGraph, devkit_1.workspaceRoot, projectNode.name, process.env.NX_TASK_TARGET_TARGET, process.env.NX_TASK_TARGET_CONFIGURATION, true);
|
52
52
|
dependencies = result.dependencies;
|
53
53
|
}
|
54
|
-
const
|
55
|
-
const options = (0, normalize_options_1.normalizeOptions)(projectNode.data.root, projectSourceRoot, rawOptions);
|
54
|
+
const options = (0, normalize_options_1.normalizeOptions)(projectNode.data.root, projectNode.data.sourceRoot, rawOptions);
|
56
55
|
const useBabel = options.compiler === 'babel';
|
57
56
|
const useSwc = options.compiler === 'swc';
|
58
57
|
const tsConfigPath = options.buildLibsFromSource || global.NX_GRAPH_CREATION
|
@@ -223,7 +222,7 @@ dependencies) {
|
|
223
222
|
supportsStaticESM: true,
|
224
223
|
isModern: true,
|
225
224
|
},
|
226
|
-
cwd: (0, node_path_1.join)(devkit_1.workspaceRoot,
|
225
|
+
cwd: (0, node_path_1.join)(devkit_1.workspaceRoot, projectNode.data.sourceRoot ?? projectNode.data.root),
|
227
226
|
rootMode: options.babelUpwardRootMode ? 'upward' : undefined,
|
228
227
|
babelrc: true,
|
229
228
|
extensions: fileExtensions,
|