Skip to content

Commit a83fa78

Browse files
committed
add rollup-plugin-esnext-to-nodenext plugin
1 parent 2a6b490 commit a83fa78

File tree

9 files changed

+109
-79
lines changed

9 files changed

+109
-79
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ jobs:
5858
runs-on: ubuntu-latest
5959
permissions:
6060
contents: write
61+
outputs:
62+
version: ${{ steps.version.outputs.version }}
6163
steps:
6264
- name: 🔄 Checkout repository
6365
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

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<div align="center">
22
<img alt="Jira.js logo" src="https://bad37fb3-cb50-4e0b-9035-a3e09e8afb3b.selstorage.ru/jira.js%2Flogo.svg"/>
33

4-
<a href="https://www.npmjs.com/package/jira.js"><img alt="NPM version" src="https://img.shields.io/npm/v/jira.js.svg?maxAge=3600&style=flat-square" /></a>
5-
<a href="https://www.npmjs.com/package/jira.js"><img alt="NPM downloads per month" src="https://img.shields.io/npm/dm/jira.js.svg?maxAge=3600&style=flat-square" /></a>
6-
<a href="https://github.com/MrRefactoring/jira.js"><img alt="build status" src="https://img.shields.io/github/actions/workflow/status/mrrefactoring/jira.js/.github/workflows/ci.yaml?branch=master&style=flat-square"></a>
7-
<a href="https://github.com/mrrefactoring/jira.js/blob/develop/LICENSE"><img alt="license" src="https://img.shields.io/github/license/mrrefactoring/jira.js?color=green&style=flat-square"/></a>
4+
<a href="https://www.npmjs.com/package/jira.js" target="_blank" rel="noopener noreferrer"><img alt="NPM version" src="https://img.shields.io/npm/v/jira.js.svg?maxAge=3600&style=flat-square" /></a>
5+
<a href="https://www.npmjs.com/package/jira.js" target="_blank" rel="noopener noreferrer"><img alt="NPM downloads per month" src="https://img.shields.io/npm/dm/jira.js.svg?maxAge=3600&style=flat-square" /></a>
6+
<a href="https://github.com/MrRefactoring/jira.js" target="_blank" rel="noopener noreferrer"><img alt="build status" src="https://img.shields.io/github/actions/workflow/status/mrrefactoring/jira.js/.github/workflows/ci.yaml?branch=master&style=flat-square"></a>
7+
<a href="https://github.com/mrrefactoring/jira.js/blob/develop/LICENSE" target="_blank" rel="noopener noreferrer"><img alt="license" src="https://img.shields.io/github/license/mrrefactoring/jira.js?color=green&style=flat-square"/></a>
88

99
<span>JavaScript / TypeScript library for Node.JS and browsers to easily interact with Atlassian Jira API</span>
1010
</div>
@@ -57,7 +57,7 @@ There are several types of authentication to gain access to the Jira API. Let's
5757

5858
##### Email and API Token
5959

60-
To create an API Token, use this link: [https://id.atlassian.com/manage-profile/security/api-tokens](https://id.atlassian.com/manage-profile/security/api-tokens)
60+
To create an API Token, use this link: <a href="https://id.atlassian.com/manage-profile/security/api-tokens" target="_blank" rel="noopener noreferrer">https://id.atlassian.com/manage-profile/security/api-tokens</a>
6161

6262
Example of usage
6363

File renamed without changes.

package.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@
77
"author": "Vladislav Tupikin <vladislav.tupikin@icloud.com>",
88
"license": "MIT",
99
"type": "module",
10+
"types": "./dist/index.d.ts",
11+
"module": "./dist/index.mjs",
12+
"main": "./dist/index.cjs",
13+
"exports": {
14+
".": {
15+
"types": "./dist/index.d.ts",
16+
"import": "./dist/index.mjs",
17+
"require": "./dist/index.cjs"
18+
}
19+
},
1020
"keywords": [
1121
"jira",
1222
"javascript",
@@ -33,19 +43,9 @@
3343
"engines": {
3444
"node": ">=20.0.0"
3545
},
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-
}
45-
},
4646
"scripts": {
4747
"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",
48+
"build:src": "rollup -c rollup.config.ts --configPlugin typescript",
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,16 +102,17 @@
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.41",
105+
"@types/node": "^20.17.46",
106106
"@types/sinon": "^17.0.4",
107107
"dotenv": "^16.5.0",
108108
"eslint": "^9.26.0",
109-
"globals": "^16.0.0",
109+
"globals": "^16.1.0",
110+
"jiti": "^2.4.2",
110111
"prettier": "^3.5.3",
111112
"prettier-plugin-jsdoc": "^1.3.2",
112113
"rollup": "^4.40.2",
114+
"rollup-plugin-esnext-to-nodenext": "^1.0.0",
113115
"sinon": "^20.0.0",
114-
"ts-add-js-extension": "^1.6.5",
115116
"tslib": "^2.8.1",
116117
"typedoc": "^0.28.4",
117118
"typescript": "^5.8.3",

0 commit comments

Comments
 (0)