Skip to content

Commit 303e27f

Browse files
committed
fix fs promises import for Node.js v12
1 parent 0922546 commit 303e27f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/helpers/helpers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { access } from 'fs/promises'
1+
import { promises as fs } from 'fs'
22
import { exec as execCallback } from 'child_process'
33
import pLimit = require('p-limit')
4+
const { access } = fs
45

56
export const exists = (path: string) => access(path).then(_ => true).catch(_ => false)
67

0 commit comments

Comments
 (0)