A developer tool to calculate the percentage of TypeScript vs. JavaScript files and lines in a codebase, helping track migration progress from JavaScript to TypeScript. Version 1.0.5 is current. It scans the project using glob patterns, logs files per type, and generates a terminal table and optional JSON report. Unlike generic code counters, it specifically focuses on TypeScript migration metrics with test file separation and CI-friendly output. The library ships TypeScript types, supports ESM via programmatic API, and requires a tsreport.config.js configuration file. Release cadence is low with no recent updates.
npm install typescript-migration-reportNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install and configure typescript-migration-report with a config file, then run it via npm script to get migration stats.
Rename config file to 'tsreport.config.js' in the project root.
Use module.exports in tsreport.config.js instead of export default.
Test glob patterns using the glob package directly before running the tool.
Set rootDir to a resolved absolute path (e.g., using path.resolve('.')) to avoid ambiguity.Run `npm install typescript-migration-report --save-dev`
Create a tsreport.config.js file in the project root with appropriate configuration.
Ensure tsreport.config.js exports an object with a patterns property containing at least 'typescript' and 'javascript' glob strings.
Verify rootDir points to project root and patterns like '**/*.{ts,tsx}' are correct for your directory structure.