# justkey007/tsc-alias

Replace alias paths with relative paths after typescript compilation

Repository: https://github.com/justkey007/tsc-alias
Canonical: https://ross.abutalabs.com/products/tsc-alias
Language: TypeScript
License: MIT
License Family: permissive
Topics: typescript, paths, alias, absolute-path, relative-path, compilation, tsc
Last push: 2026-09-02T17:51:32+00:00

## Health v2 (maintenance only)
Score: 100/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 100, longevity 100
- inputs: {"age_days": 2676, "days_push": 0, "days_rel": 0, "gap_med": 14, "n_releases_24m": 12}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1138, forks 77 (observed 2026-09-03T02:15:13.913325+00:00)

## What it is
tsc-alias is an npm CLI tool and library that rewrites TypeScript path aliases to relative import paths after tsc compilation. It runs as a post-build step so compiled JavaScript output has no runtime dependency on tsconfig path mappings.

## Use cases
- replace tsconfig path aliases with relative paths after tsc build
- make compiled output work without runtime path registration
- resolve full import paths with .js extensions for ESM compatibility
- watch mode alias rewriting alongside tsc -w
- use path aliases referencing projects outside the tsconfig baseUrl
- programmatically rewrite alias paths via the replaceTscAliasPaths API

## When to choose
- you use tsc to build and rely on tsconfig paths aliases
- you want compile-time alias resolution with no runtime dependencies
- you need ESM-compatible fully resolved import extensions in output

## When to avoid
- you use a bundler like webpack, esbuild, or tsup that resolves aliases itself
- you prefer runtime path resolution via tsconfig-paths
- your project does not use TypeScript path aliases

## Facets
- artifact type: cli-tool
- maturity: active
- function: build-tool, developer-tools
- domain: developer-tools, web-development, compilers
- platform: cli, cross-platform
- tags: typescript, path-aliases, tsc, module-resolution, post-compilation, nodejs

## Member repositories
- justkey007/tsc-alias (main) score 100

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:13.913325+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:36:09.347343+00:00, confidence not recorded.
  - readme: https://github.com/justkey007/tsc-alias (fetched 2026-09-03T02:15:13.913325+00:00, sha f8002c323c16)
  - registry_npm: https://registry.npmjs.org/tsc-alias (fetched 2026-08-29T12:41:16.266475+00:00, sha a7880d46f223)
- Data as of 2026-08-30T08:39:29.467469+00:00.
