Skip to content

CI broken: pnpm typecheck/build fail because @types/node is not a direct devDependency #8

Description

@williamzujkowski

Problem

pnpm typecheck and pnpm build fail on a clean install:

src/live-caller.ts(14,10): error TS2580: Cannot find name 'process'.
src/run-live.ts(15,5): error TS2580: Cannot find name 'process'.
src/run-live.ts(28,5): error TS2580: Cannot find name 'process'.

@types/node appears in pnpm-lock.yaml only as an optional peer dependency of tsx/vitest; it is not installed in node_modules and not listed in package.json devDependencies. The CI workflow (.github/workflows/ci.yml) runs pnpm install --frozen-lockfile then pnpm typecheck and pnpm build, so CI fails on a fresh checkout (tests pass because vitest does not type-check).

Suggested fix

Add @types/node (matching engines.node >=22, e.g. ^22) to devDependencies and regenerate pnpm-lock.yaml. Optionally add "types": ["node"] to tsconfig compilerOptions.

This is a dependency change, so it is filed as an issue rather than an automated doc PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcidependenciesPull requests that update a dependency file

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions