slevithan / xregexp

Extended JavaScript regular expressions
http://xregexp.com/
MIT License
3.31k stars 278 forks source link

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

Closed AaronBeaudoin closed 2 years ago

AaronBeaudoin commented 3 years ago

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 commented 3 years ago

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