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

Change "types" to "types/index.d.ts" in package.json #324

Closed
AaronBeaudoin opened this issue Mar 15, 2021 · 1 comment · Fixed by #339
Closed

Change "types" to "types/index.d.ts" in package.json #324

AaronBeaudoin opened this issue Mar 15, 2021 · 1 comment · Fixed by #339

Comments

@AaronBeaudoin
Copy link
Contributor

Basically, the line in package.json where the types path is specified does not align with TypeScript's official documentation for publishing because it points to a directory and not a file. This cases VS Code to display the following error in the standard jsconfig.json file at the root of a project's directory:

image

See this StackOverflow thread for more information.

@josephfrazier
Copy link
Collaborator

josephfrazier commented Mar 15, 2021

Thanks for the report, @AaronBeaudoin, and for linking the stackoverflow thread! Would you mind opening a PR with the desired change?

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 a pull request may close this issue.

2 participants