import { createRequire as _createRequire } from 'node:module';
const require = _createRequire(import.meta.url);
import {
  createPackageManager,
  getRepoType
} from "./chunk-O2MISIES.js";
import "./chunk-GWE3BRHX.js";
import {
  CliError,
  CliErrorCode,
  useAsync,
  useProjectModel
} from "./chunk-ESTYQVMX.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-5HERPY2Q.js.map