2 "name": "@proton/metrics",
3 "description": "Metrics library",
6 "generate-metrics": "ts-node -P scripts/tsconfig.metrics-scripts.json ./scripts/generate-metrics.ts",
7 "generate-schema-types": "json2ts -i 'json-schema-registry/observability/client/web*.schema.json' -o types/ --no-additionalProperties && json2ts -i 'json-schema-registry/observability/client/drive*.schema.json' -o types/ --no-additionalProperties && json2ts -i 'json-schema-registry/observability/client/docs*.schema.json' -o types/ --no-additionalProperties",
8 "lint": "eslint . --ext ts --quiet --cache",
10 "test:ci": "jest --coverage --runInBand --ci",
11 "test:watch": "jest --watch",
12 "update-metrics": "rimraf json-schema-registry types && git clone $SCHEMA_REPOSITORY && yarn generate-schema-types && yarn generate-metrics"
15 "@proton/shared": "workspace:^",
16 "json-schema-to-typescript": "^13.1.2"
19 "@proton/eslint-config-proton": "workspace:^",
20 "@types/node": "^20.17.6",
23 "jest-fetch-mock": "^3.0.3",
27 "typescript": "^5.6.3"