diff --git a/src/utils/packageManager.ts b/src/utils/packageManager.ts index 284b276..174f5cc 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}`;