@nx/rollup 20.5.0-canary.20250222-4367352 → 20.5.0-canary.20250226-202b49b
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.5.0-canary.
|
|
3
|
+
"version": "20.5.0-canary.20250226-202b49b",
|
|
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": "20.5.0-canary.
|
|
33
|
-
"@nx/js": "20.5.0-canary.
|
|
32
|
+
"@nx/devkit": "20.5.0-canary.20250226-202b49b",
|
|
33
|
+
"@nx/js": "20.5.0-canary.20250226-202b49b",
|
|
34
34
|
"@rollup/plugin-babel": "^6.0.4",
|
|
35
35
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
36
36
|
"@rollup/plugin-image": "^3.0.3",
|
|
@@ -68,7 +68,7 @@ module.exports = withNx(
|
|
|
68
68
|
compiler: '${buildOptions.compiler}',
|
|
69
69
|
format: ${JSON.stringify(options.format ?? ['esm'])},${!isTsSolutionSetup
|
|
70
70
|
? `
|
|
71
|
-
assets: [{ input: '
|
|
71
|
+
assets: [{ input: '{projectRoot}', output: '.', glob:'*.md' }],`
|
|
72
72
|
: ''}
|
|
73
73
|
},
|
|
74
74
|
{
|
package/src/plugins/plugin.js
CHANGED
|
@@ -86,15 +86,15 @@ async function buildRollupTarget(configFilePath, projectRoot, options, context,
|
|
|
86
86
|
// Fallback to our own if needed.
|
|
87
87
|
loadConfigFile = require('rollup/loadConfigFile').loadConfigFile;
|
|
88
88
|
}
|
|
89
|
+
const isTsConfig = configFilePath.endsWith('ts');
|
|
90
|
+
const tsConfigPlugin = '@rollup/plugin-typescript';
|
|
89
91
|
const namedInputs = (0, get_named_inputs_1.getNamedInputs)(projectRoot, context);
|
|
90
|
-
const rollupConfig = (await loadConfigFile((0, devkit_1.joinPathFragments)(context.workspaceRoot, configFilePath), {}, true // Enable watch mode so that rollup properly reloads config files without reusing a cached version
|
|
92
|
+
const rollupConfig = (await loadConfigFile((0, devkit_1.joinPathFragments)(context.workspaceRoot, configFilePath), isTsConfig ? { configPlugin: tsConfigPlugin } : {}, true // Enable watch mode so that rollup properly reloads config files without reusing a cached version
|
|
91
93
|
)).options;
|
|
92
94
|
const outputs = getOutputs(rollupConfig, projectRoot);
|
|
93
95
|
const targets = {};
|
|
94
96
|
targets[options.buildTargetName] = {
|
|
95
|
-
command: `rollup -c ${(0, path_1.basename)(configFilePath)}${
|
|
96
|
-
? ' --configPlugin @rollup/plugin-typescript'
|
|
97
|
-
: ''}`,
|
|
97
|
+
command: `rollup -c ${(0, path_1.basename)(configFilePath)}${isTsConfig ? ` --configPlugin ${tsConfigPlugin}` : ''}`,
|
|
98
98
|
options: { cwd: projectRoot },
|
|
99
99
|
cache: true,
|
|
100
100
|
dependsOn: [`^${options.buildTargetName}`],
|