Skip to content

Commit

Permalink
Fix --target semver with yarn and pnpm.
Browse files Browse the repository at this point in the history
  • Loading branch information
raineorshine committed Dec 13, 2023
1 parent be4b557 commit ccb3e0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/package-managers/pnpm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'

Expand Down
3 changes: 2 additions & 1 deletion src/package-managers/yarn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
minor as npmMinor,
newest as npmNewest,
patch as npmPatch,
semver as npmSemver,
} from './npm'

interface ParsedDep {
Expand Down Expand Up @@ -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

0 comments on commit ccb3e0c

Please sign in to comment.