(line: string)
| 58 | } |
| 59 | |
| 60 | const parseAnnotation = (line: string): string | undefined => { |
| 61 | const match = line.match(/^\/\/\s*@barrel(?:\((.+?)\))?/) |
| 62 | if (!match) { |
| 63 | return undefined |
| 64 | } |
| 65 | return match[1] ?? "*.ts" |
| 66 | } |
| 67 | |
| 68 | const extractModuleSince = (file: string, content: string): Effect.Effect<string, BarrelCodegenError> => { |
| 69 | const block = content.match(/^\s*(\/\*\*[\s\S]*?\*\/)/)?.[1] |