Skip to content

bug: @optave/codegraph-win32-x64-msvc missing from optionalDependencies #113

@carlos-alm

Description

@carlos-alm

Found during dogfooding v2.4.0

Severity: High
Command: npm install @optave/codegraph@2.4.0

Reproduction

mkdir /tmp/test && cd /tmp/test && npm init -y
npm install @optave/codegraph@2.4.0
node -e "const p = require('@optave/codegraph/package.json'); console.log(p.optionalDependencies)"
npx codegraph info

Expected behavior

optionalDependencies should include @optave/codegraph-win32-x64-msvc: "2.4.0" and codegraph info should report engine: native.

Actual behavior

Only darwin-arm64, darwin-x64, and linux-x64-gnu are listed. Windows binary is absent. codegraph info reports engine: wasm on Windows.

The win32 package exists on npm (@optave/codegraph-win32-x64-msvc@2.4.0) but isn't pulled in during install because it's not in optionalDependencies.

Root cause

The package.json optionalDependencies object only contains 3 platform packages. The win32-x64-msvc entry was never added.

Suggested fix

Add to package.json optionalDependencies:

"@optave/codegraph-win32-x64-msvc": "2.4.0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdogfoodFound during dogfooding

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions