@nx/plugin 24.0.1 → 24.0.3

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.
@@ -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
- packageManagerCommands: (0, devkit_1.getPackageManagerCommand)(),
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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/plugin",
3
- "version": "24.0.1",
3
+ "version": "24.0.3",
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.1",
40
- "@nx/jest": "24.0.1",
41
- "@nx/js": "24.0.1",
42
- "@nx/eslint": "24.0.1"
39
+ "@nx/devkit": "24.0.3",
40
+ "@nx/jest": "24.0.3",
41
+ "@nx/js": "24.0.3",
42
+ "@nx/eslint": "24.0.3"
43
43
  },
44
44
  "devDependencies": {
45
- "nx": "24.0.1"
45
+ "nx": "24.0.3"
46
46
  },
47
47
  "peerDependencies": {
48
- "@nx/vitest": "24.0.1"
48
+ "@nx/vitest": "24.0.3"
49
49
  },
50
50
  "peerDependenciesMeta": {
51
51
  "@nx/vitest": {