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

Fix unresolved types #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix unresolved types #20

wants to merge 2 commits into from

Conversation

timjam
Copy link

@timjam timjam commented Nov 17, 2022

Since this package seems to be deployed from the dist folder I moved the types to the "root" being the root of dist. This is because when the package is installed on other projects it seems that TypeScript cannot find the types from the types subfolder. Also added a little note for other users to change their tsconfig module resolution to node. Otherwise the types are not found.

If this gets merged, it might be good idea to create a whole new release, so that the release tags on github align with the release numbers on npm

Timo Mätäsaho added 2 commits November 17, 2022 20:59
Removing types subfolder and moving the types right to the root
next to the index.js. This is because it seems that TypeScript
cannot resolve the types unless they are right at the root when
the published package is included as a dependency in another
project
@TobiTenno
Copy link

@bhoriuchi this would be fantastic to have working

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

Successfully merging this pull request may close these issues.

2 participants