Skip to content

Commit

Permalink
fix(npm): write npm package name to file (coder#5049)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsjoeio authored and TinLe committed Apr 23, 2022
1 parent 9141f9c commit 8a0fd3d
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 8a0fd3d

Please sign in to comment.