We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0922546 commit 303e27fCopy full SHA for 303e27f
src/helpers/helpers.ts
@@ -1,6 +1,7 @@
1
-import { access } from 'fs/promises'
+import { promises as fs } from 'fs'
2
import { exec as execCallback } from 'child_process'
3
import pLimit = require('p-limit')
4
+const { access } = fs
5
6
export const exists = (path: string) => access(path).then(_ => true).catch(_ => false)
7
0 commit comments