From e1f7c592a11924bf0974e57c49057c42d3e30963 Mon Sep 17 00:00:00 2001 From: Ryan Graham Date: Tue, 2 Dec 2014 22:10:50 -0800 Subject: [PATCH] Replace underscore with lodash Replace 2 uses of underscore and 1 use of a lodash submodule with full lodash module. --- lib/bundler.js | 2 +- lib/compiler.js | 2 +- lib/executor.js | 2 +- package.json | 5 ++--- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/bundler.js b/lib/bundler.js index 908f772..dca9b9d 100644 --- a/lib/bundler.js +++ b/lib/bundler.js @@ -1,7 +1,7 @@ var fs = require('fs'); var path = require('path'); var commondir = require('commondir'); -var cloneDeep = require('lodash.clonedeep'); +var cloneDeep = require('lodash').cloneDeep; /** * Add boot instructions to a browserify bundler. diff --git a/lib/compiler.js b/lib/compiler.js index f8f058b..70e7f65 100644 --- a/lib/compiler.js +++ b/lib/compiler.js @@ -1,5 +1,5 @@ var assert = require('assert'); -var cloneDeep = require('lodash.clonedeep'); +var cloneDeep = require('lodash').cloneDeep; var fs = require('fs'); var path = require('path'); var toposort = require('toposort'); diff --git a/lib/executor.js b/lib/executor.js index c8e3865..af67b4b 100644 --- a/lib/executor.js +++ b/lib/executor.js @@ -1,5 +1,5 @@ var assert = require('assert'); -var _ = require('underscore'); +var _ = require('lodash'); var semver = require('semver'); var debug = require('debug')('loopback:boot:executor'); var async = require('async'); diff --git a/package.json b/package.json index 47a268c..5a0b76a 100644 --- a/package.json +++ b/package.json @@ -26,10 +26,9 @@ "async": "~0.9.0", "commondir": "0.0.1", "debug": "^2.0.0", - "lodash.clonedeep": "^2.4.1", + "lodash": "^2.4.1", "semver": "^4.1.0", - "toposort": "^0.2.10", - "underscore": "^1.6.0" + "toposort": "^0.2.10" }, "devDependencies": { "browserify": "^4.1.8",