@modern-js/utils
Version:
A Progressive React Framework for modern web development.
9 lines (8 loc) • 387 B
JavaScript
import "node:module";
import path from "path";
import { TS_CONFIG_FILENAME } from "./constants.mjs";
const resolveServerTsconfig = (appDirectory, configuredPath)=>{
if (configuredPath) return path.isAbsolute(configuredPath) ? configuredPath : path.resolve(appDirectory, configuredPath);
return path.resolve(appDirectory, TS_CONFIG_FILENAME);
};
export { resolveServerTsconfig };