diff --git a/development/genStates.js b/development/genStates.js index d92e2bc2e..bc274c757 100644 --- a/development/genStates.js +++ b/development/genStates.js @@ -1,6 +1,6 @@ const fs = require('fs') const path = require('path') -const { promisify } = require('util') +const promisify = require('pify') start().catch(console.error) diff --git a/development/run-version-bump.js b/development/run-version-bump.js index fde14566e..98757f58e 100644 --- a/development/run-version-bump.js +++ b/development/run-version-bump.js @@ -1,4 +1,4 @@ -const { promisify } = require('util') +const promisify = require('pify') const fs = require('fs') const readFile = promisify(fs.readFile) const writeFile = promisify(fs.writeFile) diff --git a/test/unit/development/version–bump-test.js b/test/unit/development/version–bump-test.js index 1c445c8b4..5e37d4410 100644 --- a/test/unit/development/version–bump-test.js +++ b/test/unit/development/version–bump-test.js @@ -1,6 +1,6 @@ const assert = require('assert') const versionBump = require('../../../development/version-bump') -const { promisify } = require('util') +const promisify = require('pify') const fs = require('fs') const readFile = promisify(fs.readFile) const path = require('path') @@ -41,5 +41,3 @@ describe('version bumper', function () { assert.ok(result.changelog.includes(expected)) }) }) - -