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
22 lines
536 B
JSON
22 lines
536 B
JSON
{
|
|
"name": "diigo-cache",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "wrangler dev -c wrangler.jsonc -c ../webapp/wrangler.jsonc",
|
|
"types": "wrangler types",
|
|
"lint": "wrangler types --check && tsc -p tsconfig.json && tsc -p tests/tsconfig.json && tsc -p scripts/tsconfig.json",
|
|
"test": "vitest run"
|
|
},
|
|
"devDependencies": {
|
|
"@cloudflare/vitest-plugin": "1.3.6",
|
|
"@types/node": "^22",
|
|
"typescript": "^5.9.0",
|
|
"vitest": "4.1.11",
|
|
"wrangler": "^4.148.0"
|
|
},
|
|
"dependencies": {
|
|
"capnweb": "^0.12.0"
|
|
}
|
|
}
|