Files
meteor/lib/util/internal/getRelativePath.js
Dominik Ferber 650d61efd7 refactor(internal): Detect project based on filename instead of process.cwd
Detection of the Meteor project through process.cwd() fails when used in Atom Editor. Use filename i
2015-10-04 19:41:47 +02:00

7 lines
189 B
JavaScript

import stripPathPrefix from './stripPathPrefix'
var getRootPath = require('./getRootPath')
export default function (filename) {
return stripPathPrefix(getRootPath(filename), filename)
}