Browse Source

Replace fs-promise with fs-extra (#559)

master
Albin Ekblom 8 years ago
committed by Leo Lamprecht
parent
commit
6602b8ac36
  1. 2
      bin/now-certs.js
  2. 2
      bin/now-deploy.js
  3. 2
      bin/now-open.js
  4. 2
      lib/cfg.js
  5. 2
      lib/get-files.js
  6. 2
      lib/git.js
  7. 2
      lib/hash.js
  8. 2
      lib/index.js
  9. 2
      lib/re-alias.js
  10. 2
      lib/read-metadata.js
  11. 2
      lib/sort-deployments.js
  12. 2
      package.json

2
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')()

2
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')

2
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')

2
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

2
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')

2
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')

2
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.

2
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 {

2
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

2
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

2
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

2
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",

Loading…
Cancel
Save