@nx/rollup 17.3.0-beta.4 → 17.3.0-beta.6
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": "17.3.0-beta.
|
|
3
|
+
"version": "17.3.0-beta.6",
|
|
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": {
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"rollup-plugin-typescript2": "0.34.1",
|
|
47
47
|
"rxjs": "^7.8.0",
|
|
48
48
|
"tslib": "^2.3.0",
|
|
49
|
-
"@nx/devkit": "17.3.0-beta.
|
|
50
|
-
"@nx/js": "17.3.0-beta.
|
|
51
|
-
"@nrwl/rollup": "17.3.0-beta.
|
|
49
|
+
"@nx/devkit": "17.3.0-beta.6",
|
|
50
|
+
"@nx/js": "17.3.0-beta.6",
|
|
51
|
+
"@nrwl/rollup": "17.3.0-beta.6"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Tree, GeneratorCallback } from '@nx/devkit';
|
|
2
2
|
import { RollupProjectSchema } from './schema';
|
|
3
3
|
export declare function configurationGenerator(tree: Tree, options: RollupProjectSchema): Promise<GeneratorCallback>;
|
|
4
4
|
export default configurationGenerator;
|
|
@@ -4,6 +4,7 @@ exports.configurationGenerator = void 0;
|
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const get_import_path_1 = require("@nx/js/src/utils/get-import-path");
|
|
6
6
|
const init_1 = require("../init/init");
|
|
7
|
+
const add_build_target_defaults_1 = require("@nx/devkit/src/generators/add-build-target-defaults");
|
|
7
8
|
const ensure_dependencies_1 = require("../../utils/ensure-dependencies");
|
|
8
9
|
async function configurationGenerator(tree, options) {
|
|
9
10
|
const tasks = [];
|
|
@@ -29,6 +30,7 @@ function checkForTargetConflicts(tree, options) {
|
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
function addBuildTarget(tree, options) {
|
|
33
|
+
(0, add_build_target_defaults_1.addBuildTargetDefaults)(tree, '@nx/rollup:rollup', options.buildTarget);
|
|
32
34
|
const project = (0, devkit_1.readProjectConfiguration)(tree, options.project);
|
|
33
35
|
const packageJsonPath = (0, devkit_1.joinPathFragments)(project.root, 'package.json');
|
|
34
36
|
if (!tree.exists(packageJsonPath)) {
|
|
@@ -6,7 +6,7 @@ const versions_1 = require("../../utils/versions");
|
|
|
6
6
|
async function rollupInitGenerator(tree, schema) {
|
|
7
7
|
let task = () => { };
|
|
8
8
|
if (!schema.skipPackageJson) {
|
|
9
|
-
task = (0, devkit_1.addDependenciesToPackageJson)(tree, {}, { '@nx/rollup': versions_1.nxVersion });
|
|
9
|
+
task = (0, devkit_1.addDependenciesToPackageJson)(tree, {}, { '@nx/rollup': versions_1.nxVersion }, undefined, schema.keepExistingVersions);
|
|
10
10
|
}
|
|
11
11
|
if (!schema.skipFormat) {
|
|
12
12
|
await (0, devkit_1.formatFiles)(tree);
|
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
"description": "Do not add dependencies to `package.json`.",
|
|
16
16
|
"type": "boolean",
|
|
17
17
|
"default": false
|
|
18
|
+
},
|
|
19
|
+
"keepExistingVersions": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"x-priority": "internal",
|
|
22
|
+
"description": "Keep existing dependencies versions",
|
|
23
|
+
"default": false
|
|
18
24
|
}
|
|
19
25
|
},
|
|
20
26
|
"required": []
|