diff --git a/packages/java-parser/package.json b/packages/java-parser/package.json index 61cada32..2f9c3532 100644 --- a/packages/java-parser/package.json +++ b/packages/java-parser/package.json @@ -3,7 +3,12 @@ "version": "2.3.0", "description": "Java Parser in JavaScript", "type": "module", - "exports": "./src/index.js", + "exports": { + ".": { + "types": "./api.d.ts", + "default": "./src/index.js" + } + }, "repository": "https://github.com/jhipster/prettier-java/tree/main/packages/java-parser", "license": "Apache-2.0", "types": "./api.d.ts", diff --git a/packages/prettier-plugin-java/package.json b/packages/prettier-plugin-java/package.json index 2d4ea46b..42e6806a 100644 --- a/packages/prettier-plugin-java/package.json +++ b/packages/prettier-plugin-java/package.json @@ -3,7 +3,12 @@ "version": "2.6.0", "description": "Prettier Java Plugin", "type": "module", - "exports": "./dist/index.js", + "exports": { + ".": { + "types": "./src/index.d.ts", + "default": "./src/index.js" + } + }, "files": [ "dist" ],