UNPKG

prisma-util

Version:

Prisma Util is an easy to use tool that merges multiple Prisma schema files, allows extending of models, resolves naming conflicts both manually and automatically and provides easy access to Prisma commands and timing reports. It's mostly a plug-and-play

11 lines (10 loc) 292 B
import fs from "fs"; import path from "path"; export function getRealDirectory() { const resolvedDir = path.resolve('.'); const realDir = fs.realpathSync.native(resolvedDir); return realDir; } export function convertPathToLocal(p) { return path.join(getRealDirectory(), p); }