Skip to content

Commit

Permalink
fix: addresses deps installation issue with upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
dutterbutter committed May 17, 2024
1 parent dba8f0e commit 9fe16a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/packageManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface PackageManagerMethods {
export const packageManagers: Record<PackageManagerType, PackageManagerMethods> = {
npm: {
install(packages?: string): string {
return `npm install${packages ? ` ${packages}` : ""}`;
return `npm install${packages ? ` ${packages}` : ""} --force`;
},
run(script: string): string {
return `npm run ${script}`;
Expand All @@ -31,7 +31,7 @@ export const packageManagers: Record<PackageManagerType, PackageManagerMethods>
},
yarn: {
install(packages?: string): string {
return `yarn${packages ? ` add ${packages}` : ""}`;
return `yarn${packages ? ` add ${packages}` : ""} --force`;
},
run(script: string): string {
return `yarn ${script}`;
Expand All @@ -47,7 +47,7 @@ export const packageManagers: Record<PackageManagerType, PackageManagerMethods>
},
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}`;
Expand All @@ -63,7 +63,7 @@ export const packageManagers: Record<PackageManagerType, PackageManagerMethods>
},
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}`;
Expand Down

0 comments on commit 9fe16a8

Please sign in to comment.