From 300a555e6834a35945b8aff2016ac1bb2b4bb567 Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Fri, 17 May 2024 09:05:14 -0500 Subject: [PATCH] fix: addresses deps installation issue with upgrade (#140) --- src/utils/packageManager.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/packageManager.ts b/src/utils/packageManager.ts index 284b2764..174f5ccc 100644 --- a/src/utils/packageManager.ts +++ b/src/utils/packageManager.ts @@ -15,7 +15,7 @@ interface PackageManagerMethods { export const packageManagers: Record = { npm: { install(packages?: string): string { - return `npm install${packages ? ` ${packages}` : ""}`; + return `npm install${packages ? ` ${packages}` : ""} --force`; }, run(script: string): string { return `npm run ${script}`; @@ -31,7 +31,7 @@ export const packageManagers: Record }, yarn: { install(packages?: string): string { - return `yarn${packages ? ` add ${packages}` : ""}`; + return `yarn${packages ? ` add ${packages}` : ""} --force`; }, run(script: string): string { return `yarn ${script}`; @@ -47,7 +47,7 @@ export const packageManagers: Record }, pnpm: { install(packages?: string): string { - return packages ? `pnpm add ${packages}` : "pnpm install"; + return packages ? `pnpm add ${packages}` : "pnpm install --force"; }, run(script: string): string { return `pnpm ${script}`; @@ -63,7 +63,7 @@ export const packageManagers: Record }, bun: { install(packages?: string): string { - return packages ? `bun add ${packages}` : "bun install"; + return packages ? `bun add ${packages}` : "bun install --force"; }, run(script: string): string { return `bun run ${script}`;