Skip to content

Commit

Permalink
bun: Use getEngines, getPeerDependencies, packageAuthorChanged from n…
Browse files Browse the repository at this point in the history
…pm (#1435).
  • Loading branch information
raineorshine committed Jul 31, 2024
1 parent a6b0d81 commit 0e23ffe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/package-managers/bun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,6 @@ export const newest = npm.newest
export const patch = npm.patch
export const semver = npm.semver

export { getEngines, getPeerDependencies, packageAuthorChanged } from './npm'

export default spawnBun
4 changes: 3 additions & 1 deletion src/package-managers/pnpm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const semver = withNpmWorkspaceConfig(npm.semver)
* @param [spawnOptions={}]
* @returns
*/
export default async function spawnPnpm(
async function spawnPnpm(
args: string | string[],
npmOptions: NpmOptions = {},
spawnOptions?: SpawnOptions,
Expand All @@ -108,3 +108,5 @@ export default async function spawnPnpm(
}

export { defaultPrefix, getPeerDependencies, getEngines, packageAuthorChanged } from './npm'

export default spawnPnpm
4 changes: 2 additions & 2 deletions src/package-managers/yarn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,6 @@ export const newest = withNpmConfigFromYarn(npm.newest)
export const patch = withNpmConfigFromYarn(npm.patch)
export const semver = withNpmConfigFromYarn(npm.semver)

export default spawnYarn

export { getEngines, getPeerDependencies, packageAuthorChanged } from './npm'

export default spawnYarn

0 comments on commit 0e23ffe

Please sign in to comment.