@nx/plugin 24.0.6 → 24.1.0-canary.20261111-edd9940
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.
|
@@ -117,7 +117,7 @@ async function normalizeOptions(tree, options) {
|
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
async function executorGenerator(host, schema) {
|
|
120
|
-
// TODO(v25): remove the includeHasher option.
|
|
120
|
+
// TODO(v25): remove the includeHasher option (NXC-5052).
|
|
121
121
|
if (schema.includeHasher) {
|
|
122
122
|
throw new Error('Custom hashers are deprecated and will be removed in Nx 25, so the executor generator no longer creates them. Declare what the executor depends on as target inputs instead: https://nx.dev/docs/kb/local-executors#replace-a-custom-hasher-with-inputs');
|
|
123
123
|
}
|
|
@@ -120,10 +120,6 @@ async function updateGeneratorJson(host, options) {
|
|
|
120
120
|
schema: `${dir}/schema.json`,
|
|
121
121
|
description: options.description,
|
|
122
122
|
};
|
|
123
|
-
// @todo(v17): Remove this, prop is defunct.
|
|
124
|
-
if (options.name === 'preset') {
|
|
125
|
-
generators[options.name]['x-use-standalone-layout'] = true;
|
|
126
|
-
}
|
|
127
123
|
json.generators = generators;
|
|
128
124
|
return json;
|
|
129
125
|
});
|
|
@@ -16,7 +16,7 @@ const utils_1 = require("./utils");
|
|
|
16
16
|
function runNxCommand(command, opts = {
|
|
17
17
|
silenceError: false,
|
|
18
18
|
}) {
|
|
19
|
-
function _runNxCommand(
|
|
19
|
+
function _runNxCommand() {
|
|
20
20
|
const cwd = opts.cwd ?? (0, paths_1.tmpProjPath)();
|
|
21
21
|
const execSyncOptions = {
|
|
22
22
|
cwd,
|
|
@@ -35,7 +35,7 @@ function runNxCommand(command, opts = {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
try {
|
|
38
|
-
return _runNxCommand(
|
|
38
|
+
return _runNxCommand()
|
|
39
39
|
.toString()
|
|
40
40
|
.replace(/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g, '');
|
|
41
41
|
}
|
|
@@ -11,11 +11,10 @@ const node_fs_1 = require("node:fs");
|
|
|
11
11
|
const path_1 = require("path");
|
|
12
12
|
const paths_1 = require("./paths");
|
|
13
13
|
const utils_1 = require("./utils");
|
|
14
|
-
function runNxNewCommand(args
|
|
14
|
+
function runNxNewCommand(args) {
|
|
15
15
|
const localTmpDir = (0, path_1.dirname)((0, paths_1.tmpProjPath)());
|
|
16
16
|
return (0, child_process_1.execSync)(`node ${require.resolve('nx')} new proj --nx-workspace-root=${localTmpDir} --no-interactive --skip-install --collection=@nx/workspace --npmScope=proj --preset=apps ${args || ''}`, {
|
|
17
17
|
cwd: localTmpDir,
|
|
18
|
-
...(silent && false ? { stdio: ['ignore', 'ignore', 'ignore'] } : {}),
|
|
19
18
|
windowsHide: true,
|
|
20
19
|
});
|
|
21
20
|
}
|
|
@@ -56,7 +55,7 @@ function runPackageManagerInstall(silent = true) {
|
|
|
56
55
|
*/
|
|
57
56
|
function newNxProject(npmPackageName, pluginDistPath) {
|
|
58
57
|
(0, utils_1.cleanup)();
|
|
59
|
-
runNxNewCommand(''
|
|
58
|
+
runNxNewCommand('');
|
|
60
59
|
patchPackageJsonForPlugin(npmPackageName, pluginDistPath);
|
|
61
60
|
runPackageManagerInstall();
|
|
62
61
|
}
|
package/generators.json
CHANGED
|
@@ -42,8 +42,7 @@
|
|
|
42
42
|
"factory": "./dist/src/generators/preset/generator#presetGeneratorInternal",
|
|
43
43
|
"schema": "./dist/src/generators/preset/schema.json",
|
|
44
44
|
"description": "Initializes a workspace with an nx-plugin inside of it. Use as: `create-nx-workspace --preset @nx/plugin`.",
|
|
45
|
-
"hidden": true
|
|
46
|
-
"x-use-standalone-layout": true
|
|
45
|
+
"hidden": true
|
|
47
46
|
}
|
|
48
47
|
}
|
|
49
48
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/plugin",
|
|
3
|
-
"version": "24.0.
|
|
3
|
+
"version": "24.1.0-canary.20261111-edd9940",
|
|
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": {
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"tslib": "^2.3.0",
|
|
39
|
-
"@nx/devkit": "24.0.
|
|
40
|
-
"@nx/jest": "24.0.
|
|
41
|
-
"@nx/js": "24.0.
|
|
42
|
-
"@nx/eslint": "24.0.
|
|
39
|
+
"@nx/devkit": "24.1.0-canary.20261111-edd9940",
|
|
40
|
+
"@nx/jest": "24.1.0-canary.20261111-edd9940",
|
|
41
|
+
"@nx/js": "24.1.0-canary.20261111-edd9940",
|
|
42
|
+
"@nx/eslint": "24.1.0-canary.20261111-edd9940"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"nx": "24.0.
|
|
45
|
+
"nx": "24.1.0-canary.20261111-edd9940"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@nx/vitest": "24.0.
|
|
48
|
+
"@nx/vitest": "24.1.0-canary.20261111-edd9940"
|
|
49
49
|
},
|
|
50
50
|
"peerDependenciesMeta": {
|
|
51
51
|
"@nx/vitest": {
|