TypeScript Transpile Only CLI

0.0.4 · maintenance · verified Wed Apr 22

typescript-transpile-only (version 0.0.4) is a command-line interface utility that wraps the TypeScript compiler (`tsc`) to perform transpilation without type checking. Its primary purpose is to allow developers to convert TypeScript code into JavaScript, enforcing only syntax correctness while ignoring semantic (type) errors. This tool is particularly useful for projects undergoing a gradual migration from JavaScript to TypeScript, or for teams where immediate resolution of all type errors is not feasible or desired, enabling a softer transition. The package's author notes it was a "1 hour hack," indicating a minimal development effort and implying an irregular or non-existent release cadence. Its key differentiator is this focused `transpile-only` behavior without the complexities or overhead of full `tsc` type-checking, enabling a softer transition path for projects with existing type errors.

Common errors

Warnings

Install

Quickstart

Demonstrates installation and basic usage, showing how to invoke the CLI for a project.

npm install typescript-transpile-only
npm install typescript

# Run the transpile-only compiler on your project
tsc-transpile-only --project .

# Example: Transpile a single file
# tsc-transpile-only my-file.ts --outDir dist

# Example: To replicate a --build like behavior for multiple projects
# tsc-transpile-only --project ./packages/my-lib
# tsc-transpile-only --project ./packages/my-app

view raw JSON →