Skip to content

Commit

Permalink
fix(npm): write npm package name to file (#5049)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsjoeio authored Mar 30, 2022
1 parent d5d7c51 commit 0fceb12
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ci/steps/publish-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0fceb12

Please sign in to comment.