We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1511fb0 commit 8422580Copy full SHA for 8422580
scripts/build-packages-dist.sh
@@ -44,7 +44,13 @@ dirs=`echo "$targets" | sed -e 's/\/\/src\/\(.*\):npm_package/\1/'`
44
# do this to ensure that the version placeholders are properly populated.
45
for pkg in ${dirs}; do
46
pkg_dir="${bazel_bin_path}/src/${pkg}/npm_package"
47
- rm -Rf ${pkg_dir}
+ if [[ -d ${pkg_dir} ]]; then
48
+ # Make all directories in the previous package output writable. Bazel by default
49
+ # makes tree artifacts and file outputs readonly. This causes permission errors
50
+ # when deleting the folder. To avoid these errors, we make all files writable.
51
+ chmod -R u+w ${pkg_dir}
52
+ rm -Rf ${pkg_dir}
53
+ fi
54
done
55
56
# Walk through each release package target and build it.
0 commit comments