Skip to content

Commit

Permalink
feat: add typescript support to prettier-plugin-java
Browse files Browse the repository at this point in the history
  • Loading branch information
ntnyq authored and jtkiesel committed Oct 27, 2024
1 parent 651a115 commit 2e7a828
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/prettier-plugin-java/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import type { Plugin } from "prettier";

declare const plugin: Plugin;
export default plugin;
10 changes: 8 additions & 2 deletions packages/prettier-plugin-java/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@
"version": "2.6.5",
"description": "Prettier Java Plugin",
"type": "module",
"exports": "./dist/index.js",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./dist/index.js"
}
},
"files": [
"dist"
"dist",
"index.d.ts"
],
"homepage": "https://jhipster.github.io/prettier-java/",
"repository": "https://github.com/jhipster/prettier-java",
Expand Down

0 comments on commit 2e7a828

Please sign in to comment.