From 0fceb128f7d4f8769a8c0d1bcdbeee90ab81c1ba Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Wed, 30 Mar 2022 16:11:11 -0700 Subject: [PATCH] fix(npm): write npm package name to file (#5049) --- ci/steps/publish-npm.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ci/steps/publish-npm.sh b/ci/steps/publish-npm.sh index 702540875..5b01f627d 100755 --- a/ci/steps/publish-npm.sh +++ b/ci/steps/publish-npm.sh @@ -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