Skip to content

Commit a5076f8

Browse files
authored
build: update build.sh script for bazel (#1794)
There is no reason to copy files to the dist folder anymore with bazel. Update the build.sh to clean up previous builds by running 'bazel clean'.
1 parent b18296a commit a5076f8

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

scripts/build.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,9 @@ fi
3030

3131
set -ex -o pipefail
3232

33-
# Clean up from last build
34-
rm -rf dist
35-
3633
# Run legacy yarn install to update the lock file since we may have modified the package.json above
3734
# and so that we can call bazel via yarn bazel
3835
yarn install
3936

4037
# Build the npm package with bazel
4138
yarn bazel build //:npm --config=release
42-
43-
# Copy the bazel built package to dist/npm
44-
mkdir -p dist/npm
45-
cp -r bazel-bin/npm/ dist/npm
46-
chmod -R +w dist/npm

0 commit comments

Comments
 (0)