Hi, I created my own solution for using TypeScript with PlayCanvas. I am actively using it for ten months or so now, and decided to share.
Github repo: matgawin/playcanvas-typescript-template
Example: TestTypescript
It compiles and bundles all scripts using Browserify and gulp.js.
It uses playcanvas-sync to automatically synchronize with your project, but it also uses dotenv, so there is no need to copy any files anywhere, just copy your API key and project_id to .env.
Not only that, but it also uses decorators to simplify creating scripts. This solution was inspired by: Ciberusps - playcanvas-typescript-example.
I also created some quality of life scripts for automatic branch id checking, downloading builds, and starting local server with said build.
Just follow the steps in readme file.
In my own setup, I also use my own fork of playcanvas-sync that allows to skip branch check, so it works inside CI. I would recommend doing the same.
I hope it helps.