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
|
@ -41,7 +41,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"asar": "asar",
|
"asar": "asar",
|
||||||
"browserify": "browserify",
|
"browserify": "browserify",
|
||||||
"bump-version": "./script/bump-version.py",
|
"bump-version": "./script/bump-version.js",
|
||||||
"check-tls": "python ./script/tls.py",
|
"check-tls": "python ./script/tls.py",
|
||||||
"clang-format": "find atom/ chromium_src/ -iname *.h -o -iname *.cc -o -iname *.mm | xargs clang-format -i",
|
"clang-format": "find atom/ chromium_src/ -iname *.h -o -iname *.cc -o -iname *.mm | xargs clang-format -i",
|
||||||
"lint": "node ./script/lint.js && npm run lint:clang-format && npm run lint:docs",
|
"lint": "node ./script/lint.js && npm run lint:clang-format && npm run lint:docs",
|
||||||
|
|
|
@ -120,7 +120,7 @@ new Promise((resolve, reject) => {
|
||||||
npmTag = `nightly-${currentBranch}`
|
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'
|
currentJson.name = 'electron-nightly'
|
||||||
rootPackageJson.name = 'electron-nightly'
|
rootPackageJson.name = 'electron-nightly'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue