Function
joinSegments
(...segments: (string | undefined)[])
Source from the content-addressed store, hash-verified
| 240 | |
| 241 | // Utility to join alias path segments (always POSIX '/') |
| 242 | const joinSegments = (...segments: (string | undefined)[]): string => |
| 243 | path.posix.join(...segments.filter((segment): segment is string => Boolean(segment && segment.length))); |
| 244 | |
| 245 | const nodes = Array.isArray(structure) ? structure : [structure]; |
| 246 | let rootPath = '@/components'; |
Tested by
no test coverage detected