Skip to content

Commit

Permalink
Merge pull request jhipster#664 from jhipster/add-exports
Browse files Browse the repository at this point in the history
add exports to package.json
  • Loading branch information
DanielFran authored Apr 25, 2024
2 parents 95b1b36 + b1fab1e commit 3bdd7f8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion packages/java-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 6 additions & 1 deletion packages/prettier-plugin-java/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
],
Expand Down

0 comments on commit 3bdd7f8

Please sign in to comment.