transport.ts
This file
Path
apps/web/test/transport.ts
9 lines · 376 bytes · TypeScript
Last changed by
Merge build/comments-web-rest into mainoscabrielbefore adoption0eb1248
History of this fileTake it
Draw every list and subject from one row, one status line, one family fan and one set of fact blocksoscabrielbefore adoption886b726
lines 1–9why, one step back1const TRANSPORT =2 /from\s+["'](?:@repo\/protocol\/contracts|effect\/(?:rpc|http|reactivity)|#backend|[./]+\/(?:surfaces|client\/[^"']*|server\/[^"']*)(?:\.tsx?)?)["']/u;34export const reachingTransport = (5 sources: Readonly<Record<string, string>>6): readonly string[] =>7 Object.entries(sources).flatMap(([path, source]) =>8 TRANSPORT.test(source) ? [path] : []9 );