feat(packaging): ship CommonJS builds alongside ESM for v2 packages (#2405)
This commit is contained in:
parent
2f4ad132fe
commit
f172626a8e
1 changed files with 293 additions and 117 deletions
|
|
@ -26,18 +26,37 @@
|
|||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.mts",
|
||||
"import": "./dist/index.mjs"
|
||||
"import": {
|
||||
"types": "./dist/index.d.mts",
|
||||
"default": "./dist/index.mjs"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/index.d.cts",
|
||||
"default": "./dist/index.cjs"
|
||||
}
|
||||
},
|
||||
"./sse": {
|
||||
"types": "./dist/sse/index.d.mts",
|
||||
"import": "./dist/sse/index.mjs"
|
||||
"import": {
|
||||
"types": "./dist/sse/index.d.mts",
|
||||
"default": "./dist/sse/index.mjs"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/sse/index.d.cts",
|
||||
"default": "./dist/sse/index.cjs"
|
||||
}
|
||||
},
|
||||
"./auth": {
|
||||
"types": "./dist/auth/index.d.mts",
|
||||
"import": "./dist/auth/index.mjs"
|
||||
"import": {
|
||||
"types": "./dist/auth/index.d.mts",
|
||||
"default": "./dist/auth/index.mjs"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/auth/index.d.cts",
|
||||
"default": "./dist/auth/index.cjs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"main": "./dist/index.cjs",
|
||||
"types": "./dist/index.d.mts",
|
||||
"typesVersions": {
|
||||
"*": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue