/
package.json
86 lines (86 loc) · 3.67 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"name": "cloudspannerecosystem/autoscaler",
"version": "2.0.1",
"Description": "Autoscaling for Cloud Spanner based on CPU metrics",
"homepage": "https://github.com/cloudspannerecosystem/autoscaler",
"license": "Apache-2.0",
"author": "Google Inc.",
"main": "src/functions.js",
"scripts": {
"check-format": "prettier --check .",
"check-update-all": "ncu",
"debug-poller-function": "node --inspect node_modules/@google-cloud/functions-framework --target=checkSpannerScaleMetricsHTTP",
"debug-scaler-function": "node --inspect node_modules/@google-cloud/functions-framework --target=scaleSpannerInstanceHTTP --port=8081",
"debug-forwarder-function": "node --inspect node_modules/@google-cloud/functions-framework --target=forwardFromHTTP",
"eslint": "eslint .",
"eslint-fix": "eslint --fix .",
"format": "prettier --write .",
"install-all": "npm install --save",
"mdlint": "markdownlint '**/*.md' --config .mdl.json --ignore '**/node_modules/**' --ignore 'code-of-conduct.md' --ignore 'CHANGELOG.md'",
"poller-job": "node -e \"require('./src/poller/index').main()\"",
"prepare": "{ git rev-parse --is-inside-work-tree >/dev/null 2>/dev/null && test \"$NODE_ENV\" != production -a \"$CI\" != true && husky ; } || true",
"prettier": "prettier --write .",
"scaler-service": "node -e \"require('./src/scaler/index').main()\"",
"start-forwarder-function": "functions-framework --target=forwardFromHTTP",
"start-poller-function": "functions-framework --target=checkSpannerScaleMetricsHTTP",
"start-scaler-function": "functions-framework --target=scaleSpannerInstanceHTTP --port=8081",
"test": "NODE_ENV=test nyc --reporter=text mocha --recursive src --extension=.test.js",
"test-e2e": "pushd terraform/cloud-functions/per-project/test && go test -run . -timeout 60m --tags=e2e && popd",
"typecheck": "tsc --project jsconfig.json --maxNodeModuleJsDepth 0 --noEmit",
"unified-job": "node -e \"require('./src/unifiedScaler').main()\"",
"update-all": "ncu -u"
},
"dependencies": {
"@google-cloud/firestore": "^7.5.0",
"@google-cloud/functions-framework": "^3.3.0",
"@google-cloud/logging-bunyan": "^5.0.1",
"@google-cloud/monitoring": "^4.0.0",
"@google-cloud/opentelemetry-cloud-monitoring-exporter": "^0.17.0",
"@google-cloud/pubsub": "^4.3.3",
"@google-cloud/spanner": "^7.7.0",
"@opentelemetry/api": "^1.8.0",
"@opentelemetry/exporter-metrics-otlp-grpc": "^0.49.1",
"@opentelemetry/sdk-metrics": "^1.22.0",
"@opentelemetry/sdk-node": "^0.49.1",
"@opentelemetry/semantic-conventions": "^1.22.0",
"axios": "^1.6.8",
"bunyan": "^1.8.15",
"express": "^4.19.2",
"express-jwt": "^8.4.1",
"googleapis": "^135.0.0",
"js-yaml": "^4.1.0",
"jsonwebtoken": "^9.0.2",
"jwt-decode": "^4.0.0",
"sanitize-filename": "^1.6.3"
},
"devDependencies": {
"@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^19.1.0",
"@sinonjs/referee": "^11.0.1",
"@types/bunyan": "^1.8.11",
"@types/js-yaml": "^4.0.9",
"@types/lodash": "^4.17.0",
"@types/mocha": "^10.0.6",
"@types/rewire": "^2.5.30",
"@types/sinon": "17.0.3",
"eslint": "^8.57.0",
"eslint-config-google": "^0.14.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"husky": "^9.0.11",
"lodash": "^4.17.21",
"markdownlint-cli": "^0.39.0",
"mocha": "^10.3.0",
"npm-check-updates": "^16.14.18",
"nyc": "^15.1.0",
"prettier": "^3.2.5",
"rewire": "^7.0.0",
"should": "^13.2.3",
"sinon": "^17.0.1",
"typescript": "^5.4.3"
},
"engines": {
"node": ">=18.0.0 || >=20.0.0",
"npm": ">=10.0.0"
}
}