-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
40 lines (40 loc) · 1.31 KB
/
package.json
File metadata and controls
40 lines (40 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"name": "trpc-gcp",
"version": "1.0.0",
"main": "index.js",
"author": "Vinícius Lourenço",
"license": "MIT",
"description": "Example project for tRPC and GCP",
"config": {
"gcp_project": "serverless-project",
"gcp_region": "us-central1",
"gcp_runtime": "nodejs16",
"gcp_entrypoint": "helloWorld"
},
"scripts": {
"prebuild": "rimraf dist",
"build": "tsc -p tsconfig.build.json",
"start": "nodemon src/run.ts",
"move-package": "cp package.json dist/package.json",
"upload-code": "gcloud functions deploy $npm_package_config_gcp_project --gen2 --region=$npm_package_config_gcp_region --runtime=$npm_package_config_gcp_runtime --source=dist --entry-point=$npm_package_config_gcp_entrypoint --trigger-http --allow-unauthenticated",
"deploy": "npm run build && npm run move-package && npm run upload-code"
},
"dependencies": {
"@google-cloud/functions-framework": "^3.1.3",
"@h4ad/serverless-adapter": "3.0.0",
"@trpc/server": "10.29.1",
"body-parser": "^1.20.1",
"cors": "^2.8.5",
"zod": "^3.18.0"
},
"devDependencies": {
"@types/cors": "^2.8.12",
"esbuild-loader": "^2.20.0",
"nodemon": "^2.0.19",
"rimraf": "^3.0.2",
"ts-node": "^10.9.1",
"typescript": "^4.7.4",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1"
}
}