зеркало из https://github.com/electron/electron.git
chore: fix json parsing for npm publish (#16318)
This commit is contained in:
Родитель
a3e5173c47
Коммит
791d6de8b0
|
@ -41,7 +41,7 @@
|
|||
"scripts": {
|
||||
"asar": "asar",
|
||||
"browserify": "browserify",
|
||||
"bump-version": "./script/bump-version.py",
|
||||
"bump-version": "./script/bump-version.js",
|
||||
"check-tls": "python ./script/tls.py",
|
||||
"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",
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче