Make rake task compatible with TS 3.