fix: exports

This commit is contained in:
alina 🌸 2023-10-23 18:51:24 +03:00
parent 969a0366d3
commit 3d7004fda5
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI
4 changed files with 11 additions and 1 deletions

View file

@ -37,6 +37,10 @@
"./utils/crypto/*.js": {
"import": "./esm/utils/crypto/*.js",
"require": "./cjs/utils/crypto/*.js"
},
"./network/transports/*.js": {
"import": "./esm/network/transports/*.js",
"require": "./cjs/network/transports/*.js"
}
}
},

View file

@ -16,6 +16,10 @@
".": {
"import": "./esm/index.js",
"require": "./cjs/index.js"
},
"./utils.js": {
"import": "./esm/utils.js",
"require": "./cjs/utils.js"
}
}
},

View file

@ -4,7 +4,8 @@
"outDir": "./dist/esm"
},
"include": [
"./index.ts"
"./index.ts",
"./utils.ts",
],
"references": [
{ "path": "../client" },

1
packages/node/utils.ts Normal file
View file

@ -0,0 +1 @@
export * from '@mtcute/client/utils.js'