@nx/rollup 16.5.0 → 16.6.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/generators.json +8 -6
- package/index.d.ts +4 -1
- package/index.js +6 -1
- package/migrations.json +6 -0
- package/package.json +5 -5
- package/src/executors/rollup/schema.json +1 -1
- package/src/generators/configuration/configuration.d.ts +5 -0
- package/src/generators/{rollup-project/rollup-project.js → configuration/configuration.js} +5 -5
- package/src/migrations/update-16-6-0/explicitly-set-projects-to-update-buildable-deps.d.ts +2 -0
- package/src/migrations/update-16-6-0/explicitly-set-projects-to-update-buildable-deps.js +31 -0
- package/src/generators/rollup-project/rollup-project.d.ts +0 -5
- /package/src/generators/{rollup-project → configuration}/schema.d.ts +0 -0
- /package/src/generators/{rollup-project → configuration}/schema.json +0 -0
package/generators.json
CHANGED
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
"description": "Initialize the `@nrwl/rollup` plugin.",
|
|
9
9
|
"hidden": true
|
|
10
10
|
},
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
11
|
+
"configuration": {
|
|
12
|
+
"aliases": ["rollup-project"],
|
|
13
|
+
"factory": "./src/generators/configuration/configuration#compat",
|
|
14
|
+
"schema": "./src/generators/configuration/schema.json",
|
|
14
15
|
"description": "Add rollup configuration to a project.",
|
|
15
16
|
"hidden": true
|
|
16
17
|
}
|
|
@@ -23,9 +24,10 @@
|
|
|
23
24
|
"aliases": ["ng-add"],
|
|
24
25
|
"hidden": true
|
|
25
26
|
},
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
27
|
+
"configuration": {
|
|
28
|
+
"aliases": ["rollup-project"],
|
|
29
|
+
"factory": "./src/generators/configuration/configuration",
|
|
30
|
+
"schema": "./src/generators/configuration/schema.json",
|
|
29
31
|
"description": "Add rollup configuration to a project.",
|
|
30
32
|
"hidden": true
|
|
31
33
|
}
|
package/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { configurationGenerator } from './src/generators/configuration/configuration';
|
|
2
|
+
export { configurationGenerator };
|
|
3
|
+
/** @deprecated Use `configurationGenerator` instead. */
|
|
4
|
+
export declare const rollupProjectGenerator: typeof configurationGenerator;
|
|
1
5
|
export * from './src/generators/init/init';
|
|
2
|
-
export * from './src/generators/rollup-project/rollup-project';
|
|
3
6
|
export type { AssetGlobPattern, Globals, RollupExecutorOptions, } from './src/executors/rollup/schema';
|
|
4
7
|
export * from './src/executors/rollup/rollup.impl';
|
package/index.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.rollupProjectGenerator = exports.configurationGenerator = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const configuration_1 = require("./src/generators/configuration/configuration");
|
|
6
|
+
Object.defineProperty(exports, "configurationGenerator", { enumerable: true, get: function () { return configuration_1.configurationGenerator; } });
|
|
7
|
+
// Exported for backwards compatibility in case a plugin is using the old name.
|
|
8
|
+
/** @deprecated Use `configurationGenerator` instead. */
|
|
9
|
+
exports.rollupProjectGenerator = configuration_1.configurationGenerator;
|
|
4
10
|
tslib_1.__exportStar(require("./src/generators/init/init"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./src/generators/rollup-project/rollup-project"), exports);
|
|
6
11
|
tslib_1.__exportStar(require("./src/executors/rollup/rollup.impl"), exports);
|
package/migrations.json
CHANGED
|
@@ -17,6 +17,12 @@
|
|
|
17
17
|
"version": "16-3-3-beta.0",
|
|
18
18
|
"description": "Add babelUpwardRootMode if not already defined",
|
|
19
19
|
"implementation": "./src/migrations/update-16-3-3-add-babel-upward-root-mode-flag/update-16-3-3-add-babel-upward-root-mode-flag"
|
|
20
|
+
},
|
|
21
|
+
"explicitly-set-projects-to-update-buildable-deps": {
|
|
22
|
+
"cli": "nx",
|
|
23
|
+
"version": "16.6.0-beta.0",
|
|
24
|
+
"description": "Explicitly set 'updateBuildableProjectDepsInPackageJson' to 'true' in targets that rely on that value as the default.",
|
|
25
|
+
"factory": "./src/migrations/update-16-6-0/explicitly-set-projects-to-update-buildable-deps"
|
|
20
26
|
}
|
|
21
27
|
},
|
|
22
28
|
"packageJsonUpdates": {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/rollup",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.6.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,9 +29,9 @@
|
|
|
29
29
|
"migrations": "./migrations.json"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@nrwl/rollup": "16.
|
|
33
|
-
"@nx/devkit": "16.
|
|
34
|
-
"@nx/js": "16.
|
|
32
|
+
"@nrwl/rollup": "16.6.0-beta.0",
|
|
33
|
+
"@nx/devkit": "16.6.0-beta.0",
|
|
34
|
+
"@nx/js": "16.6.0-beta.0",
|
|
35
35
|
"@rollup/plugin-babel": "^5.3.0",
|
|
36
36
|
"@rollup/plugin-commonjs": "^20.0.0",
|
|
37
37
|
"@rollup/plugin-image": "^2.1.0",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
56
|
"types": "./index.d.ts",
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "5a7ffb93c9e84bffbf52f6ae9c6c1e3b8edb9d35"
|
|
58
58
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Tree } from '@nx/devkit';
|
|
2
|
+
import { RollupProjectSchema } from './schema';
|
|
3
|
+
export declare function configurationGenerator(tree: Tree, options: RollupProjectSchema): Promise<import("@nx/devkit").GeneratorCallback>;
|
|
4
|
+
export default configurationGenerator;
|
|
5
|
+
export declare const compat: (generatorOptions: RollupProjectSchema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.compat = exports.configurationGenerator = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
6
|
const get_import_path_1 = require("@nx/js/src/utils/get-import-path");
|
|
7
7
|
const init_1 = require("../init/init");
|
|
8
|
-
function
|
|
8
|
+
function configurationGenerator(tree, options) {
|
|
9
9
|
var _a;
|
|
10
10
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const task = yield (0, init_1.rollupInitGenerator)(tree, Object.assign(Object.assign({}, options), { skipFormat: true }));
|
|
@@ -16,7 +16,7 @@ function rollupProjectGenerator(tree, options) {
|
|
|
16
16
|
return task;
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
exports.
|
|
19
|
+
exports.configurationGenerator = configurationGenerator;
|
|
20
20
|
function checkForTargetConflicts(tree, options) {
|
|
21
21
|
var _a;
|
|
22
22
|
if (options.skipValidation)
|
|
@@ -74,5 +74,5 @@ function addBuildTarget(tree, options) {
|
|
|
74
74
|
},
|
|
75
75
|
} }) }));
|
|
76
76
|
}
|
|
77
|
-
exports.default =
|
|
78
|
-
exports.
|
|
77
|
+
exports.default = configurationGenerator;
|
|
78
|
+
exports.compat = (0, devkit_1.convertNxGenerator)(configurationGenerator);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const executors = new Set(['@nx/rollup:rollup', '@nrwl/rollup:rollup']);
|
|
6
|
+
function default_1(tree) {
|
|
7
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8
|
+
const projects = (0, devkit_1.getProjects)(tree);
|
|
9
|
+
for (const [projectName, project] of projects) {
|
|
10
|
+
if (project.projectType !== 'library') {
|
|
11
|
+
continue;
|
|
12
|
+
}
|
|
13
|
+
let updated = false;
|
|
14
|
+
for (const [, target] of Object.entries(project.targets || {})) {
|
|
15
|
+
if (!executors.has(target.executor)) {
|
|
16
|
+
continue;
|
|
17
|
+
}
|
|
18
|
+
if (target.options &&
|
|
19
|
+
target.options.updateBuildableProjectDepsInPackageJson === undefined) {
|
|
20
|
+
target.options.updateBuildableProjectDepsInPackageJson = true;
|
|
21
|
+
updated = true;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
if (updated) {
|
|
25
|
+
(0, devkit_1.updateProjectConfiguration)(tree, projectName, project);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
yield (0, devkit_1.formatFiles)(tree);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
exports.default = default_1;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Tree } from '@nx/devkit';
|
|
2
|
-
import { RollupProjectSchema } from './schema';
|
|
3
|
-
export declare function rollupProjectGenerator(tree: Tree, options: RollupProjectSchema): Promise<import("@nx/devkit").GeneratorCallback>;
|
|
4
|
-
export default rollupProjectGenerator;
|
|
5
|
-
export declare const rollupProjectSchematic: (generatorOptions: RollupProjectSchema) => (tree: any, context: any) => Promise<any>;
|
|
File without changes
|
|
File without changes
|