I added this project to a package.json, and after importing the file, my project no longer compiled because it couldn't find typescript-lib-example.
To fix it, I changed the main entry in package.json from index.js to lib/index.js, but this makes the whole point of compiling different targets pointless.
What is the appropriate mechanism to choose which output to use?