From b800db3393d47ec1cb8bd8a2ba299fb18b4ee36d Mon Sep 17 00:00:00 2001 From: Philipp Muens Date: Wed, 25 Sep 2019 13:38:44 +0200 Subject: [PATCH] Append newline to avoid unnecessary back-and-forth changing --- scripts/update-sfe-dep.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/update-sfe-dep.js b/scripts/update-sfe-dep.js index 18f3bb9ad..c74fa87ea 100644 --- a/scripts/update-sfe-dep.js +++ b/scripts/update-sfe-dep.js @@ -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);