Files
swseveranceandGitHub 8b907f64de fix(changelog-generator): fix postinstall build failure (#9948)
The fix has two parts:

1. Add `"types": ["node"]` to tsconfig.

2. Fix an incorrect type cast in `index.ts`. The parsed GitHub API response
   was being cast to the DOM `Response` type to access its `.body` property,
   which is wrong — `Response.body` is a `ReadableStream`, not a string. The
   actual value is the parsed JSON from the GitHub PR API, whose `body` field
   is `string | null` per the API schema. Updated the cast accordingly.

Resolves #9947
2026-05-19 10:42:59 -07:00

17 lines
283 B
JSON

{
"compilerOptions": {
"strict": true,
"outDir": "dist",
"lib": [
"ESNext"
],
"types": [
"node"
],
"module": "CommonJS",
"moduleResolution": "node",
"esModuleInterop": true,
"resolveJsonModule": true,
"target": "es2020"
}
}