{"version":3,"sources":["../../../packages/tools/wac-cli/src/angular15/utils/relative-path.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAEpE","file":"relative-path.d.ts","sourcesContent":["import * as path from 'path';\r\n\r\n/**\r\n * Gets the relative path from A to B.\r\n * Usage:\r\n * const sourcePath = '/home/user/documents/projectA/';\r\n * const targetPath = '/home/user/images/';\r\n * const relativePath = getRelativePath(sourcePath, targetPath);\r\n * @param pathA path to A\r\n * @param pathB path to B\r\n * @returns \r\n */\r\nexport function getRelativePath(pathA: string, pathB: string): string {\r\n    return path.relative(pathA, pathB).replaceAll('\\\\', '\\/').replace('..\\/', '');\r\n}\r\n"]}