blob: 9aac8f35cfc5d3172c5fde87c120915be7caeeb6 [file] [log] [blame]
{"version":3,"file":"file-utils.js","sourceRoot":"","sources":["../../src/shared/file-utils.ts"],"names":[],"mappings":";;AAAA,2BAA6B;AAE7B;IAAA;IAOA,CAAC;IANiB,yBAAe,GAA7B,UAA8B,QAAgB,EAAE,QAAgB;QAC5D,IAAM,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC;YAC5C,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;YACnC,QAAQ,CAAC;QACb,OAAO,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IACxC,CAAC;IACL,gBAAC;AAAD,CAAC,AAPD,IAOC;AAPY,8BAAS","sourcesContent":["import * as path from \"path\";\n\nexport class FileUtils {\n public static getRelativePath(filename: string, basePath: string) {\n const relativePath = path.isAbsolute(filename) ?\n path.relative(basePath, filename) :\n filename;\n return path.normalize(relativePath);\n }\n}\n"]}