From b0b181d2fec582aa8e9f9e31b43900199076a053 Mon Sep 17 00:00:00 2001 From: Dario Gieselaar Date: Mon, 2 Mar 2020 13:31:25 +0100 Subject: [PATCH] Use spread op instead of assign --- .../legacy/plugins/apm/scripts/optimize-tsconfig/optimize.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x-pack/legacy/plugins/apm/scripts/optimize-tsconfig/optimize.js b/x-pack/legacy/plugins/apm/scripts/optimize-tsconfig/optimize.js index 83147bce0d6bc..3a5809e564691 100644 --- a/x-pack/legacy/plugins/apm/scripts/optimize-tsconfig/optimize.js +++ b/x-pack/legacy/plugins/apm/scripts/optimize-tsconfig/optimize.js @@ -11,7 +11,6 @@ const { promisify } = require('util'); const path = require('path'); const json5 = require('json5'); const execa = require('execa'); -const { assign } = require('lodash'); const readFile = promisify(fs.readFile); const writeFile = promisify(fs.writeFile); @@ -55,7 +54,7 @@ async function addApmFilesToXpackTsConfig() { await writeFile( xpackTsConfig, - JSON.stringify(assign(config, template), null, 2), + JSON.stringify({ ...config, ...template }, null, 2), { encoding: 'utf-8' } ); }