Skip to content

Commit

Permalink
fix: add fs/promises to NodeBuiltinModules (resolves #34)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed May 5, 2022
1 parent d3e42f7 commit 35f31a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Module } from 'module'

export const NodeBuiltinModules = Module.builtinModules
export const NodeBuiltinModules = ([] as string[]).concat(Module.builtinModules, [
'fs/promises'
])

export function mapArrToVal (val: any, arr: any[]) {
return arr.reduce((p, c) => ({ ...p, [c]: val }), {})
Expand Down

0 comments on commit 35f31a4

Please sign in to comment.