import path from 'path'; export const getPathOnSrc = (...paths: string[]) => { return path.resolve(__dirname, '..', ...paths); }; export const getPathOnCWD = (...paths: string[]) => { return path.resolve(process.cwd(), ...paths); }; export const removeCWDPath = (string: string) => { const replaced = string.replace(process.cwd(), ''); if (replaced[0] === '/') return replaced.substring(1); return replaced; };