-
Notifications
You must be signed in to change notification settings - Fork 2
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
Cannot generate definitions when using @neutrinojs/react-components #8
Comments
hmm, seems that |
Found the problem; turns out that I'll add something in to detect if the given entry point is a directory, and if so, append |
I have put in a fix for this (released as version 1.1.6) but note that you may encounter further problems due to #6 - TypeScript doesn't natively support renaming/moving output relative to the source files. Specifically, I see that if there is only one component, it will now generate There are a few relevant issues raised with TypeScript directly if you're interested:
Give the latest version a try (and test that the definitions it generates actually work for your use-case) and let me know if you still have problems. |
Thanks for your work! It works great in my project!! |
Here is my config, but I can't find .d.ts in build directory
The text was updated successfully, but these errors were encountered: