From ccb3e0cbae6291bf67e3c10a567ff77f43031197 Mon Sep 17 00:00:00 2001 From: Raine Revere Date: Wed, 13 Dec 2023 17:07:18 +0000 Subject: [PATCH] Fix --target semver with yarn and pnpm. --- src/package-managers/pnpm.ts | 3 ++- src/package-managers/yarn.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/package-managers/pnpm.ts b/src/package-managers/pnpm.ts index c76d8339..536cfab1 100644 --- a/src/package-managers/pnpm.ts +++ b/src/package-managers/pnpm.ts @@ -22,6 +22,7 @@ import { minor as npmMinor, newest as npmNewest, patch as npmPatch, + semver as npmSemver, } from './npm' // return type of pnpm ls --json @@ -109,7 +110,7 @@ export const latest = withNpmWorkspaceConfig(npmLatest) export const minor = withNpmWorkspaceConfig(npmMinor) export const newest = withNpmWorkspaceConfig(npmNewest) export const patch = withNpmWorkspaceConfig(npmPatch) -export const semver = withNpmWorkspaceConfig(npmPatch) +export const semver = withNpmWorkspaceConfig(npmSemver) export { defaultPrefix, getPeerDependencies, packageAuthorChanged } from './npm' diff --git a/src/package-managers/yarn.ts b/src/package-managers/yarn.ts index 6c943a87..b2133667 100644 --- a/src/package-managers/yarn.ts +++ b/src/package-managers/yarn.ts @@ -24,6 +24,7 @@ import { minor as npmMinor, newest as npmNewest, patch as npmPatch, + semver as npmSemver, } from './npm' interface ParsedDep { @@ -287,6 +288,6 @@ export const latest = withNpmConfigFromYarn(npmLatest) export const minor = withNpmConfigFromYarn(npmMinor) export const newest = withNpmConfigFromYarn(npmNewest) export const patch = withNpmConfigFromYarn(npmPatch) -export const semver = withNpmConfigFromYarn(npmPatch) +export const semver = withNpmConfigFromYarn(npmSemver) export default spawnYarn