---
title: "Discussion on \"Cloud Functions with TypeScript\" | Hashnode"
description: "Discussion on \"Cloud Functions with TypeScript\". Here's a small  sample that uses TypeScript + Cloud Functions \nI have a complicated relationship with JavaScript. I'm old enough to remember when it first appeared in Netscape Navigator back when the web was truly tiny and everything had a kind of bo..."
url: "https://hashnode.com/posts/cloud-functions-with-typescript/617522450c5e175a1c6174b8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Cloud Functions with TypeScript](https://duff.blog/cloud-functions-with-typescript?utm_source=hashnode&utm_medium=feed)

Here's a small sample that uses TypeScript + Cloud Functions I have a complicated relationship with JavaScript. I'm old enough to remember when it first appeared in Netscape Navigator back when the web was truly tiny and everything had a kind of bo...

Oct 24, 2021 · 4 min read · duff.blog  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#serverless](https://hashnode.com/tag/serverless)
-   [#google-cloud](https://hashnode.com/tag/google-cloud)
-   [#nodejs](https://hashnode.com/tag/nodejs)

## Written by

[Brian Duff](https://hashnode.com/@brianduff)

@brianduff · California, US

  
[View profile](https://hashnode.com/@brianduff)

Distinguished Engineer, LinkedIn

I'm Brian Duff, a Scot 🏴󠁧󠁢󠁳󠁣󠁴󠁿 living and working in the California Bay Area. I've worked, written, and presented about technology since the 90s. My journey with computers started in the 80s while playing Manic Miner and hacking BASIC on the Sinclair ZX Spectrum. I'm currently a Distinguished Engineer at LinkedIn. Previously, I was a Principal Engineer at Google. Before Google, I worked on Engineering Effectiveness at Twitter, and then before that, led Mobile Developer Experience at Facebook. Prior to that, I worked at Google leading projects and teams on a large number of things for many years, including Nearby, Cloud SQL, Bazel, and Google+. My first job out of university was at Oracle, where I built IDE frameworks for a living.

## Responses 3

Markdown supported · ⌘↵ to post

[JS](https://hashnode.com/@jsh)

[Aug 5, 2023](https://hashnode.com/posts/cloud-functions-with-typescript/617522450c5e175a1c6174b8/comment/64cecef03d3aabc9723f9c85)

Thanks for this concise readme! I wish I'd found this post sooner. Since I didn't, I setup something similar, but my setup only uploads the built JS files (via the `--source` flag). It works well enough, but there are some oddities like I need to copy package\*.json to my built folder before deploy.

Question - are you having any issues with stack traces in logs? I'm finding that the traces of course link back to JS files, not TS files. Would we need to generate sourcemaps or the like to get better logs?

Btw, I'm finding this useful so thought I'd share. To get live reloading with this setup I'm using nodemon: `nodemon --watch src/*.ts --exec "npx functions-framework --target=main --source=built"`.

[Claudio Rauso](https://hashnode.com/@clarauso)

[Oct 6, 2022](https://hashnode.com/posts/cloud-functions-with-typescript/617522450c5e175a1c6174b8/comment/633e837a57b647c4f72b00b1)

Thanks a lot, no one else mentions the fundamental `gcp-build` step.

[Arno Huang](https://hashnode.com/@arno756)

[Aug 26, 2022](https://hashnode.com/posts/cloud-functions-with-typescript/617522450c5e175a1c6174b8/comment/630892b538843b7139781d88)

Thank you. Very helpful.

[pzdouglas](https://hashnode.com/@pzdouglas)

[Mar 23, 2022](https://hashnode.com/posts/cloud-functions-with-typescript/617522450c5e175a1c6174b8/comment/623b4816e99839749d248174)

I'm getting deeper into the gcf world and I have been around the block trying to find a concise example of using typescript + gcf - thank you so much!

[Brian Duff](https://hashnode.com/@brianduff)

[Apr 6, 2022](https://hashnode.com/posts/cloud-functions-with-typescript/617522450c5e175a1c6174b8/comment/623b4816e99839749d248174#reply-624d305224471c433062cea6)

You're welcome!
