iTonyYo/gitin

View on GitHub
src/utilities/resolvePath.js

Summary

Maintainability
A
0 mins
Test Coverage
import { realpathSync } from 'fs';
import { resolve } from 'path';

const resolvePath = (relativePath, base) => resolve(
  realpathSync(base),
  relativePath,
);

export default resolvePath;