antlr4
antlr4 copied to clipboard
[JavaScript-runtime] Support TypeScript bundler module resolution for types
When using the published npm
package in my TypeScript project, TypeScript gave the error that it couldn't find the types.
This fix makes sure that the type field in the package.json
is not in a specific exports target, which fixes the issue. The same types are exposed for both the web and node target, so they were combined in the same field.