-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
48 lines (48 loc) · 2.26 KB
/
package.json
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
41
42
43
44
45
46
47
48
{
"name": "tax-bot",
"version": "2.7.2",
"license": "MIT",
"main": "index.js",
"projectId": "bkper-tax-trigger",
"functionName": "prodGen2",
"type": "module",
"scripts": {
"clean": "gts clean",
"update:app": "bun update bkper --latest",
"update:api": "bun update @bkper/bkper-api-types --latest",
"bkper:sync": "bkper app -u",
"prebuild": "bun install --yarn",
"build": "bun clean && tsc && cp package.json dist/ && cp yarn.lock dist/",
"gcp-build": "yarn install --frozen-lockfile",
"dev": "run-p dev:*",
"dev:compile": "tsc -w --incremental",
"dev:webhook": "node webhook",
"dev:nodemon": "NODE_ENV=development nodemon --watch ./dist/ --exec bun run functions:dev",
"functions:dev": "functions-framework --source=dist/ --target=doPost --port=3001",
"functions:enable": "gcloud services enable cloudfunctions.googleapis.com cloudbuild.googleapis.com artifactregistry.googleapis.com run.googleapis.com logging.googleapis.com --project $npm_package_projectId",
"functions:authorize": "gcloud functions add-invoker-policy-binding $npm_package_functionName --region=us-central1 --member=serviceAccount:[email protected] --project $npm_package_projectId",
"functions:open": "open \"https://console.cloud.google.com/functions/details/us-central1/$npm_package_functionName?organizationId=305881217394&project=$npm_package_projectId&tab=logs\"",
"open": "yarn functions:open",
"deploy": "bun run build && yarn --cwd dist/ deploy:dist",
"deploy:dist": "gcloud functions deploy $npm_package_functionName --gen2 --region=us-central1 --no-allow-unauthenticated --runtime=nodejs18 --entry-point=doPost --trigger-http --max-instances=5 --memory=128Mi --timeout=360s --project=$npm_package_projectId"
},
"devDependencies": {
"@bkper/bkper-api-types": "^5.10.0",
"@types/express": "^4.17.10",
"@types/node": "^14.11.2",
"bkper": "^3.3.2",
"gts": "^3.0.3",
"ngrok": "^5.0.0-beta.2",
"nodemon": "^2.0.7",
"npm-run-all": "^4.1.5",
"typescript": "^4.0.3"
},
"dependencies": {
"@google-cloud/functions-framework": "^2.0.0",
"bkper-js": "^1.13.3",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"express-http-context": "^1.2.4",
"source-map-support": "^0.5.19"
}
}