diff --git a/build/gulpfile.vscode.win32.js b/build/gulpfile.vscode.win32.js index 2425cdb2610..baba8413896 100644 --- a/build/gulpfile.vscode.win32.js +++ b/build/gulpfile.vscode.win32.js @@ -9,7 +9,6 @@ const gulp = require('gulp'); const path = require('path'); const assert = require('assert'); const cp = require('child_process'); -const _ = require('lodash'); const util = require('./lib/util'); const pkg = require('../package.json'); const product = require('../product.json'); @@ -23,13 +22,12 @@ function packageInnoSetup(iss, options, cb) { options = options || {}; const definitions = options.definitions || {}; - const defs = _(definitions) - .forEach((value, key) => assert(typeof value === 'string', `Missing value for '${ key }' in Inno Setup package step`)) - .map((value, key) => `/d${ key }=${ value }`) - .value(); + const keys = Object.keys(definitions); - const args = [iss] - .concat(defs); + keys.forEach(key => assert(typeof definitions[key] === 'string', `Missing value for '${ key }' in Inno Setup package step`)); + + const defs = keys.map(key => `/d${ key }=${ definitions[key] }`); + const args = [iss].concat(defs); cp.spawn(innoSetupPath, args, { stdio: 'inherit' }) .on('error', cb) diff --git a/package.json b/package.json index ae7bef5e618..caabc03e18f 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,6 @@ "istanbul": "^0.3.17", "jsdom-no-contextify": "^3.1.0", "lazy.js": "^0.4.2", - "lodash": "^4.14.0", "mime": "1.2.11", "minimatch": "^2.0.10", "mkdirp": "^0.5.0",