Supersedes #6178.
This branch keeps the exact same final content as #6178, but splits
history for reviewability:
1. `chore(companion): rename source and test files from .js to .ts`
(pure `git mv`, no content changes)
2. `feat(companion): port Companion to TypeScript` (actual
content/type/schema/build updates)
Validation note:
- Final tree is byte-for-byte identical to `ts-companion`
(`7b5b16a298690b0492de4cc4fab744f998b45570`).
---------
Co-authored-by: Mikael Finstad <finstaden@gmail.com>
* run type checks also for companion
* add docker build to PRs
* add missing checkout
* try to copy everything
* try to fix issue
* Update .github/workflows/companion.yml
* Update .dockerignore
* attempt at fixing dockerfile
that works with yarn workspaces and respects yarn.lock
* run corepack yarn
* update Dockerfile references
* remove unneccesary yarn plugin import
* Apply suggestions from code review
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>