Skip to content

Fails to read package.json on Windows #70

@Yizack

Description

@Yizack

Environment

  • node.js v24.13.0
  • obuild v0.4.23

Reproduction

Build this package in a Windows machine.

Describe the bug

The custom JSON import fails to read package.json on Windows, preventing obuild from properly reading the package name and rolldown from excluding dependencies.

name deps
Image Image

It also causes Error [ERR_UNSUPPORTED_ESM_URL_SCHEME] when removing the catch from readJSON

Additional context

PR #43 tried to fix this but was closed

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions