Taymoor
banner
taymoor.me
Taymoor
@taymoor.me
berkeley born and raised. makes buttons blue @ CiscoSecure. #FTTB 🇺🇸🇵🇰
This means that you can import (and export for libraries) alias pathed typescript source code across you’re entire project (including test files) and Node, Bun, and Deno will just execute it no problem
Bundlers will resolve paths correctly even if you’re calling them from node_modules
December 4, 2024 at 10:03 PM
And with Typescript 5.7 allowing .ts file extension in imports
You can use Node’s subpath imports to have native path aliasing using #src (# is important)
The platform will now resolve your aliased paths without the need of a tsconfig (however it’s still needed for typescript tooling like vscode)
December 4, 2024 at 10:03 PM