@nx/plugin 24.0.0-canary.20261026-e5bc931 → 24.0.0-canary.20261029-9748683
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/dist/src/generators/create-package/create-package.js +3 -1
- package/dist/src/generators/create-package/files/e2e/__cliName__.spec.ts__tmpl__ +1 -2
- package/dist/src/generators/executor/executor.js +1 -1
- package/dist/src/generators/generator/generator.js +0 -4
- package/generators.json +1 -2
- package/package.json +7 -7
|
@@ -138,10 +138,12 @@ function addE2eProject(host, options) {
|
|
|
138
138
|
const e2eProjectConfiguration = (0, devkit_1.readProjectConfiguration)(host, options.e2eProject);
|
|
139
139
|
const projectConfiguration = (0, devkit_1.readProjectConfiguration)(host, options.project);
|
|
140
140
|
const { name: pluginPackageName } = (0, devkit_1.readJson)(host, (0, path_1.join)(projectConfiguration.root, 'package.json'));
|
|
141
|
+
const packageManager = (0, devkit_1.detectPackageManager)();
|
|
141
142
|
(0, devkit_1.generateFiles)(host, (0, devkit_1.joinPathFragments)(__dirname, './files/e2e'), (0, internal_1.getProjectSourceRoot)(e2eProjectConfiguration, host), {
|
|
142
143
|
pluginName: options.project,
|
|
143
144
|
cliName: options.name,
|
|
144
|
-
|
|
145
|
+
packageManager,
|
|
146
|
+
packageManagerCommands: (0, devkit_1.getPackageManagerCommand)(packageManager),
|
|
145
147
|
pluginPackageName,
|
|
146
148
|
tmpl: '',
|
|
147
149
|
});
|
|
@@ -15,7 +15,6 @@ describe('<%= cliName %>', () => {
|
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
|
|
18
|
-
|
|
19
18
|
// This test shells out synchronously, so its budget has to cover a cold
|
|
20
19
|
// package manager cache. Otherwise work that succeeded still fails on return.
|
|
21
20
|
it('should be installed', () => {
|
|
@@ -47,7 +46,7 @@ function createTestProject(extraArgs = '') {
|
|
|
47
46
|
});
|
|
48
47
|
|
|
49
48
|
execSync(
|
|
50
|
-
`<%= packageManagerCommands.dlx %> <%= cliName %>@e2e ${projectName} ${extraArgs}`,
|
|
49
|
+
`<%= packageManagerCommands.dlx %> <%= cliName %>@e2e ${projectName} --packageManager=<%= packageManager %> ${extraArgs}`,
|
|
51
50
|
{
|
|
52
51
|
cwd: dirname(projectDirectory),
|
|
53
52
|
stdio: 'inherit',
|
|
@@ -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
|
});
|
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.0-canary.
|
|
3
|
+
"version": "24.0.0-canary.20261029-9748683",
|
|
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.0-canary.
|
|
40
|
-
"@nx/jest": "24.0.0-canary.
|
|
41
|
-
"@nx/js": "24.0.0-canary.
|
|
42
|
-
"@nx/eslint": "24.0.0-canary.
|
|
39
|
+
"@nx/devkit": "24.0.0-canary.20261029-9748683",
|
|
40
|
+
"@nx/jest": "24.0.0-canary.20261029-9748683",
|
|
41
|
+
"@nx/js": "24.0.0-canary.20261029-9748683",
|
|
42
|
+
"@nx/eslint": "24.0.0-canary.20261029-9748683"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"nx": "24.0.0-canary.
|
|
45
|
+
"nx": "24.0.0-canary.20261029-9748683"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@nx/vitest": "24.0.0-canary.
|
|
48
|
+
"@nx/vitest": "24.0.0-canary.20261029-9748683"
|
|
49
49
|
},
|
|
50
50
|
"peerDependenciesMeta": {
|
|
51
51
|
"@nx/vitest": {
|