diff --git a/lib/api.js b/lib/api.js index 41ff17575..c9cb29295 100644 --- a/lib/api.js +++ b/lib/api.js @@ -7,7 +7,7 @@ const escapeStringRegexp = require('escape-string-regexp'); const uniqueTempDir = require('unique-temp-dir'); const isCi = require('is-ci'); const resolveCwd = require('resolve-cwd'); -const debounce = require('lodash.debounce'); +const debounce = require('lodash/debounce'); const Bluebird = require('bluebird'); const getPort = require('get-port'); const arrify = require('arrify'); diff --git a/lib/concordance-options.js b/lib/concordance-options.js index 0e6193211..7de87aef4 100644 --- a/lib/concordance-options.js +++ b/lib/concordance-options.js @@ -2,7 +2,7 @@ const util = require('util'); const ansiStyles = require('ansi-styles'); const stripAnsi = require('strip-ansi'); -const cloneDeepWith = require('lodash.clonedeepwith'); +const cloneDeepWith = require('lodash/cloneDeepWith'); const reactPlugin = require('@concordance/react'); const chalk = require('./chalk').get(); diff --git a/lib/context-ref.js b/lib/context-ref.js index eb049aab4..b0b703e99 100644 --- a/lib/context-ref.js +++ b/lib/context-ref.js @@ -1,5 +1,5 @@ 'use strict'; -const clone = require('lodash.clone'); +const clone = require('lodash/clone'); class ContextRef { constructor() { diff --git a/lib/run-status.js b/lib/run-status.js index e32239ef3..855e5c41d 100644 --- a/lib/run-status.js +++ b/lib/run-status.js @@ -1,6 +1,6 @@ 'use strict'; const Emittery = require('emittery'); -const cloneDeep = require('lodash.clonedeep'); +const cloneDeep = require('lodash/cloneDeep'); class RunStatus extends Emittery { constructor(files, parallelRuns) { diff --git a/lib/watcher.js b/lib/watcher.js index 6ef70cf31..d325459cb 100644 --- a/lib/watcher.js +++ b/lib/watcher.js @@ -1,7 +1,7 @@ 'use strict'; const nodePath = require('path'); const debug = require('debug')('ava:watcher'); -const diff = require('lodash.difference'); +const diff = require('lodash/difference'); const chokidar = require('chokidar'); const flatten = require('arr-flatten'); const union = require('array-union'); diff --git a/package-lock.json b/package-lock.json index e25fc6623..6db43859d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4890,36 +4890,11 @@ "integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=", "dev": true }, - "lodash.clone": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clone/-/lodash.clone-4.5.0.tgz", - "integrity": "sha1-GVhwRQ9aExkkeN9Lw9I9LeoZB7Y=" - }, "lodash.clonedeep": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=" }, - "lodash.clonedeepwith": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clonedeepwith/-/lodash.clonedeepwith-4.5.0.tgz", - "integrity": "sha1-buMFc6A6GmDWcKYu8zwQzxr9vdQ=" - }, - "lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168=" - }, - "lodash.difference": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.difference/-/lodash.difference-4.5.0.tgz", - "integrity": "sha1-nMtOUF1Ia5FlE0V3KIWi3yf9AXw=" - }, - "lodash.flatten": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz", - "integrity": "sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8=" - }, "lodash.flattendeep": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz", diff --git a/package.json b/package.json index 0c8a027e8..aedaa0a81 100644 --- a/package.json +++ b/package.json @@ -105,12 +105,7 @@ "is-observable": "^1.1.0", "is-plain-object": "^3.0.0", "is-promise": "^2.1.0", - "lodash.clone": "^4.5.0", - "lodash.clonedeep": "^4.5.0", - "lodash.clonedeepwith": "^4.5.0", - "lodash.debounce": "^4.0.3", - "lodash.difference": "^4.3.0", - "lodash.flatten": "^4.2.0", + "lodash": "^4.17.11", "loud-rejection": "^2.1.0", "make-dir": "^3.0.0", "matcher": "^2.0.0",