Skip to content

#383 ESM fix #384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2025
Merged
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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
## 5.1.1

- Fixing CommonJS requiring. Thanks to solshark ([solshark](https://github.com/solshark)) for reporting this issue ([#381](https://github.com/MrRefactoring/jira.js/issues/381))
- 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))
---
- **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.**

## 5.1.0

Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
},
"scripts": {
"build": "pnpm run build:src && pnpm run build:tests",
"build:src": "rollup -c rollup.config.ts --configPlugin typescript",
"build:src": "rollup -c rollup.config.ts --configPlugin typescript && ts-add-js-extension --dir=dist --showchanges=false",
"build:tests": "tsc --project tests/tsconfig.json",
"prettier": "prettier --write src",
"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",
Expand Down Expand Up @@ -102,15 +102,16 @@
"@rollup/plugin-typescript": "^12.1.2",
"@stylistic/eslint-plugin-js": "^4.2.0",
"@stylistic/eslint-plugin-ts": "^4.2.0",
"@types/node": "^20.17.32",
"@types/node": "^20.17.41",
"@types/sinon": "^17.0.4",
"dotenv": "^16.5.0",
"eslint": "^9.26.0",
"globals": "^16.0.0",
"prettier": "^3.5.3",
"prettier-plugin-jsdoc": "^1.3.2",
"rollup": "^4.40.1",
"rollup": "^4.40.2",
"sinon": "^20.0.0",
"ts-add-js-extension": "^1.6.5",
"tslib": "^2.8.1",
"typedoc": "^0.28.4",
"typescript": "^5.8.3",
Expand Down
Loading
Loading