use with ts-node
See original GitHub issuehow to configure tsc-alias
to be used with ts-node
?
you may need to implement a register
node --experimental-modules --experimental-specifier-resolution=node -r tsc-alias/register --loader ts-node/esm ./tasks/index.ts
tsconfig-paths
and module-alias
don’t work with module projects. i.e if you set type: module
in your package .json
minimal repo
run npm run start:paths
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
ts-node - npm
ts -node is a TypeScript execution engine and REPL for Node.js. It JIT transforms TypeScript into JavaScript, enabling you to directly execute ...
Read more >How To Run TypeScript Scripts with ts-node - DigitalOcean
In this article you will learn how to run TypeScript scripts without the hassle of manually transpiling.
Read more >Getting Started with Executing TypeScript files in ts-node
Executing TypeScript Files · 1. Create a new JavaScript file called main. · 2. Next, run the node command below to execute the...
Read more >Configuration | ts-node - TypeStrong · GitHub
Configuration. ts-node supports a variety of options which can be specified via tsconfig.json , as CLI flags, as environment variables, or programmatically.
Read more >How to use TypeScript with Node.js - Section.io
Using Typescript with packages · Import the package. When using Node. · Initialize Express inside Typescript. · Set the server port. · Set...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ecker00 tsc-alias was never designed for runtime use.
that’s why I want to depend on it on both compile-time (as it) and runtime (as suggested in this issue)