chore: fix json parsing for npm publish (#16318)

This commit is contained in:
Shelley Vohr 2019-01-07 20:37:44 -08:00 committed by GitHub
parent a3e5173c47
commit 791d6de8b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -120,7 +120,7 @@ new Promise((resolve, reject) => {
npmTag = `nightly-${currentBranch}`
}
const currentJson = JSON.stringify(fs.readFileSync(path.join(tempDir, 'package.json'), 'utf8'))
const currentJson = JSON.parse(fs.readFileSync(path.join(tempDir, 'package.json'), 'utf8'))
currentJson.name = 'electron-nightly'
rootPackageJson.name = 'electron-nightly'