From abe7dde205b255c4e41067088a5d36adc2775266 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 22 Sep 2014 17:07:52 -0700 Subject: [PATCH] Use grunt.file.readJSON --- build/tasks/create-installer.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/tasks/create-installer.coffee b/build/tasks/create-installer.coffee index f9f228f48..122adfe29 100644 --- a/build/tasks/create-installer.coffee +++ b/build/tasks/create-installer.coffee @@ -13,7 +13,7 @@ module.exports = (grunt) -> buildDir = grunt.config.get('atom.buildDir') atomDir = path.join(buildDir, 'Atom') - packageInfo = JSON.parse(fs.readFileSync(path.join(atomDir, 'resources', 'app', 'package.json'), {encoding: 'utf8'})) + packageInfo = grunt.file.readJSON(path.join(atomDir, 'resources', 'app', 'package.json')) inputTemplate = grunt.file.read(path.join('build', 'windows', 'atom.nuspec.erb')) ## NB: Build server has some sort of stamp on the version number