Adds scripts/compliance/emit-data-map.mjs which walks Payload collection configs (packages/*/integrations/cms/collections/*.ts), applies PAYLOAD_AUTH_PII_DEFAULTS + custom.authPii overrides, and emits a deterministic YAML PII inventory at compliance/data-map.yml. Supports --print (stdout) and --check (diff vs committed, exit 1 on mismatch) modes. Ships with 26 unit tests covering happy path, auth defaults, authPii overrides, --check match/mismatch, and empty collections. Wired as `compliance:data-map` root package script. Adds @typescript-eslint/parser to root devDependencies (already in workspace via core-eslint, now made explicit for scripts/ usage). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
119 lines
2.2 KiB
JSON
119 lines
2.2 KiB
JSON
{
|
|
"generatedAt": "2026-05-18T19:42:59.601Z",
|
|
"commit": "3a73634",
|
|
"repo": {
|
|
"statements": 96.47,
|
|
"branches": 91.71,
|
|
"functions": 96.81,
|
|
"lines": 96.47,
|
|
"counts": {
|
|
"lf": 4254,
|
|
"lh": 4104,
|
|
"brf": 808,
|
|
"brh": 741,
|
|
"fnf": 251,
|
|
"fnh": 243
|
|
}
|
|
},
|
|
"byPackage": {
|
|
"@repo/auth": {
|
|
"statements": 93.81,
|
|
"branches": 90.82,
|
|
"functions": 100,
|
|
"lines": 93.81,
|
|
"counts": {
|
|
"lf": 791,
|
|
"lh": 742,
|
|
"brf": 98,
|
|
"brh": 89,
|
|
"fnf": 44,
|
|
"fnh": 44
|
|
}
|
|
},
|
|
"@repo/blog": {
|
|
"statements": 96.35,
|
|
"branches": 88.65,
|
|
"functions": 100,
|
|
"lines": 96.35,
|
|
"counts": {
|
|
"lf": 739,
|
|
"lh": 712,
|
|
"brf": 141,
|
|
"brh": 125,
|
|
"fnf": 29,
|
|
"fnh": 29
|
|
}
|
|
},
|
|
"@repo/core-analytics": {
|
|
"statements": 100,
|
|
"branches": 100,
|
|
"functions": 100,
|
|
"lines": 100,
|
|
"counts": {
|
|
"lf": 52,
|
|
"lh": 52,
|
|
"brf": 12,
|
|
"brh": 12,
|
|
"fnf": 10,
|
|
"fnh": 10
|
|
}
|
|
},
|
|
"@repo/core-shared": {
|
|
"statements": 97.98,
|
|
"branches": 95.79,
|
|
"functions": 91.92,
|
|
"lines": 97.98,
|
|
"counts": {
|
|
"lf": 1040,
|
|
"lh": 1019,
|
|
"brf": 309,
|
|
"brh": 296,
|
|
"fnf": 99,
|
|
"fnh": 91
|
|
}
|
|
},
|
|
"@repo/marketing-pages": {
|
|
"statements": 95.93,
|
|
"branches": 83.93,
|
|
"functions": 100,
|
|
"lines": 95.93,
|
|
"counts": {
|
|
"lf": 762,
|
|
"lh": 731,
|
|
"brf": 112,
|
|
"brh": 94,
|
|
"fnf": 32,
|
|
"fnh": 32
|
|
}
|
|
},
|
|
"@repo/media": {
|
|
"statements": 97.15,
|
|
"branches": 90.63,
|
|
"functions": 100,
|
|
"lines": 97.15,
|
|
"counts": {
|
|
"lf": 561,
|
|
"lh": 545,
|
|
"brf": 96,
|
|
"brh": 87,
|
|
"fnf": 24,
|
|
"fnh": 24
|
|
}
|
|
},
|
|
"@repo/navigation": {
|
|
"statements": 98.06,
|
|
"branches": 95,
|
|
"functions": 100,
|
|
"lines": 98.06,
|
|
"counts": {
|
|
"lf": 309,
|
|
"lh": 303,
|
|
"brf": 40,
|
|
"brh": 38,
|
|
"fnf": 13,
|
|
"fnh": 13
|
|
}
|
|
}
|
|
}
|
|
}
|