mirror of
https://github.com/cdr/code-server.git
synced 2025-12-06 08:27:17 +01:00
fix(npm): write npm package name to file (#5049)
This commit is contained in:
parent
d5d7c519e8
commit
0fceb128f7
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue