Skip to content

Commit

Permalink
Use spread op instead of assign
Browse files Browse the repository at this point in the history
  • Loading branch information
dgieselaar committed Mar 2, 2020
1 parent 2f572cc commit b0b181d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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' }
);
}
Expand Down

0 comments on commit b0b181d

Please sign in to comment.