Skip to content

Commit

Permalink
THIS WORKS WITH ESM"
Browse files Browse the repository at this point in the history
;
  • Loading branch information
sofisl committed Oct 19, 2023
1 parent 0a6183f commit 8a08f0a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rules_typescript_gapic/typescript_gapic_pkg.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ def _typescript_gapic_src_pkg_impl(ctx):
COMPILE_PROTOS=$(realpath "{compile_protos}")
CWD=$(pwd)
cd "{package_dir_path}"
IS_ESM=$(find . -name "esm")
if [ -z $IS_ESM ]; then $COMPILE_PROTOS "src"; else $COMPILE_PROTOS "src" "--esm" ; fi
if [ -e esm/src ]; then $COMPILE_PROTOS "esm/src" "--esm"; else $COMPILE_PROTOS "src"; fi
cd $CWD
rm -f "{package_dir_path}/proto.list"
tar cfz "{pkg}" -C "{package_dir_path}/.." "{package_dir}"
Expand Down

0 comments on commit 8a08f0a

Please sign in to comment.