Use grunt.file.readJSON

This commit is contained in:
Kevin Sawicki
2014-09-22 17:07:52 -07:00
parent 4bc49b82ef
commit abe7dde205

View File

@@ -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