Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this.cwd is undefined in spawn-command #307

Closed
yanni4night opened this issue May 21, 2021 · 1 comment · Fixed by #310
Closed

this.cwd is undefined in spawn-command #307

yanni4night opened this issue May 21, 2021 · 1 comment · Fixed by #310

Comments

@yanni4night
Copy link

spawnCommand.spawnCommand = (command, args, opt) => {
    console.log(this.cwd);// undefined
  return spawn(command, args, {stdio: 'inherit', cwd: this.cwd, ...opt});
};

spawnCommand and spawnCommandSync should not be defined in arrow-function style.

@mshima
Copy link
Member

mshima commented May 21, 2021

Indeed, thanks for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants