Skip to content

Print the package name or package.json path on failure. #19

Description

@patrickarlt

I'm integrating this into a monorepo using NPM workspaces. In general everything works great. However I noticed that if this does encounter an error it doesn't print the name of the package or let me know what file has errors:

For example:

npm exec -w ./packages package-check

Would run @skypack/package-check on all packages under ./packages. One of those has an error but I cant tell which one failed.

2021-09-10_09-23-49 (1)

By contrast the name of the package is printed at athe bottom for successful runs:

2021-09-10_09-24-36

Seems as simple as adding a name param to runCheck. Alternately this could print the path to the checked package.json at the top or add this under a --verbose flag. Happy to PR the change.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions