justkey007/tsc-alias
Replace alias paths with relative paths after typescript compilation observed · 2026-09-03
Health v2 · maintenance only
100/100
- Activity 100
- Release rhythm 100
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 14
- age_days: 2676
- days_rel: 0
- days_push: 0
- n_releases_24m: 12
Adoption not part of the score
1138 stars · 77 forks observed · 2026-09-03
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
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
cli-tool · maturity active
build-tool developer-tools developer-tools web-development compilers cli cross-platform typescript path-aliases tsc module-resolution post-compilation nodejs
2 sources
- readme: https://github.com/justkey007/tsc-alias · fetched 2026-09-03 · f8002c323c16
- registry_npm: https://registry.npmjs.org/tsc-alias · fetched 2026-08-29 · a7880d46f223
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| justkey007/tsc-alias | main | 100 |
For agents
markdown · JSON · MCP: product_card(name="justkey007/tsc-alias")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem