Skip to content

Commit

Permalink
fixup! Update libraries/rush-lib/src/logic/installManager/InstallHelp…
Browse files Browse the repository at this point in the history
…ers.ts
  • Loading branch information
iclanton committed Dec 3, 2024
1 parent 54fb673 commit 9f9072c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions libraries/rush-lib/src/logic/installManager/InstallHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,16 @@ export class InstallHelpers {
}

if (pnpmOptions.globalIgnoredOptionalDependencies) {
if (rushConfiguration.rushConfigurationJson.pnpmVersion !== undefined && semver.lt(rushConfiguration.rushConfigurationJson.pnpmVersion, '9.0.0')) {
if (
rushConfiguration.rushConfigurationJson.pnpmVersion !== undefined &&
semver.lt(rushConfiguration.rushConfigurationJson.pnpmVersion, '9.0.0')
) {
// eslint-disable-next-line no-console
console.warn(
Colorize.yellow(
`Your version of pnpm (${rushConfiguration.rushConfigurationJson.pnpmVersion}) ` +
`doesn't support the "globalIgnoredOptionalDependencies" field in ${RushConstants.<whatever this is>}/${RushConstants.<pnpm-config.json constant>}. ` +
`Remove this field or upgrade to pnpm 9.`
`doesn't support the "globalIgnoredOptionalDependencies" field in ` +
`${rushConfiguration.commonRushConfigFolder}. Remove this field or upgrade to pnpm 9.`
)
);
}
Expand Down

0 comments on commit 9f9072c

Please sign in to comment.