Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions packages/prettier-plugin-java/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@
"version": "2.8.1",
"description": "Prettier Java Plugin",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"exports": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"files": [
"dist"
Expand All @@ -24,8 +34,8 @@
"test:e2e-jhipster2": "node scripts/clone-samples e2e-jhipster2 && mocha \"test/repository-test/jhipster-2-test.ts\"",
"test:all": "yarn run test && yarn run test:e2e-jhipster1 && yarn run test:e2e-jhipster2",
"clone-samples": "node scripts/clone-samples.js",
"build": "tsc",
"build:watch": "tsc --inlineSourceMap -w"
"build": "tsdown",
"build:watch": "tsdown --watch"
},
"devDependencies": {
"@chevrotain/types": "11.0.3",
Expand All @@ -36,7 +46,8 @@
"@types/node": "18.19.64",
"@types/sinon": "17.0.3",
"ts-node": "10.9.2",
"typescript": "5.6.3"
"typescript": "5.6.3",
"tsdown": "^0.19.0-beta.5"
},
"peerDependencies": {
"prettier": "^3.0.0"
Expand Down
12 changes: 12 additions & 0 deletions packages/prettier-plugin-java/tsdown.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineConfig } from 'tsdown'

export default defineConfig({
entry: 'src/index.ts',
outDir: 'dist',
format: ["esm", "cjs"],
target: 'es2020',
sourcemap: true,
clean: true,
dts: true,
noExternal: ["java-parser"],
});
Loading