import { createRequire as _createRequire } from 'node:module';
const require = _createRequire(import.meta.url);
import {
  createPackageManager,
  getRepoType
} from "./chunk-AOJX7C6A.js";
import "./chunk-P7IRRCF7.js";
import {
  CliError,
  CliErrorCode,
  useAsync,
  useProjectModel
} from "./chunk-3MAOTBCU.js";
import {
  init_esm_shims
} from "./chunk-4EFJZ3GQ.js";

// src/components/ServeCommand/index.ts
init_esm_shims();

// src/components/ServeCommand/ServeCommandDeprecated.tsx
init_esm_shims();
var ServeCommandDeprecated = () => {
  const { model } = useProjectModel();
  useAsync(async () => {
    let packageManagerRunCmd;
    try {
      const repoType = await getRepoType(model.projectFolder);
      const packageManager = await createPackageManager(repoType);
      packageManagerRunCmd = packageManager.getRunCmd();
    } catch {
    }
    throw new CliError({
      code: CliErrorCode.ServeDeprecated({ packageManagerRunCmd }),
      cause: void 0
    });
  }, []);
  return null;
};
export {
  ServeCommandDeprecated
};
//# sourceMappingURL=ServeCommand-DELNG5X4.js.map