suXinjke / cruncheevos

Set of tools to deal with RetroAchievements achievement sets using JavaScript
MIT License
2 stars 0 forks source link

Running CLI with TypeScript files #4

Open suXinjke opened 3 months ago

suXinjke commented 3 months ago

Some people may prefer to use TypeScript for the work and I'd prefer that too, but I personally don't like having a build step.

First of all one should investigate if bun works with the CLI and maybe it can deal with dynamic imports of TypeScript files out of box. If that's the case - report about it here, then docs should tell about it.

Node.js wise, no exact idea how it's gonna be implemented yet. If there's a way to magically register some ts-loader that can be activated at runtime and actually work in CLI context - that would be perfect.

Less perfect is emitting files stripped of TypeScript to temporary directory, very important that only relevant files are emitted, meaning CLI would have to check the import graph.