You can find the code of this tutorial here, and follow the guide, step by step, in this PR. You can take a look at a demo here. and inside of all of these folders, create an index.ts file. Inside of every index.ts file, we are going to export the contained subfolders.
Full article