1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00

deps - use pify instead of util.promisify

This commit is contained in:
kumavis 2018-03-14 10:32:55 -07:00
parent 481983aae8
commit 39a831e2a0
3 changed files with 3 additions and 5 deletions

View File

@ -1,6 +1,6 @@
const fs = require('fs') const fs = require('fs')
const path = require('path') const path = require('path')
const { promisify } = require('util') const promisify = require('pify')
start().catch(console.error) start().catch(console.error)

View File

@ -1,4 +1,4 @@
const { promisify } = require('util') const promisify = require('pify')
const fs = require('fs') const fs = require('fs')
const readFile = promisify(fs.readFile) const readFile = promisify(fs.readFile)
const writeFile = promisify(fs.writeFile) const writeFile = promisify(fs.writeFile)

View File

@ -1,6 +1,6 @@
const assert = require('assert') const assert = require('assert')
const versionBump = require('../../../development/version-bump') const versionBump = require('../../../development/version-bump')
const { promisify } = require('util') const promisify = require('pify')
const fs = require('fs') const fs = require('fs')
const readFile = promisify(fs.readFile) const readFile = promisify(fs.readFile)
const path = require('path') const path = require('path')
@ -41,5 +41,3 @@ describe('version bumper', function () {
assert.ok(result.changelog.includes(expected)) assert.ok(result.changelog.includes(expected))
}) })
}) })