Skip to content

Commit 2aaced6

Browse files
lishaduckbrettz9
authored andcommitted
refactor: move to tsdown
1 parent e9b0877 commit 2aaced6

File tree

5 files changed

+808
-392
lines changed

5 files changed

+808
-392
lines changed

.npmignore

Lines changed: 0 additions & 18 deletions
This file was deleted.

package.json

Lines changed: 35 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
},
1919
"description": "JSDoc linting rules for ESLint.",
2020
"devDependencies": {
21+
"@arethetypeswrong/core": "^0.18.2",
2122
"@babel/cli": "^7.27.2",
2223
"@babel/core": "^7.27.4",
2324
"@babel/eslint-parser": "^7.27.5",
@@ -63,11 +64,12 @@
6364
"lodash.defaultsdeep": "^4.6.1",
6465
"mocha": "^11.7.0",
6566
"open-editor": "^5.1.0",
66-
"replace": "^1.2.2",
67-
"rimraf": "^6.0.1",
67+
"publint": "^0.3.12",
6868
"semantic-release": "^24.2.5",
69+
"tsdown": "^0.13.0",
6970
"typescript": "5.8.3",
70-
"typescript-eslint": "^8.34.1"
71+
"typescript-eslint": "^8.34.1",
72+
"unplugin-unused": "^0.5.1"
7173
},
7274
"engines": {
7375
"node": ">=20.11.0"
@@ -82,25 +84,42 @@
8284
"*.js": "eslint --fix"
8385
},
8486
"type": "module",
85-
"main": "./dist/index.cjs",
86-
"types": "./dist/index.d.ts",
8787
"exports": {
8888
".": {
89-
"types": "./dist/index.d.ts",
90-
"import": "./src/index.js",
91-
"require": "./dist/index.cjs"
89+
"import": {
90+
"types": "./dist/index.d.ts",
91+
"default": "./dist/index.js"
92+
},
93+
"default": {
94+
"types": "./dist/index.d.cts",
95+
"default": "./dist/index.cjs"
96+
}
9297
},
9398
"./getJsdocProcessorPlugin.js": {
94-
"types": "./dist/getJsdocProcessorPlugin.d.ts",
95-
"import": "./dist/getJsdocProcessorPlugin.cjs",
96-
"require": "./src/getJsdocProcessorPlugin.js"
99+
"import": {
100+
"types": "./dist/getJsdocProcessorPlugin.d.ts",
101+
"default": "./dist/getJsdocProcessorPlugin.js"
102+
},
103+
"default": {
104+
"types": "./dist/getJsdocProcessorPlugin.d.cts",
105+
"default": "./dist/getJsdocProcessorPlugin.cjs"
106+
}
97107
},
98108
"./iterateJsdoc.js": {
99-
"types": "./dist/iterateJsdoc.d.ts",
100-
"import": "./dist/iterateJsdoc.cjs",
101-
"require": "./src/iterateJsdoc.js"
102-
}
109+
"import": {
110+
"types": "./dist/iterateJsdoc.d.ts",
111+
"default": "./dist/iterateJsdoc.js"
112+
},
113+
"default": {
114+
"types": "./dist/iterateJsdoc.d.cts",
115+
"default": "./dist/iterateJsdoc.cjs"
116+
}
117+
},
118+
"./package.json": "./package.json"
103119
},
120+
"files": [
121+
"dist/"
122+
],
104123
"name": "eslint-plugin-jsdoc",
105124
"mocha": {
106125
"reporter": "dot",
@@ -139,8 +158,7 @@
139158
},
140159
"scripts": {
141160
"tsc": "tsc",
142-
"tsc-build": "tsc -p tsconfig-prod.json",
143-
"build": "rimraf ./dist && NODE_ENV=production babel ./src --out-file-extension .cjs --out-dir ./dist --copy-files --source-maps --ignore ./src/bin/*.js --no-copy-ignored && replace 'require\\(\"\\.(.*?)\\.[^.]*?\"\\)' 'require(\".$1.cjs\")' 'dist' -r --include=\"*.cjs\" && pnpm tsc-build",
161+
"build": "tsdown",
144162
"check-docs": "babel-node ./src/bin/generateDocs.js --check",
145163
"create-docs": "pnpm run create-options && babel-node ./src/bin/generateDocs.js",
146164
"create-rule": "babel-node ./src/bin/generateRule.js",

0 commit comments

Comments
 (0)