From 0e23ffeae893b9f043c4574d2db04b88ed0457be Mon Sep 17 00:00:00 2001 From: Raine Revere Date: Wed, 31 Jul 2024 11:46:41 +0000 Subject: [PATCH] bun: Use getEngines, getPeerDependencies, packageAuthorChanged from npm (#1435). --- src/package-managers/bun.ts | 2 ++ src/package-managers/pnpm.ts | 4 +++- src/package-managers/yarn.ts | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/package-managers/bun.ts b/src/package-managers/bun.ts index be840f6e..02c72643 100644 --- a/src/package-managers/bun.ts +++ b/src/package-managers/bun.ts @@ -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 diff --git a/src/package-managers/pnpm.ts b/src/package-managers/pnpm.ts index 1d33a945..bd356293 100644 --- a/src/package-managers/pnpm.ts +++ b/src/package-managers/pnpm.ts @@ -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, @@ -108,3 +108,5 @@ export default async function spawnPnpm( } export { defaultPrefix, getPeerDependencies, getEngines, packageAuthorChanged } from './npm' + +export default spawnPnpm diff --git a/src/package-managers/yarn.ts b/src/package-managers/yarn.ts index 66301aa1..c40ae0b3 100644 --- a/src/package-managers/yarn.ts +++ b/src/package-managers/yarn.ts @@ -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