-
Notifications
You must be signed in to change notification settings - Fork 5
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
Include example with TS 5.0 --moduleResolution bundler
#8
Comments
Hi Bruno, This repo was intended to show examples for how libraries, who publish JS files to npm, can support users who use a variety of (maybe incorrect) |
Thanks for your answer. I don't know if it answer my question; I might have to re-read a few times 😅! Basically, what I was looking for is to create TS packages (in the sens of no JS files) to publish in a private (localhost in fact) repository to reuse around in my own projects. Obviously my other projects are also TS projects and down the chain one will be responsible to do the build (bundle, compile, transpile, or whatever that project needs). I was hoping that my project doing the build could use the TS file from the Maybe I am overthinking it. Maybe the docs aren't clear on the use case for For the moment, I only got a re-use inside a monorepo working using both I'll close this since the goal of the repository was not really what I was asking. Footnotes
|
You can just point your package.json
When this happens, it means either your own tsconfig is wrong, or the package you’re consuming has typing/package.json problems. This is why I made https://arethetypeswrong.github.io. Next time you hit a problem like that, I’d encourage you to run it, and file an issue with the library if it shows configuration issues.
I’m working on them; see microsoft/TypeScript#52593 for tracking and https://gist.github.com/andrewbranch/79f872a8b9f0507c9c5f2641cfb3efa6 for the in-progress draft. |
Thank you very much for this information. It will be greatly helpful! |
Hello,
With the arrival of TS 5.0 option
--moduleResolution bundler
, could you add an example using this value? I am mainly confused on what to put inpackage.json
fieldmain
and equivalentexports
since we are not producing.js
files?Regards,
Bruno
The text was updated successfully, but these errors were encountered: