Backports the following commits to 7.x: - [ts] add script to verify that all ts is in a project (#32727)