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.
npm install typescript-transpile-onlyNo compatibility data collected yet for this library.
Demonstrates installation and basic usage, showing how to invoke the CLI for a project.
Evaluate this tool's suitability for your specific use case. For robust production transpilation, consider `tsc` with `noEmitOnError: false` and `isolatedModules: true` or a build tool like Babel with `@babel/preset-typescript` if type-checking is handled separately.
For `--build`, manually invoke `tsc-transpile-only` multiple times for individual projects or use a custom script. Other unsupported flags have no direct workaround within this specific tool.
Adjust any scripts or CI/CD pipelines that rely on specific `tsc` exit codes to handle a generic failure code of 1 from `tsc-transpile-only`.
Consult the `typescript-transpile-only` documentation for supported flags. For `--build`, you will need to invoke `tsc-transpile-only` for each project directory individually.
Install `typescript` in your project: `npm install typescript`.
Modify your shell scripts or CI/CD configurations to check for a generic exit code of 1 for any failure, rather than relying on specific `tsc` error codes.