Browse Source

Replaced `fs.promised` with `fs-extra-promise`

master
Leo Lamprecht 7 years ago
parent
commit
3bb9011e2a
  1. 2
      package.json
  2. 2
      src/describe-project.js
  3. 2
      src/now.js
  4. 2
      src/providers/aws/util/external-credentials.js
  5. 2
      src/resolvers/fs.js
  6. 2
      src/resolvers/github.js
  7. 2
      src/serverless/builders/nodejs.js
  8. 4211
      yarn.lock

2
package.json

@ -87,7 +87,7 @@
"eslint-plugin-flowtype": "2.35.0",
"flow-babel-webpack-plugin": "1.1.0",
"fs-extra": "4.0.1",
"fs.promised": "3.0.0",
"fs-extra-promise": "1.0.1",
"glob": "7.1.2",
"ignore": "3.3.3",
"ini": "1.3.4",

2
src/describe-project.js

@ -1,5 +1,5 @@
const { join, basename } = require('path')
const { exists, stat, readFile } = require('fs.promised')
const { exists, stat, readFile } = require('fs-extra-promise')
const describeProject = async path => {
let nowJSON = null

2
src/now.js

@ -4,7 +4,7 @@ const start = Date.now()
// theirs
const debug = require('debug')('now:main')
const { exists } = require('fs.promised')
const { exists } = require('fs-extra-promise')
const { join } = require('path')
const mkdirp = require('mkdirp-promise')
const minimist = require('minimist')

2
src/providers/aws/util/external-credentials.js

@ -3,7 +3,7 @@ const { join: joinPath } = require('path')
const { homedir } = require('os')
// theirs
const { readFile, exists: fileExists } = require('fs.promised')
const { readFile, exists: fileExists } = require('fs-extra-promise')
const debug = require('debug')('now:aws:util:external-credentials')
const AWS_CREDENTIALS_FILE_PATH = joinPath(homedir(), '.aws', 'credentials')

2
src/resolvers/fs.js

@ -1,4 +1,4 @@
const { exists } = require('fs.promised')
const { exists } = require('fs-extra-promise')
const { resolve } = require('path')
const fsResolver = async (param, { cwd = process.cwd() } = {}) => {

2
src/resolvers/github.js

@ -4,7 +4,7 @@ const { parse, format } = require('url')
const fetch = require('node-fetch')
const tar = require('tar-fs')
const pipeStreams = require('pipe-streams-to-promise')
const { mkdir } = require('fs.promised')
const { mkdir } = require('fs-extra-promise')
const uid = require('uid-promise')
const { createGunzip } = require('zlib')
const { join } = require('path')

2
src/serverless/builders/nodejs.js

@ -1,6 +1,6 @@
const { tmpdir } = require('os')
const { join } = require('path')
const { mkdir, stat, link, exists, readdir } = require('fs.promised')
const { mkdir, stat, link, exists, readdir } = require('fs-extra-promise')
const uid = require('uid-promise')
const { exec: exec_ } = require('child_process')
const { toBuffer } = require('convert-stream')

4211
yarn.lock

File diff suppressed because it is too large
Loading…
Cancel
Save