stateful / runme

DevOps Workflows Built with Markdown
https://runme.dev
Apache License 2.0
901 stars 30 forks source link

Some languages require a specific file extension (e.g. typescript + tsc) #600

Closed sourishkrout closed 4 weeks ago

sourishkrout commented 4 weeks ago

For reasons I didn't further research the Typescript Compiler requires temp-filenames to end with .ts*. Otherwise it will not treat the contents as Typescript.

Example of error: https://gist.github.com/sourishkrout/4c497f62636d390ca3ad4aa7e1dac0f3#file-ts-01hzfc6yz1sc34rzfmd7xw3k99-md

In runner v1 this is being handled here: https://github.com/stateful/runme/blob/699148d37b82344397883fdd23936c6a34d5f83d/internal/runner/command.go#L213-L215