Skip to content

Commit 58d0560

Browse files
* add rollup-plugin-esnext-to-nodenext plugin * tsconfig.lint.json was removed * v5.2.0
1 parent 2a6b490 commit 58d0560

11 files changed

+414
-381
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: CI/CD Pipeline
1+
name: 🚀 Publish to NPM
2+
23
on:
34
push:
45
tags:
@@ -58,6 +59,8 @@ jobs:
5859
runs-on: ubuntu-latest
5960
permissions:
6061
contents: write
62+
outputs:
63+
version: ${{ steps.version.outputs.version }}
6164
steps:
6265
- name: 🔄 Checkout repository
6366
uses: actions/checkout@v4

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ coverage
66
.idea
77
examples
88

9-
eslint.config.js
9+
eslint.config.ts
1010
.editorconfig
1111
.DS_Store
1212
pnpm-lock.yaml

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Jira.js changelog
22

3+
## 5.2.0
4+
5+
### Build & Distribution Improvements
6+
- Added `rollup-plugin-node-externals` to transform `ESNext` `import`/`export` syntax to `NodeNext` format
7+
- Restructured `dist` files to preserve modules
8+
9+
### Documentation Updates
10+
- Updated tree shaking description in `README.md`
11+
- Redesigned `README.md` with a new "Getting Started" section
12+
313
## 5.1.1
414

515
- Fixing CommonJS requiring. Thanks to solshark ([solshark](https://github.com/solshark)) for reporting this issue ([#381](https://github.com/MrRefactoring/jira.js/issues/381))

README.md

Lines changed: 116 additions & 245 deletions
Large diffs are not rendered by default.

eslint.config.js renamed to eslint.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export default defineConfig([
1212
{
1313
languageOptions: {
1414
parserOptions: {
15-
project: './tsconfig.lint.json',
1615
projectService: true,
1716
tsconfigRootDir: import.meta.dirname,
1817
},
@@ -57,6 +56,7 @@ export default defineConfig([
5756
'@typescript-eslint/no-unsafe-call': 'off', // todo fix it
5857
'@typescript-eslint/no-unsafe-member-access': 'off',
5958
'@typescript-eslint/prefer-optional-chain': 'error',
59+
'@stylistic/ts/object-curly-spacing': ["error", "always"]
6060
},
6161
},
6262
]);

package.json

Lines changed: 45 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,48 @@
11
{
22
"name": "jira.js",
3-
"version": "5.1.1",
3+
"version": "5.2.0",
44
"description": "A comprehensive JavaScript/TypeScript library designed for both Node.JS and browsers, facilitating seamless interaction with the Atlassian Jira API.",
55
"repository": "https://github.com/MrRefactoring/jira.js.git",
66
"homepage": "https://mrrefactoring.github.io/jira.js",
77
"author": "Vladislav Tupikin <vladislav.tupikin@icloud.com>",
88
"license": "MIT",
99
"type": "module",
10+
"types": "./dist/esm/types/index.d.ts",
11+
"module": "./dist/esm/index.mjs",
12+
"main": "./dist/cjs/index.cjs",
13+
"exports": {
14+
".": {
15+
"types": "./dist/esm/types/index.d.ts",
16+
"import": "./dist/esm/index.mjs",
17+
"require": "./dist/cjs/index.cjs"
18+
},
19+
"./*": {
20+
"types": "./dist/esm/types/*.d.ts",
21+
"import": "./dist/esm/*.mjs",
22+
"require": "./dist/cjs/*.cjs"
23+
},
24+
"./agile": {
25+
"types": "./dist/esm/types/agile/index.d.ts",
26+
"import": "./dist/esm/agile/index.mjs",
27+
"require": "./dist/cjs/agile/index.cjs"
28+
},
29+
"./version2": {
30+
"types": "./dist/esm/types/version2/index.d.ts",
31+
"import": "./dist/esm/version2/index.mjs",
32+
"require": "./dist/cjs/version2/index.cjs"
33+
},
34+
"./version3": {
35+
"types": "./dist/esm/types/version3/index.d.ts",
36+
"import": "./dist/esm/version3/index.mjs",
37+
"require": "./dist/cjs/version3/index.cjs"
38+
},
39+
"./serviceDesk": {
40+
"types": "./dist/esm/types/serviceDesk/index.d.ts",
41+
"import": "./dist/esm/serviceDesk/index.mjs",
42+
"require": "./dist/cjs/serviceDesk/index.cjs"
43+
},
44+
"./package.json": "./package.json"
45+
},
1046
"keywords": [
1147
"jira",
1248
"javascript",
@@ -31,21 +67,11 @@
3167
"axios"
3268
],
3369
"engines": {
34-
"node": ">=20.0.0"
35-
},
36-
"types": "./dist/index.d.ts",
37-
"module": "./dist/index.mjs",
38-
"main": "./dist/index.cjs",
39-
"exports": {
40-
".": {
41-
"types": "./dist/index.d.ts",
42-
"import": "./dist/index.mjs",
43-
"require": "./dist/index.cjs"
44-
}
70+
"node": ">=20"
4571
},
4672
"scripts": {
4773
"build": "pnpm run build:src && pnpm run build:tests",
48-
"build:src": "rollup -c rollup.config.ts --configPlugin typescript && ts-add-js-extension --dir=dist --showchanges=false",
74+
"build:src": "rollup -c rollup.config.ts --configPlugin typescript",
4975
"build:tests": "tsc --project tests/tsconfig.json",
5076
"prettier": "prettier --write src",
5177
"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,20 +128,22 @@
102128
"@rollup/plugin-typescript": "^12.1.2",
103129
"@stylistic/eslint-plugin-js": "^4.2.0",
104130
"@stylistic/eslint-plugin-ts": "^4.2.0",
105-
"@types/node": "^20.17.41",
131+
"@types/node": "^20.17.47",
106132
"@types/sinon": "^17.0.4",
107133
"dotenv": "^16.5.0",
108134
"eslint": "^9.26.0",
109-
"globals": "^16.0.0",
135+
"globals": "^16.1.0",
136+
"jiti": "^2.4.2",
110137
"prettier": "^3.5.3",
111138
"prettier-plugin-jsdoc": "^1.3.2",
112139
"rollup": "^4.40.2",
140+
"rollup-plugin-esnext-to-nodenext": "^1.0.0",
141+
"rollup-plugin-node-externals": "^8.0.0",
113142
"sinon": "^20.0.0",
114-
"ts-add-js-extension": "^1.6.5",
115143
"tslib": "^2.8.1",
116144
"typedoc": "^0.28.4",
117145
"typescript": "^5.8.3",
118-
"typescript-eslint": "^8.32.0",
146+
"typescript-eslint": "^8.32.1",
119147
"vitest": "^3.1.3"
120148
}
121149
}

0 commit comments

Comments
 (0)