You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/typescript.md
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -54,3 +54,22 @@ the Functions Framework.
54
54
Function: helloWorld
55
55
URL: http://localhost:8080/
56
56
```
57
+
58
+
## Deploying with gcloud CLI
59
+
60
+
1. Adjust `main` field in`package.json` to point to the compiled javascript source.
61
+
62
+
```js
63
+
"main": "build/src/index.js",
64
+
...
65
+
```
66
+
67
+
1. Remove `prepare` script in`package.json` created by [gts](https://github.com/google/gts). This is because the `prepare` script requires typescript to be installed and will cause the functionto fail to deploy if not removed.
0 commit comments