@nx/plugin 0.0.0-pr-27404-9b7456c → 0.0.0-pr-27809-4160bae
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": "0.0.0-pr-
|
|
3
|
+
"version": "0.0.0-pr-27809-4160bae",
|
|
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": "0.0.0-pr-
|
|
33
|
-
"@nx/jest": "0.0.0-pr-
|
|
34
|
-
"@nx/js": "0.0.0-pr-
|
|
35
|
-
"@nx/eslint": "0.0.0-pr-
|
|
36
|
-
"@nrwl/nx-plugin": "0.0.0-pr-
|
|
32
|
+
"@nx/devkit": "0.0.0-pr-27809-4160bae",
|
|
33
|
+
"@nx/jest": "0.0.0-pr-27809-4160bae",
|
|
34
|
+
"@nx/js": "0.0.0-pr-27809-4160bae",
|
|
35
|
+
"@nx/eslint": "0.0.0-pr-27809-4160bae",
|
|
36
|
+
"@nrwl/nx-plugin": "0.0.0-pr-27809-4160bae"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
@@ -55,20 +55,10 @@ function addMigrationJsonChecks(host, options, packageJson) {
|
|
|
55
55
|
fileSet.add(relativeMigrationsJsonPath);
|
|
56
56
|
return {
|
|
57
57
|
...o,
|
|
58
|
-
files:
|
|
58
|
+
files: Array.from(fileSet),
|
|
59
59
|
};
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
-
function formatFilesEntries(tree, files) {
|
|
63
|
-
if (!(0, flat_config_1.useFlatConfig)(tree)) {
|
|
64
|
-
return files;
|
|
65
|
-
}
|
|
66
|
-
const filesAfter = files.map((f) => {
|
|
67
|
-
const after = f.startsWith('./') ? f.replace('./', '**/') : f;
|
|
68
|
-
return after;
|
|
69
|
-
});
|
|
70
|
-
return filesAfter;
|
|
71
|
-
}
|
|
72
62
|
function updateProjectTarget(host, options, packageJson) {
|
|
73
63
|
const project = (0, devkit_1.readProjectConfiguration)(host, options.projectName);
|
|
74
64
|
if (!project.targets) {
|
|
@@ -120,12 +110,12 @@ function updateProjectEslintConfig(host, options, packageJson) {
|
|
|
120
110
|
// update it
|
|
121
111
|
(0, eslint_file_1.updateOverrideInLintConfig)(host, options.root, lookup, (o) => ({
|
|
122
112
|
...o,
|
|
123
|
-
files:
|
|
113
|
+
files: [
|
|
124
114
|
...new Set([
|
|
125
115
|
...(Array.isArray(o.files) ? o.files : [o.files]),
|
|
126
116
|
...files,
|
|
127
117
|
]),
|
|
128
|
-
]
|
|
118
|
+
],
|
|
129
119
|
...parser,
|
|
130
120
|
rules: {
|
|
131
121
|
...o.rules,
|
|
@@ -136,7 +126,7 @@ function updateProjectEslintConfig(host, options, packageJson) {
|
|
|
136
126
|
else {
|
|
137
127
|
// add it
|
|
138
128
|
(0, eslint_file_1.addOverrideToLintConfig)(host, options.root, {
|
|
139
|
-
files
|
|
129
|
+
files,
|
|
140
130
|
...parser,
|
|
141
131
|
rules: {
|
|
142
132
|
'@nx/nx-plugin-checks': 'error',
|