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
12345678910const TRANSPORT = /from\s+["'](?:@repo\/protocol\/contracts|effect\/(?:rpc|http|reactivity)|#backend|[./]+\/(?:surfaces|client\/[^"']*|server\/[^"']*)(?:\.tsx?)?)["']/u;
export const reachingTransport = ( sources: Readonly<Record<string, string>>): readonly string[] => Object.entries(sources).flatMap(([path, source]) => TRANSPORT.test(source) ? [path] : [] );