The present invention provides compounds useful as inhibitors of Tec family kinases, compositions thereof, and methods of using the same.