Improve log trace for `Potential missing package.json files` warning · Issue #268 · unjs/unbuild · GitHub
Skip to content

Improve log trace for Potential missing package.json files warning #268

Description

@gaogaoinvincible

Environment

Node@18.15.0
React 18.2.0
unbuild 1.2.0

Reproduction

just run build

Describe the bug

When I run build, then give me this warnings

WARN Build is done with some warnings:

  • Potential missing package.json files: dist/index.cjs
    ERROR Exiting with code (1). You can change this behavior by setting failOnWarn: false .

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions