We have a growing nodejs/typescript project with some local node modules that we include by relative path. This is painful and breaks when we use newer versions of npm so we are looking for a solution for code reuse. Bit looks fascinating, but I’m having trouble sharing a trivial typescript module.
When we do bit add do you specify the TS or the JS file as main? I specify the main entry point in my package.json - why wouldn’t bit look in there?
How does the “typescript” compiler extension work? It seems to find no work to do with my simple module even when i delete the JS file. Do i need to alter my source code to export/share with bit?
Most examples I see on your website describe React components and I don’t use those.
The promise of this approach is clear, but getting started with my non-React scenario is tripping me up.
Any help/advice appreciated.