scripts/tsconfig.json gives scripts/ node's types (@types/node, a new devDependency) and allows the .ts import specifiers node's type stripping needs; the worker's tsconfig still keeps node's types out. pnpm lint runs it. Generated-by: Claude Opus 5.5
12 lines
348 B
JSON
12 lines
348 B
JSON
{
|
|
// program scripts run under node (type stripping), so they get node's
|
|
// types; the worker's own tsconfig keeps them out
|
|
"extends": "../tsconfig.json",
|
|
"compilerOptions": {
|
|
"types": ["node"],
|
|
"lib": ["ES2022", "ESNext.Disposable"],
|
|
"allowImportingTsExtensions": true
|
|
},
|
|
"include": ["./**/*.ts", "../src/rss.ts", "../src/items.ts"]
|
|
}
|