Thanks to visit codestin.com
Credit goes to github.com

Skip to content

exec() doesn't apply the arguments correctly #895

@tamasmonus-cas

Description

@tamasmonus-cas

Node version (or tell us if you're using electron or some other framework):

v8.11.2

ShellJS version (the most recent version/Github branch you see the bug on):

v0.8.2

Operating system:

Linux

Description of the bug:

I'm creating an auto merge and publish for our CI process. When I get to publish I want to execute the following command:

shell.exec(`npm version prepatch --preid=beta`);

But it seems that the --preid argument is not passed correctly because the resulting version number will won't have the 'beta' preid. If I run this same command inside my terminal, then it works, just okay. Any idea is much appreciated, because I'm starting to pull out my hair right now, because of this.

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