tsconfig-paths
alias-hq
tsconfig-paths | alias-hq | |
---|---|---|
5 | 3 | |
1,768 | 331 | |
0.8% | - | |
1.0 | 4.5 | |
21 days ago | 6 months ago | |
TypeScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tsconfig-paths
-
ERDIA: TypeORM entity specification documentation tool
If you've use a re-map path in your project, you have to pass it up to tsconfig-paths like this,
-
The Native Way To Configure Path Aliases in Frontend Projects
There are multiple libraries available for configuring path aliases in Node.js, such as alias-hq and tsconfig-paths. However, while looking through the Node.js documentation, I discovered a way to configure path aliases without having to rely on third-party libraries. Moreover, this approach enables the use of aliases without requiring the build step.
-
How to write path.resolve cleaner?
If you're not using webpack, you can give tsconfig-paths a try.
-
Ultimate Node.js starter that scales with DI, native TypeScript, super fast unit tests and all batteries included
Path mapping Very handy tsconfig-paths library allows to import modules from the filesystem without prefixing them with "./".
-
Use ts-node to run code across multiple monorepo packages
was just dealing with this yesterday. You need to use this package: https://github.com/dividab/tsconfig-paths
alias-hq
-
The Native Way To Configure Path Aliases in Frontend Projects
There are multiple libraries available for configuring path aliases in Node.js, such as alias-hq and tsconfig-paths. However, while looking through the Node.js documentation, I discovered a way to configure path aliases without having to rely on third-party libraries. Moreover, this approach enables the use of aliases without requiring the build step.
-
Path Aliases in TypeScript and why you should use them
You could make it work by yourself, but… instead of spending some time figuring out how to do it (feel free to do it if you want or have time for that), I recommend you to check this amazing package (Alias HQ) which is free and basically uses your tsconfig.json or jsconfig.json file to setup everything for you and make really easy to configure all those more advanced needs.
-
[AskJS] Do you use Yarn v2?
Where I personally gave up on trying to use Yarn + PnP for my team's project was folder aliases. We had a few aliases set up using https://github.com/davestewart/alias-hq , so that we could use the same aliases with Node, Jest, and Webpack. That wouldn't work as-is, because again Yarn has to have full control over all package file access, and so it needs to understand what those aliases are. I got stuck trying to figure out how to get those aliases configured with Yarn instead, and gave up on PnP at that point.
What are some alternatives?
ts-monorepo - Template for setting up a TypeScript monorepo
storybook - Storybook is a frontend workshop for building UI components and pages in isolation. Made for UI development, testing, and documentation.
tsdx - Zero-config CLI for TypeScript package development [Moved to: https://github.com/jaredpalmer/tsdx]
babel-plugin-tsconfig-paths-module-resolver - Use tsconfig-paths in any bundler that supports a custom babel config.
tsdx - Zero-config CLI for TypeScript package development
Visual Studio Code - Visual Studio Code
cli - the package manager for JavaScript
ts-monorepo-absolute-import-paths - A bare-bones Typescript/Node.js starter template with Absolute Path imports, Incremental Compilation and Live-Reloading built it.
jest - Delightful JavaScript Testing.
tsconfig-applier - Welcome to `tsconfig-applier`! This Visual Studio Code extension simplifies the process of selecting and applying TypeScript configuration files (`tsconfig.json`) from the https://github.com/tsconfig/bases repository. With this extension, you can effortlessly browse through available configuration
proposal-pkg-exports - Proposal for Bare Module Specifier Resolution in node.js