Add support for .cjs and .cts files in codegen cli (#2438)
Add support for .cjs and .cts files in codegen cli (#2438)

Co-authored-by: Ludvig Svedberg <820325a981b8f77bf27b2dc12f73f0f9deb86559@mikrodust.com>
reduxjs/redux-toolkit,reduxjs/redux-toolkit