Skip to content

fix(ci): add @types/node for main and preload - #8

Merged
johnnyhuy merged 2 commits into
mainfrom
fix/ci-node-types
Jul 19, 2026
Merged

fix(ci): add @types/node for main and preload#8
johnnyhuy merged 2 commits into
mainfrom
fix/ci-node-types

Conversation

@johnnyhuy

Copy link
Copy Markdown
Contributor

Summary

  • Add @types/node devDependency
  • Set "types": ["node"] in tsconfig.main.json and tsconfig.preload.json

Fixes the build failure on #7 (TS2304/TS7006/TS2591 on every Node API in src/main and src/preload).

Testing

  • bunx tsc -p tsconfig.main.json
  • bunx tsc -p tsconfig.preload.json
  • mise run build

CI build failed after #7 because main and preload tsconfigs did not declare
Node types and @types/node was not installed, so tsc errored on every
process/fs/path/process.env reference.

Co-authored-by: opencode-agent <hello@sst.dev>
@socket-security

socket-security Bot commented Jul 19, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​types/​node@​26.1.11001008195100

View full report

tsc ran before bun install, so @types/node was missing from node_modules
when the build job reached the typecheck step.

Co-authored-by: opencode-agent <hello@sst.dev>
@johnnyhuy
johnnyhuy merged commit efb99fe into main Jul 19, 2026
6 checks passed
@johnnyhuy
johnnyhuy deleted the fix/ci-node-types branch July 19, 2026 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant