// src/actions/package/compile/getCompilerOptions.ts
import { cwd } from "node:process";
import deepmerge from "deepmerge";
import { getTsconfig } from "get-tsconfig";
var getCompilerOptions = (options = {}, fileName = "tsconfig.json") => {
  const resolvedTsConfigCompilerOptions = getTsconfig(cwd(), fileName)?.config?.compilerOptions ?? {};
  return deepmerge(resolvedTsConfigCompilerOptions, options);
};
export {
  getCompilerOptions
};
//# sourceMappingURL=getCompilerOptions.mjs.map
