Skip to content

Commit 0fceb12

Browse files
authored
fix(npm): write npm package name to file (#5049)
1 parent d5d7c51 commit 0fceb12

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ci/steps/publish-npm.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ main() {
137137
# Use the development package name
138138
# This is so we don't clutter the code-server versions on npm
139139
# with development versions.
140-
jq ".name |= \"$PACKAGE_NAME\"" package.json
140+
# jq can't edit in place so we must store in memory and echo
141+
local contents
142+
contents="$(jq ".name |= \"$PACKAGE_NAME\"" package.json)"
143+
echo "${contents}" > package.json
141144
popd
142145
fi
143146

0 commit comments

Comments
 (0)