(localPath: string, configPath: string)
| 24 | } |
| 25 | |
| 26 | export const resolvePathRelativeToConfig = (localPath: string, configPath: string) => { |
| 27 | let absolutePath = localPath; |
| 28 | if (!path.isAbsolute(absolutePath)) { |
| 29 | if (absolutePath.startsWith('~')) { |
| 30 | absolutePath = path.join(process.env.HOME ?? '', absolutePath.slice(1)); |
| 31 | } |
| 32 | |
| 33 | absolutePath = path.resolve(path.dirname(configPath), absolutePath); |
| 34 | } |
| 35 | |
| 36 | return absolutePath; |
| 37 | } |
| 38 | |
| 39 | export const arraysEqualShallow = <T>(a?: readonly T[], b?: readonly T[]) => { |
| 40 | if (a === b) return true; |
nothing calls this directly
no outgoing calls
no test coverage detected