Install ts-node
with Node.js v13+ then you can run:
./node_modules/.bin/ts-node -O '{"module":"commonjs"}' list-exports.ts <files...>
The -O '{"module":"commonjs"}'
part is to allow using import
& export
statements: TypeStrong/ts-node#922 (comment)