Add internal definitions to a diffrent .d.ts files

Isn't the idea of `compileFile` to be general purpose-ish? `makeDefinitionFiles` seems very tied to these use cases