Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using tslab as interactive documentation with turborepo #question #73

Open
alfonsodev opened this issue Oct 8, 2022 · 0 comments
Open

Comments

@alfonsodev
Copy link

Hi thanks to all contributors for creating this.

I'm trying to add tslab as a way to have interactive documentation for libraries inside our monorepo.
I'm using turborepo with a strcuture like

apps/
  docs/
     test.ipynb
  
 lib/
    shared/
      src/
        Command.ts
        index.ts

then when I'm importing code from our shared library it is found but to transpiled,

Screenshot 2022-10-08 at 17 28 43

this is somewhat expected, as similarly when importing libraries in a nextjs project you need to add

const withTM = require('next-transpile-modules')(['@codefulness/shared']);

to have it working properly.

I guess my question is, is it posible to do something similar in tslab environment, as it seems it can resolve properly the library folder, but I'm guessing is expecting to be already javascript ?

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant