import { createRequire as _createRequire } from 'node:module';
const require = _createRequire(import.meta.url);
import {
  getExtensionDir
} from "./chunk-RDF2RA4E.js";
import {
  init_esm_shims
} from "./chunk-EXLZF52D.js";

// ../cli-astro-definitions/src/site-extensions.ts
init_esm_shims();
import { join } from "node:path";
function getSiteWidgetExtensionsDir(projectFolder) {
  return join(getExtensionDir(projectFolder), "site", "widgets");
}
function getSiteWidgetExtensionPath(projectFolder, extensionPath) {
  return join(getSiteWidgetExtensionsDir(projectFolder), extensionPath);
}
function getSitePluginExtensionsDir(projectFolder) {
  return join(getExtensionDir(projectFolder), "site", "plugins");
}
function getSitePluginExtensionPath(projectFolder, extensionPath) {
  return join(getSitePluginExtensionsDir(projectFolder), extensionPath);
}
function getEmbeddedScriptExtensionsDir(projectFolder) {
  return join(getExtensionDir(projectFolder), "site", "embedded-scripts");
}
function getEmbeddedScriptExtensionPath(projectFolder, extensionPath) {
  return join(getEmbeddedScriptExtensionsDir(projectFolder), extensionPath);
}
function getEditorReactComponentExtensionsDir(projectFolder) {
  return join(getExtensionDir(projectFolder), "site", "components");
}
function getEditorReactComponentExtensionPath(projectFolder, extensionPath) {
  return join(
    getEditorReactComponentExtensionsDir(projectFolder),
    extensionPath
  );
}

export {
  getSiteWidgetExtensionsDir,
  getSiteWidgetExtensionPath,
  getSitePluginExtensionsDir,
  getSitePluginExtensionPath,
  getEmbeddedScriptExtensionsDir,
  getEmbeddedScriptExtensionPath,
  getEditorReactComponentExtensionsDir,
  getEditorReactComponentExtensionPath
};
//# sourceMappingURL=chunk-2ABOQGMV.js.map