@nx/plugin 19.4.0 → 19.4.2
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/plugin",
|
|
3
|
-
"version": "19.4.
|
|
3
|
+
"version": "19.4.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "This plugin is used to create Nx plugins! It contains generators for generating common plugin features like generators, executors, migrations and more.",
|
|
6
6
|
"repository": {
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"fs-extra": "^11.1.0",
|
|
31
31
|
"tslib": "^2.3.0",
|
|
32
|
-
"@nx/devkit": "19.4.
|
|
33
|
-
"@nx/jest": "19.4.
|
|
34
|
-
"@nx/js": "19.4.
|
|
35
|
-
"@nx/eslint": "19.4.
|
|
36
|
-
"@nrwl/nx-plugin": "19.4.
|
|
32
|
+
"@nx/devkit": "19.4.2",
|
|
33
|
+
"@nx/jest": "19.4.2",
|
|
34
|
+
"@nx/js": "19.4.2",
|
|
35
|
+
"@nx/eslint": "19.4.2",
|
|
36
|
+
"@nrwl/nx-plugin": "19.4.2"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
@@ -3,11 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createPackageGeneratorInternal = exports.createPackageGenerator = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const js_1 = require("@nx/js");
|
|
6
|
+
const add_tslib_dependencies_1 = require("@nx/js/src/utils/typescript/add-tslib-dependencies");
|
|
6
7
|
const versions_1 = require("nx/src/utils/versions");
|
|
7
8
|
const generator_1 = require("../generator/generator");
|
|
8
9
|
const normalize_schema_1 = require("./utils/normalize-schema");
|
|
9
10
|
const has_generator_1 = require("../../utils/has-generator");
|
|
10
11
|
const path_1 = require("path");
|
|
12
|
+
const versions_2 = require("@nx/js/src/utils/versions");
|
|
11
13
|
async function createPackageGenerator(host, schema) {
|
|
12
14
|
return await createPackageGeneratorInternal(host, {
|
|
13
15
|
projectNameAndRootFormat: 'derived',
|
|
@@ -19,6 +21,9 @@ async function createPackageGeneratorInternal(host, schema) {
|
|
|
19
21
|
const tasks = [];
|
|
20
22
|
const options = await (0, normalize_schema_1.normalizeSchema)(host, schema);
|
|
21
23
|
const pluginPackageName = await addPresetGenerator(host, options);
|
|
24
|
+
if (options.bundler === 'tsc') {
|
|
25
|
+
tasks.push((0, add_tslib_dependencies_1.addTsLibDependencies)(host));
|
|
26
|
+
}
|
|
22
27
|
const installTask = (0, devkit_1.addDependenciesToPackageJson)(host, {
|
|
23
28
|
'create-nx-workspace': versions_1.nxVersion,
|
|
24
29
|
}, {});
|
|
@@ -71,6 +76,7 @@ async function createCliPackage(host, options, pluginPackageName) {
|
|
|
71
76
|
};
|
|
72
77
|
packageJson.dependencies = {
|
|
73
78
|
'create-nx-workspace': versions_1.nxVersion,
|
|
79
|
+
...(options.bundler === 'tsc' && { tslib: versions_2.tsLibVersion }),
|
|
74
80
|
};
|
|
75
81
|
return packageJson;
|
|
76
82
|
});
|