From 6602b8ac3671d8ed51cd0e6204db742bb24d51ee Mon Sep 17 00:00:00 2001 From: Albin Ekblom Date: Fri, 19 May 2017 12:59:42 +0200 Subject: [PATCH] Replace fs-promise with fs-extra (#559) --- bin/now-certs.js | 2 +- bin/now-deploy.js | 2 +- bin/now-open.js | 2 +- lib/cfg.js | 2 +- lib/get-files.js | 2 +- lib/git.js | 2 +- lib/hash.js | 2 +- lib/index.js | 2 +- lib/re-alias.js | 2 +- lib/read-metadata.js | 2 +- lib/sort-deployments.js | 2 +- package.json | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/bin/now-certs.js b/bin/now-certs.js index 0fdd962..d0b5708 100755 --- a/bin/now-certs.js +++ b/bin/now-certs.js @@ -7,7 +7,7 @@ const path = require('path') const chalk = require('chalk') const table = require('text-table') const minimist = require('minimist') -const fs = require('fs-promise') +const fs = require('fs-extra') const ms = require('ms') const printf = require('printf') require('epipebomb')() diff --git a/bin/now-deploy.js b/bin/now-deploy.js index bfdb554..2578a76 100755 --- a/bin/now-deploy.js +++ b/bin/now-deploy.js @@ -5,7 +5,7 @@ const { resolve } = require('path') // Packages const Progress = require('progress') -const fs = require('fs-promise') +const fs = require('fs-extra') const bytes = require('bytes') const chalk = require('chalk') const minimist = require('minimist') diff --git a/bin/now-open.js b/bin/now-open.js index d31b0b9..8b8f5f4 100644 --- a/bin/now-open.js +++ b/bin/now-open.js @@ -1,7 +1,7 @@ #!/usr/bin/env node // Packages -const fs = require('fs-promise') +const fs = require('fs-extra') const minimist = require('minimist') const chalk = require('chalk') const opn = require('opn') diff --git a/lib/cfg.js b/lib/cfg.js index 4a92b9b..1d49515 100644 --- a/lib/cfg.js +++ b/lib/cfg.js @@ -3,7 +3,7 @@ const { homedir } = require('os') const path = require('path') // Packages -const fs = require('fs-promise') +const fs = require('fs-extra') const ms = require('ms') // Ours diff --git a/lib/get-files.js b/lib/get-files.js index b1cc3d2..042e518 100644 --- a/lib/get-files.js +++ b/lib/get-files.js @@ -6,7 +6,7 @@ const flatten = require('arr-flatten') const unique = require('array-unique') const ignore = require('ignore') const _glob = require('glob') -const { stat, readdir, readFile } = require('fs-promise') +const { stat, readdir, readFile } = require('fs-extra') // Ours const IGNORED = require('./ignored') diff --git a/lib/git.js b/lib/git.js index a6eeb53..5b2e7bd 100644 --- a/lib/git.js +++ b/lib/git.js @@ -4,7 +4,7 @@ const url = require('url') const childProcess = require('child_process') // Packages -const fs = require('fs-promise') +const fs = require('fs-extra') const download = require('download') const tmp = require('tmp-promise') const isURL = require('is-url') diff --git a/lib/hash.js b/lib/hash.js index 39662ab..b5a7d63 100644 --- a/lib/hash.js +++ b/lib/hash.js @@ -2,7 +2,7 @@ const { createHash } = require('crypto') // Packages -const { readFile } = require('fs-promise') +const { readFile } = require('fs-extra') /** * Computes hashes for the contents of each file given. diff --git a/lib/index.js b/lib/index.js index e1d3169..d14b44c 100644 --- a/lib/index.js +++ b/lib/index.js @@ -13,7 +13,7 @@ const resumer = require('resumer') const retry = require('async-retry') const splitArray = require('split-array') const { parse: parseIni } = require('ini') -const { readFile, stat, lstat } = require('fs-promise') +const { readFile, stat, lstat } = require('fs-extra') // Ours const { diff --git a/lib/re-alias.js b/lib/re-alias.js index 0bac408..64a7a5f 100644 --- a/lib/re-alias.js +++ b/lib/re-alias.js @@ -2,7 +2,7 @@ const { join } = require('path') // Packages -const fs = require('fs-promise') +const fs = require('fs-extra') const chalk = require('chalk') // Ours diff --git a/lib/read-metadata.js b/lib/read-metadata.js index 3634cc9..3402618 100644 --- a/lib/read-metadata.js +++ b/lib/read-metadata.js @@ -3,7 +3,7 @@ const { basename, resolve: resolvePath } = require('path') // Packages const chalk = require('chalk') -const { readFile } = require('fs-promise') +const { readFile } = require('fs-extra') const { parse: parseDockerfile } = require('docker-file-parser') module.exports = readMetaData diff --git a/lib/sort-deployments.js b/lib/sort-deployments.js index a0c1f15..1c70a39 100644 --- a/lib/sort-deployments.js +++ b/lib/sort-deployments.js @@ -1,4 +1,4 @@ -const fs = require('fs-promise') +const fs = require('fs-extra') module.exports = async function(apps) { let pkg diff --git a/package.json b/package.json index 77dc623..eb16d6d 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "email-prompt": "0.3.0", "email-validator": "1.0.7", "epipebomb": "1.0.0", - "fs-promise": "2.0.3", + "fs-extra": "3.0.1", "glob": "7.1.1", "ignore": "3.3.0", "ini": "1.3.4",