Skip to content

Commit 1a5b60b

Browse files
committed
chore(core): update yargs installation to match Nx version for compatibility
1 parent a969d48 commit 1a5b60b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

e2e/release/src/version-plans.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NxJsonConfiguration } from '@nx/devkit';
1+
import { NxJsonConfiguration, readJsonFile, workspaceRoot } from '@nx/devkit';
22
import {
33
cleanupProject,
44
exists,
@@ -459,7 +459,11 @@ Update the independent packages with a patch, preminor, and prerelease.
459459
expect(exists(join(versionPlansDir, 'bump-fixed.md'))).toBe(true);
460460
expect(exists(join(versionPlansDir, 'bump-independent.md'))).toBe(true);
461461

462-
packageInstall('yargs', null, 'latest', 'dev');
462+
// Reference the same version of yargs as nx uses to avoid compatibility issues
463+
const nxPackageJson = readJsonFile(
464+
join(workspaceRoot, 'packages/nx/package.json')
465+
);
466+
packageInstall('yargs', null, nxPackageJson.dependencies.yargs, 'dev');
463467

464468
await writeFile(
465469
tmpProjPath('release.js'),

0 commit comments

Comments
 (0)