karma-typescript
Version:
Simplifying running unit tests with coverage for Typescript projects.
17 lines • 549 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.FileUtils = void 0;
var path = require("path");
var FileUtils = /** @class */ (function () {
function FileUtils() {
}
FileUtils.getRelativePath = function (filename, basePath) {
var relativePath = path.isAbsolute(filename) ?
path.relative(basePath, filename) :
filename;
return path.normalize(relativePath);
};
return FileUtils;
}());
exports.FileUtils = FileUtils;
//# sourceMappingURL=file-utils.js.map
;