ts-morph
28.0.0 · 12 Apr 2026MIT46.3M / weekRepositoryHomepagenpmAtom feed
9.1.0 is the newest release of 9.x.
In short
3 breaking2 new1 faster1 fixed
- Breaking
addFilesFromTsConfigis now inverted toskipAddingFilesFromTsConfig. Default behaviour is the same. - Breaking
Upgraded to TS 4.1.
- Breaking
BooleanLiteralis now a type alias ofTrueLiteralandFalseLiteral. This was done to match the same change made in the compiler API.
Release note
The section about ts-morph of a note shared by several packages.
Bug Fixes
Previously ts-morph was incorrectly resolving files based on rootDir and rootDirs, but according to the nicely updated tsconfig documentation, these options have nothing to do with file resolution (read more). If you run into any trouble, try using "include": ["./your-source-dir"] at the top level of the config file instead of "rootDir": ["./your-source-dir"] in compiler options or please open an issue.
Features
Remove
BooleanLiteraland replace withTrueLiteralandFalseLiteral.Upgrade to TS 4.1
Performance Improvements
Breaking changes
- Breaking
Upgraded to TS 4.1.
- Breaking
addFilesFromTsConfigis now inverted toskipAddingFilesFromTsConfig. Default behaviour is the same.
This was done to make the option align with the other options.
- Breaking
BooleanLiteralis now a type alias ofTrueLiteralandFalseLiteral. This was done to match the same change made in the compiler API.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.