# @flatjs/forge-plugin-ts-paths

> faltjs plugin to automatically resolve path aliases set in the compilerOptions section of tsconfig.json. Don't use it if you're already using rollup-plugin-typescript. This plugin is only for use cases where your TypeScript code has already been transpile

Latest version **2.3.0** (published 2026-08-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @flatjs/forge-plugin-ts-paths
pnpm add @flatjs/forge-plugin-ts-paths
yarn add @flatjs/forge-plugin-ts-paths
bun add @flatjs/forge-plugin-ts-paths
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.3.0 |
| Published | 2026-08-18 |
| First published | 2023-05-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=18.0.0 |
| Dependencies | 2 |
| Unpacked size | 16.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | tcsk2026, tianyingchun, shunqwang |

## Links

- npm: https://www.npmjs.com/package/@flatjs/forge-plugin-ts-paths
- npm.io page: https://npm.io/package/@flatjs/forge-plugin-ts-paths

## Dependencies (2)

- [@flatjs/common](https://npm.io/package/@flatjs/common.md) 2.3.0
- [@flatjs/forge-less-plugin-import-alias](https://npm.io/package/@flatjs/forge-less-plugin-import-alias.md) 2.3.0

## Recent versions

- 2.3.0 (latest) — 2026-08-18
- 2.3.0-next.0 (next) — 2026-08-03
- 2.2.5 — 2025-10-15
- 2.2.4 — 2025-07-03
- 2.2.4-next.1 — 2025-06-10
- 2.2.4-next.0 — 2025-05-13
- 2.2.3 — 2025-04-22
- 2.2.2 — 2025-03-31
- 2.2.1 — 2025-03-24
- 2.2.1-next.0 — 2025-03-14
- 2.2.0 — 2025-02-25
- 2.2.0-next.1 — 2025-02-10
- 2.2.0-next.0 — 2024-12-24
- 2.1.6 — 2024-12-09
- 2.1.5 — 2024-11-20
- … 70 more at https://npm.io/package/@flatjs/forge-plugin-ts-paths/versions

## README

# @flatjs/forge-plugin-ts-paths

faltjs plugin to automatically resolve path aliases set in the compilerOptions section of tsconfig.json.
Don't use it if you're already using rollup-plugin-typescript. This plugin is only for use cases where your TypeScript code has already been transpiled before rollup runs.

```json
// tsconfig.json
{
  "compilerOptions": {
    // ...
    "paths": {
      "@utils": ["src/helpers/utils"]
    }
  }
}
```

```ts
import { something } from '@utils';
```

Then this plugin will make sure that rollup knows how to resolve @utils.

## Notes

`typescript` is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

`import ts from 'typescript`;`

---
_Source: https://npm.io/package/@flatjs/forge-plugin-ts-paths · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
