antlr4 icon indicating copy to clipboard operation
antlr4 copied to clipboard

[JavaScript-runtime] Support TypeScript bundler module resolution for types

Open guidsdo opened this issue 8 months ago • 0 comments

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.

guidsdo avatar Jun 21 '24 14:06 guidsdo