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:
parent
481983aae8
commit
39a831e2a0
@ -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)
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
@ -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))
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user