@nx/rollup 21.2.0-canary.20250606-c43d2f2 → 21.2.0-canary.20250611-ec0eda5
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.2.0-canary.
|
|
3
|
+
"version": "21.2.0-canary.20250611-ec0eda5",
|
|
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.2.0-canary.
|
|
33
|
-
"@nx/js": "21.2.0-canary.
|
|
32
|
+
"@nx/devkit": "21.2.0-canary.20250611-ec0eda5",
|
|
33
|
+
"@nx/js": "21.2.0-canary.20250611-ec0eda5",
|
|
34
34
|
"@rollup/plugin-babel": "^6.0.4",
|
|
35
35
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
36
36
|
"@rollup/plugin-image": "^3.0.3",
|
package/src/plugins/plugin.js
CHANGED
|
@@ -94,7 +94,9 @@ async function buildRollupTarget(configFilePath, projectRoot, options, context,
|
|
|
94
94
|
const outputs = getOutputs(rollupConfig, projectRoot);
|
|
95
95
|
const targets = {};
|
|
96
96
|
targets[options.buildTargetName] = {
|
|
97
|
-
command: `rollup -c ${(0, path_1.basename)(configFilePath)}${isTsConfig
|
|
97
|
+
command: `rollup -c ${(0, path_1.basename)(configFilePath)}${isTsConfig
|
|
98
|
+
? ` --configPlugin typescript={tsconfig:\\'tsconfig.lib.json\\'}`
|
|
99
|
+
: ''}`,
|
|
98
100
|
options: { cwd: projectRoot },
|
|
99
101
|
cache: true,
|
|
100
102
|
dependsOn: [`^${options.buildTargetName}`],
|
|
@@ -44,7 +44,7 @@ dependencies) {
|
|
|
44
44
|
const useBabel = options.compiler === 'babel';
|
|
45
45
|
const useSwc = options.compiler === 'swc';
|
|
46
46
|
const tsConfigPath = options.buildLibsFromSource || global.NX_GRAPH_CREATION
|
|
47
|
-
? (0,
|
|
47
|
+
? (0, node_path_1.join)(devkit_1.workspaceRoot, options.tsConfig)
|
|
48
48
|
: (0, buildable_libs_utils_1.createTmpTsConfig)(options.tsConfig, devkit_1.workspaceRoot, projectRoot, dependencies);
|
|
49
49
|
const tsConfigFile = ts.readConfigFile(tsConfigPath, ts.sys.readFile);
|
|
50
50
|
const tsConfig = ts.parseJsonConfigFileContent(tsConfigFile.config, ts.sys, (0, node_path_1.dirname)(tsConfigPath));
|