def brew(args, source, cwd=None, callback=None):
    tempTSFile = path.join(tempfile.gettempdir(), "temp.ts")
    with open(tempTSFile, 'w') as f:
        f.write(source)
    res = run("tsc", [tempTSFile])
    res["out"] = open(path.join(tempfile.gettempdir(), 'temp.js')).read()
    return res
Compile command
dataset/ETHPy150Open lavrton/sublime-better-typescript/TypeScript.py/brew