how to run one file of typescript in a npm script code example Example: how to run typescript file npx ts-node src/foo.ts