@modern-js/utils
Version:
A Progressive React Framework for modern web development.
8 lines (7 loc) • 365 B
JavaScript
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 };