Skip to content

Do not change process.cwd() #3

@brian-mann

Description

@brian-mann

Just pass it as an option to execa.

const runGit = () => execa.shell(gitCommand).then(prop('stdout'))

Also FWIW the .tap(...) call to change back process.cwd will not be called if the promise throws, resulting in a mutated process.cwd

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