Packages

ts-morph

28.0.0 · 12 Apr 2026MIT46.3M / weekRepositoryHomepagenpmAtom feed

Your version

9.0.0

major21 Nov 2020Where it was published

9.1.0 is the newest release of 9.x.

In short

3 breaking2 new1 faster1 fixed

  • Breaking

    addFilesFromTsConfig is now inverted to skipAddingFilesFromTsConfig. Default behaviour is the same.

  • Breaking

    Upgraded to TS 4.1.

  • Breaking

    BooleanLiteral is now a type alias of TrueLiteral and FalseLiteral. 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 BooleanLiteral and replace with TrueLiteral and FalseLiteral.

  • Upgrade to TS 4.1

Performance Improvements

Breaking changes

  • Breaking

    Upgraded to TS 4.1.

  • Breaking

    addFilesFromTsConfig is now inverted to skipAddingFilesFromTsConfig. Default behaviour is the same.

This was done to make the option align with the other options.

  • Breaking

    BooleanLiteral is now a type alias of TrueLiteral and FalseLiteral. 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.