Skip to content

Commit 3436fb7

Browse files
committed
#383 esm fix
1 parent 34c34d0 commit 3436fb7

File tree

3 files changed

+138
-123
lines changed

3 files changed

+138
-123
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
## 5.1.1
44

55
- Fixing CommonJS requiring. Thanks to solshark ([solshark](https://github.com/solshark)) for reporting this issue ([#381](https://github.com/MrRefactoring/jira.js/issues/381))
6+
- Fixing ESM imports in TypeScript declarations. Thanks to Alex Grand ([Arilas](https://github.com/Arilas)) for reporting this issue ([#383](https://github.com/MrRefactoring/jira.js/issues/383))
7+
---
8+
- **Special thanks to [GervinFung](https://github.com/GervinFung) for the npm package [`ts-add-js-extension`](https://github.com/GervinFung/ts-add-js-extension), which helps resolve TypeScript ESM import paths.**
69

710
## 5.1.0
811

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
},
4646
"scripts": {
4747
"build": "pnpm run build:src && pnpm run build:tests",
48-
"build:src": "rollup -c rollup.config.ts --configPlugin typescript",
48+
"build:src": "rollup -c rollup.config.ts --configPlugin typescript && ts-add-js-extension --dir=dist --showchanges=false",
4949
"build:tests": "tsc --project tests/tsconfig.json",
5050
"prettier": "prettier --write src",
5151
"lint": "pnpm run lint:tests && pnpm run lint:src:agile && pnpm run lint:src:clients && pnpm run lint:src:services && pnpm run lint:src:version2 && pnpm run lint:src:version3 && pnpm run lint:src:files",
@@ -102,15 +102,16 @@
102102
"@rollup/plugin-typescript": "^12.1.2",
103103
"@stylistic/eslint-plugin-js": "^4.2.0",
104104
"@stylistic/eslint-plugin-ts": "^4.2.0",
105-
"@types/node": "^20.17.32",
105+
"@types/node": "^20.17.41",
106106
"@types/sinon": "^17.0.4",
107107
"dotenv": "^16.5.0",
108108
"eslint": "^9.26.0",
109109
"globals": "^16.0.0",
110110
"prettier": "^3.5.3",
111111
"prettier-plugin-jsdoc": "^1.3.2",
112-
"rollup": "^4.40.1",
112+
"rollup": "^4.40.2",
113113
"sinon": "^20.0.0",
114+
"ts-add-js-extension": "^1.6.5",
114115
"tslib": "^2.8.1",
115116
"typedoc": "^0.28.4",
116117
"typescript": "^5.8.3",

0 commit comments

Comments
 (0)