Skip to content

Option to treat warnings as error #322

@thomasballinger

Description

@thomasballinger

Clear and concise description of the problem

If I do a tsdown build, I can get

[UNRESOLVED_IMPORT] Warning: Could not resolve 'your-library/some-export' in src/index.ts

and this is treated as an external dependency.

This isn't something I want, I'd rather fail!

Suggested solution

--warnings-as-errors? --fail-on-resolve-errors? Some way to fail instead of printing warnings and exiting with 0.

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions