I write my typescript code in an ecosystem-independent way. I decided to include file extensions in imports, matching the web and Deno.
import xyz from "./foo.ts";
How can I get the typescript compiler (tsc) to compile these files without the following error:
error TS2691: An import path cannot end with a '.ts' extension.
I am so far tried the following in my tsconfig.json to no avail:
{
"compilerOptions": {
"paths": {
"*.js": ["*"],
"*.ts": ["*"]
},
...
},
...
}