The important thing here is to include the typescript source code inside the library, and also configuring launch.json to resolve source maps location correctly
Here i have a video explaining the changes and debugging typescript code inside node_modules