typescript-transform-paths
typescript-transform-paths copied to clipboard
Transforms module resolution paths using TypeScript path mapping and/or custom paths
`import debugCommon from "debug/src/common"; ` Resolves to: `debug`
Currently the best way I know how but happy to simplify: https://github.com/jasonkuhrt/template-typescript-lib/blob/main/jest.config.ts
V4
Lots coming... Work in progress! Will post details later. ## Note To Self - Squash as single commit and manually fill in changelog - Will need to implement major changes...
Hello, Example: this (transpiled) code loads the index.js file ``` import { some_function } from '../siblingdir'; // there is an index.js in the "siblingdir" ``` If i try to use...
Hi, and thanks for your `typescript-transform-paths` plugin, it's really helpful in a monorepo context to resolve imports specified as `import Something from '@namespace/some/path/Something'` while compiling. However, it would be even...
When run without `--transpileOnly`, `ts-node` passes a program instance whose `compilerOptions` has been stripped of paths config. This is causing it to fail to transform paths under these conditions.
High level: Add ability to intercept module resolution and allow custom resolution via middleware. _Note: This is coming in v4!_
Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
### Reproduce repo https://github.com/zongc1001/exposes-dts-poc.git - tsconfig.json: ```json { ..., "compilerOptions": { ..., "baseUrl": ".", "paths": { "@monospace/openapp": ["packages/openapp"], "@monospace/openapp/*": ["packages/openapp/*"], "@monospace/*": ["packages/*"], }, "plugins": [ { "transform": "typescript-transform-paths", "afterDeclarations": true,...
If I try to run a project using `ts-node`, and the entry file the ts-node command points to is in a different directory from your current working directory, then the...