43 lines
1.5 KiB
JSON
43 lines
1.5 KiB
JSON
{
|
|
"name": "nitro-example-ts",
|
|
"version": "1.0.0",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"generate-api-client": "sh generate-api-client.sh",
|
|
"prestart": "npm run build",
|
|
"deploy": "gcloud functions deploy nitroExampleTsHttp --gen2 --runtime=nodejs20 --source=. --trigger-http --allow-unauthenticated",
|
|
"deploy:event": "gcloud functions deploy nitroExampleTsEvent --gen2 --runtime=nodejs20 --source=. --trigger-event=google.cloud.storage.object.v1.finalized --trigger-resource=YOUR_BUCKET_NAME",
|
|
"clean": "rm -rf dist",
|
|
"test": "jest",
|
|
"test:watch": "jest --watch",
|
|
"dev": "npm run build && functions-framework --target=fieldRequestToFieldValueHttp --port=18082",
|
|
"dev:watch": "concurrently \"tsc -w\" \"nodemon --watch dist/ --exec functions-framework --target=nitroExampleTsHttp --port=18082\"",
|
|
"dev:event": "npm run build && functions-framework --target=nitroExampleTsEvent --signature-type=event"
|
|
},
|
|
"main": "dist/index.js",
|
|
"dependencies": {
|
|
"@google-cloud/functions-framework": "^3.0.0",
|
|
"@hey-api/client-fetch": "0.8.4",
|
|
"@hey-api/openapi-ts": "0.64.15",
|
|
"@google-cloud/storage": "^7.16.0",
|
|
"axios": "^1.6.7",
|
|
"dotenv": "^16.4.5"
|
|
},
|
|
"devDependencies": {
|
|
"@types/express": "^5.0.3",
|
|
"@types/jest": "^29.5.12",
|
|
"@types/node": "^20.11.30",
|
|
"concurrently": "^8.2.2",
|
|
"jest": "^29.7.0",
|
|
"nodemon": "^3.0.3",
|
|
"ts-jest": "^29.1.2",
|
|
"typescript": "^5.8.3"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
]
|
|
}
|