Skip to content

Commit ce0c960

Browse files
authored
feat: support esm auth realm and account sdk (#393)
* feat: support esm modules authentication realm sdk * chore: add changeset * feat: support esm modules accounts sdk * chore: changeset
1 parent 8cd7dad commit ce0c960

File tree

14 files changed

+2046
-22
lines changed

14 files changed

+2046
-22
lines changed

.changeset/six-donkeys-drum.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@epcc-sdk/sdks-authentication-realms": patch
3+
---
4+
5+
Support esm modules

.changeset/yellow-masks-own.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@epcc-sdk/sdks-accounts": patch
3+
---
4+
5+
support esm modules accounts sdk

packages/sdks/accounts/package.json

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,25 @@
22
"name": "@epcc-sdk/sdks-accounts",
33
"version": "0.0.3",
44
"description": "",
5-
"main": "dist/index.js",
5+
"type": "module",
6+
"main": "./dist/index.cjs",
7+
"module": "./dist/index.mjs",
8+
"types": "./dist/index.d.ts",
69
"scripts": {
7-
"build": "pnpm openapi-ts && pnpm tsc:build",
8-
"tsc:build": "tsc -p tsconfig.node.json",
10+
"build": "pnpm openapi-ts && pnpm build:tsup",
11+
"build:tsup": "tsup",
912
"openapi-ts": "openapi-ts"
1013
},
1114
"exports": {
1215
".": {
13-
"types": "./dist/index.d.ts",
14-
"node": {
15-
"import": "./dist/index.js",
16-
"require": "./dist/index.js"
16+
"import": {
17+
"types": "./dist/index.d.ts",
18+
"default": "./dist/index.mjs"
1719
},
18-
"default": "./dist/index.js"
20+
"require": {
21+
"types": "./dist/index.d.cts",
22+
"default": "./dist/index.cjs"
23+
}
1924
},
2025
"./package.json": "./package.json"
2126
},
@@ -30,7 +35,10 @@
3035
"@hey-api/openapi-ts": "0.61.2",
3136
"typescript": "^5.5.3",
3237
"@types/ejs": "^3.1.5",
33-
"ejs": "^3.1.10"
38+
"ejs": "^3.1.10",
39+
"esbuild-fix-imports-plugin": "^1.0.19",
40+
"esbuild-plugin-file-path-extensions": "^1.0.0",
41+
"tsup": "^8.4.0"
3442
},
3543
"dependencies": {
3644
"@hey-api/client-fetch": "0.6.0"

0 commit comments

Comments
 (0)