A drop-in wrapper for the TypeScript compiler (tsc) that converts relative file paths in error messages to absolute paths. Current stable version is 1.0.1, released periodically with no fixed cadence. Key differentiator: solves a long-standing TypeScript feature request without modifying the compiler itself. Useful for monorepo navigation and CI/CD error parsing. Acts as a simple regex-based log transformer, requiring TypeScript >=4.6 as a peer dependency. Ships with TypeScript types and works in any environment where tsc runs, but accuracy depends on TypeScript's logging format staying stable.
npm install tsc-absoluteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows installation, script setup, and expected output with absolute file paths in error messages.
Monitor TypeScript releases for formatting changes; pin TypeScript version if stability is critical.
Avoid filenames with spaces and brackets in project paths, or validate error output manually.
Upgrade TypeScript to >=4.6.
Use child_process.exec or similar to run tsc-absolute as a command.
Run 'npm install --save-dev typescript' to install TypeScript >=4.6.
Run 'npm install --save-dev tsc-absolute' in your project directory, then use 'npx tsc-absolute'.
Do not import tsc-absolute in code. Use it as a command-line tool via npm scripts or npx.