refscript emit JSON from .d.ts files