(cwd: string)
| 141 | process.platform !== "win32" && process.platform !== "darwin" |
| 142 | |
| 143 | const findConfig = (cwd: string): string | undefined => { |
| 144 | for (let dir = cwd; ; dir = dirname(dir)) { |
| 145 | const path = join(dir, "tsconfig.json") |
| 146 | if (existsSync(path)) return path |
| 147 | if (dirname(dir) === dir) return |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | type Node = tsgoAst.Node |
| 152 | type SourceFile = tsgoAst.SourceFile |