chore: fix json parsing for npm publish (#16318)
This commit is contained in:
parent
a3e5173c47
commit
791d6de8b0
2 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue