Archived
1
0

fix(npm): write npm package name to file (#5049)

This commit is contained in:
Joe Previte 2022-03-30 16:11:11 -07:00 committed by GitHub
parent d5d7c519e8
commit 0fceb128f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,7 +137,10 @@ main() {
# Use the development package name
# This is so we don't clutter the code-server versions on npm
# with development versions.
jq ".name |= \"$PACKAGE_NAME\"" package.json
# jq can't edit in place so we must store in memory and echo
local contents
contents="$(jq ".name |= \"$PACKAGE_NAME\"" package.json)"
echo "${contents}" > package.json
popd
fi