Skip to content

[Bug?]: I used this.cli.run([this.commandName, ...this.args], this.context);, but the console does not output correctly #3354

@rxliuli

Description

@rxliuli

Self-service

  • I'd be willing to implement a fix

Describe the bug

When there is an error, it will not return 1

image

To reproduce

  1. Let an error code exist in a submodule
  2. Run yarn changed foreach run build

https://github.com/rxliuli/liuli-tools/blob/586446ad046b3d5a4b3ad79c53777869131f5d4d/libs/yarn-plugin-changed/src/commands/ChangedForeachCommand.ts#L32

Environment

System:
OS: Windows 10 10.0.19043
CPU: (16) x64 Intel(R) Core(TM) i7-10875H CPU @ 2.30GHz
Binaries:
Node: 14.17.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.11 - C:\Program Files\nodejs\yarn.CMD
npm: 6.14.13 - C:\Program Files\nodejs\npm.CMD

Additional context

No response

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