Skip to content

Commit

Permalink
build: update owlbot.py to compile before copying d.ts files from the…
Browse files Browse the repository at this point in the history
… build folder (#2061)

Adding a compile step to owlbot.py to generate missing .d.ts files
  • Loading branch information
MarkDuckworth authored Jun 6, 2024
1 parent 4c2dc11 commit e581271
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from synthtool import _tracked_paths
import shutil
from synthtool import shell
from synthtool.log import logger

logging.basicConfig(level=logging.DEBUG)

Expand Down Expand Up @@ -190,7 +191,8 @@
os.chdir("../../")

# Copy types into types/
# These files were generated by node.compile_protos_hermetic() above.
logger.debug("Running compile...")
shell.run(["npm", "run", "compile"], hide_output=True)
s.copy("build/src/v1/firestore*.d.ts", "types/v1")
s.copy("build/src/v1beta1/firestore_client.d.ts", "types/v1beta1")
s.copy("build/protos/firestore*.d.ts", "types/protos")
Expand Down

0 comments on commit e581271

Please sign in to comment.