fix: add stream/promises compat layer

This commit is contained in:
Amin Yahyaabadi 2024-02-17 00:37:14 -08:00
parent 1c7c39221b
commit 8ce16c2fbc
No known key found for this signature in database
GPG Key ID: F52AF77F636088F0
8 changed files with 57 additions and 52 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -186,7 +186,8 @@
"electron": false,
"patha": "patha/dist/index.node.mjs",
"admina": "admina/dist/index.mjs",
"fs/promises": "./src/utils/compat/fs/promises.ts"
"fs/promises": "./src/utils/compat/fs/promises.ts",
"stream/promises": "./src/utils/compat/stream/promises.ts"
},
"targets": {
"main": {

View File

@ -0,0 +1,4 @@
import { promises } from "stream"
export default promises
export const { finished, pipeline } = promises