mirror of https://github.com/aminya/setup-cpp
fix: add fs/promises compat for node 12
This commit is contained in:
parent
649bb63b16
commit
8b2ab43823
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
|
@ -182,7 +182,8 @@
|
||||||
"alias": {
|
"alias": {
|
||||||
"electron": false,
|
"electron": false,
|
||||||
"patha": "patha/dist/index.node.mjs",
|
"patha": "patha/dist/index.node.mjs",
|
||||||
"admina": "admina/dist/index.mjs"
|
"admina": "admina/dist/index.mjs",
|
||||||
|
"fs/promises": "./src/utils/compat/fs/promises.ts"
|
||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"overrides": {
|
"overrides": {
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
import { promises } from "fs"
|
||||||
|
export default promises
|
||||||
|
|
||||||
|
export const {
|
||||||
|
access,
|
||||||
|
appendFile,
|
||||||
|
chmod,
|
||||||
|
chown,
|
||||||
|
copyFile,
|
||||||
|
lchmod,
|
||||||
|
lchown,
|
||||||
|
link,
|
||||||
|
lstat,
|
||||||
|
mkdir,
|
||||||
|
mkdtemp,
|
||||||
|
open,
|
||||||
|
readdir,
|
||||||
|
readFile,
|
||||||
|
readlink,
|
||||||
|
realpath,
|
||||||
|
rename,
|
||||||
|
rmdir,
|
||||||
|
stat,
|
||||||
|
symlink,
|
||||||
|
truncate,
|
||||||
|
unlink,
|
||||||
|
utimes,
|
||||||
|
writeFile,
|
||||||
|
} = promises
|
Loading…
Reference in New Issue