ModulePathResolver.js 229 B

12345678910111213
  1. import * as path from 'path';
  2. import * as appRoot from 'app-root-path';
  3. /**
  4. * Resolve path tools
  5. */
  6. export class ModulePathResolver {
  7. relativeFromRoot(modulePath) {
  8. return path.relative(appRoot.path, modulePath)
  9. }
  10. }