import * as fs from "fs" import * as pathModule from "path" import { TSHost, TSProject, TSFile } from "./tsParser" import * as glob from "glob" export class TSRouteParser { constructor(seeds: string[]) { let todos: string[] = [] for (let seed of seeds) { if (pathModule.extname(seed) == ".ts") { todos.push(seed) continue } let files = glob.sync(`${seed}/**/*.ts`) todos.push(...files) } this.project = new TSProject(todos) } project: TSProject }