Append newline to avoid unnecessary back-and-forth changing

This commit is contained in:
Philipp Muens 2019-09-25 13:38:44 +02:00
parent a4457e6a28
commit b800db3393

View File

@ -1,9 +1,10 @@
'use strict';
const os = require('os');
const fs = require('fs');
const pkgJson = JSON.parse(fs.readFileSync('package.json'));
pkgJson.dependencies['@serverless/enterprise-plugin'] = 'next';
fs.writeFileSync('package.json', JSON.stringify(pkgJson, null, 2));
fs.writeFileSync('package.json', JSON.stringify(pkgJson, null, 2) + os.EOL);