Registry / devops / ts-analyze

ts-analyze

JSON →
library0.3.0jsnpmunverified

A CLI tool to analyze the optimal migration order from JavaScript to TypeScript in mixed JS/TS projects. v0.3.0 is the latest stable release, updated sporadically. It provides a topological sort of files based on import dependencies, identifying leaf nodes (files with no imports) as good candidates for early migration. Key differentiators: works with both JS and TS files, supports --config for TypeScript config, and includes a 'why' command to explain non-leaf status. Unlike general dependency analysis tools, it focuses specifically on migration order.

npm install ts-analyze
INSTALL
IMPORT
SIG · TS-ANALYZE
T
ts-analyze
devopsjavascriptv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Analyze migration order for JS/TS files with a TypeScript config.

npx ts-analyze --entry src/index.js --entry src/admin.ts --config tsconfig.json
Debug
Known issues
gotchaMust pass --entry or the tool will fail because no files to analyze.
fix
Provide at least one --entry argument.
affects: >=0.1.0
gotcha--config option is required if your project uses non-default TypeScript compiler options, otherwise analysis may fail to resolve modules.
fix
Ensure tsconfig.json is provided via --config.
affects: >=0.1.0
deprecatedUsing positional arguments (e.g., npx ts-analyze file.ts) is deprecated in favor of --entry.
fix
Use --entry file.ts instead.
affects: >=0.2.0
Errors
Common errors & fixes
Error: Cannot find module 'typescript'
TypeScript is not installed in the project.
fix
Run `npm install -D typescript` in your project.
Error: No entry files provided. Use --entry.
User did not specify any entry files.
fix
Add --entry path/to/file (file can be .js or .ts).
Upgrade
Version history
0.3.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
ts-analyze — npm install ts-analyze · libregistry