Skip to content

Commit 8934d33

Browse files
committed
fix: ESM support
1 parent ff4d9ed commit 8934d33

File tree

3 files changed

+464
-9
lines changed

3 files changed

+464
-9
lines changed

package.json

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
{
2-
"name": "jira.js",
2+
"name": "@esm-js/jira.js",
33
"version": "5.1.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",
9-
"type": "module",
109
"keywords": [
1110
"jira",
1211
"javascript",
@@ -37,15 +36,18 @@
3736
"types": "./dist/index.d.ts",
3837
"exports": {
3938
".": {
40-
"types": "./dist/index.d.ts",
41-
"import": "./dist/index.esm.js",
42-
"require": "./dist/index.cjs.js"
39+
"import": {
40+
"types": "./dist/index.d.mts",
41+
"default": "./dist/index.mjs"
42+
},
43+
"require": {
44+
"types": "./dist/index.d.ts",
45+
"default": "./dist/index.js"
46+
}
4347
}
4448
},
4549
"scripts": {
46-
"build": "pnpm run build:src && pnpm run build:tests",
47-
"build:src": "rollup -c rollup.config.ts --configPlugin typescript",
48-
"build:tests": "tsc --project tests/tsconfig.json",
50+
"build": "pnpm run tsup",
4951
"prettier": "prettier --write src",
5052
"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",
5153
"lint:tests": "pnpm run lint:base tests",
@@ -111,9 +113,11 @@
111113
"rollup": "^4.40.1",
112114
"sinon": "^20.0.0",
113115
"tslib": "^2.8.1",
116+
"tsup": "^8.4.0",
114117
"typedoc": "^0.28.3",
115118
"typescript": "^5.8.3",
116119
"typescript-eslint": "^8.31.1",
117120
"vitest": "^3.1.2"
118-
}
121+
},
122+
"packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39"
119123
}

0 commit comments

Comments
 (0)