Skip to content

Commit 49c9537

Browse files
ljharbnlf
authored andcommitted
fix: shrinkwrap in node v10.0
See #2654 (comment) PR-URL: #2688 Credit: @ljharb Close: #2688 Reviewed-by: @wraithgar
1 parent e3de7be commit 49c9537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/shrinkwrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const { resolve, basename } = require('path')
22
const util = require('util')
33
const fs = require('fs')
4-
const { unlink } = fs.promises || util.promisify(fs.unlink)
4+
const { unlink } = fs.promises || { unlink: util.promisify(fs.unlink) }
55
const Arborist = require('@npmcli/arborist')
66
const log = require('npmlog')
77

0 commit comments

Comments
 (0)