Skip to content

Commit

Permalink
Add --target semver support to yarn and pnpm (#1337).
Browse files Browse the repository at this point in the history
  • Loading branch information
raineorshine committed Oct 12, 2023
1 parent 8c22691 commit 7c32aae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/package-managers/bun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ export const list = async (options: Options = {}): Promise<Index<string | undefi

export const greatest = npm.greatest
export const latest = npm.latest
export const newest = npm.newest
export const semver = npm.semver
export const minor = npm.minor
export const newest = npm.newest
export const patch = npm.patch
export const semver = npm.semver

export default spawnBun
1 change: 1 addition & 0 deletions src/package-managers/pnpm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,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)

/**
* Spawn pnpm.
Expand Down
1 change: 1 addition & 0 deletions src/package-managers/yarn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,5 +287,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 default spawnYarn

0 comments on commit 7c32aae

Please sign in to comment.