@zenstackhq/cli 3.0.0-beta.32 → 3.0.0-beta.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,9 +23,9 @@ export async function run(projectPath: string) {
23
23
  console.log(colors.gray(`Using package manager: ${pm.agent}`));
24
24
 
25
25
  for (const pkg of packages) {
26
- const resolved = resolveCommand(pm.agent, 'install', [
26
+ const resolved = resolveCommand(pm.agent, 'add', [
27
27
  pkg.name,
28
- ...(pkg.dev ? [pm.agent === 'yarn' ? '--dev' : '--save-dev'] : []),
28
+ ...(pkg.dev ? [pm.agent.startsWith('yarn') || pm.agent === 'bun' ? '--dev' : '--save-dev'] : []),
29
29
  ]);
30
30
  if (!resolved) {
31
31
  throw new CliError(`Unable to determine how to install package "${pkg.name}". Please install it manually.`);