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

env.instantiate options seem to be broken ('skip-install') #421

Closed
moritzraho opened this issue Jul 19, 2022 · 2 comments
Closed

env.instantiate options seem to be broken ('skip-install') #421

moritzraho opened this issue Jul 19, 2022 · 2 comments

Comments

@moritzraho
Copy link

moritzraho commented Jul 19, 2022

What does not work anymore

I used to instantiate and run a generators like follows:

 const env = yeoman.createEnv()
 const appGen = env.instantiate(myRequiredGenerator, { options: { 'skip-install': true } })
 await env.runGenerator(appGen)

This used to work but now does not skip install anymore. I couldn't pinpoint the exact time this started to fail.

Work-around

const env = yeoman.createEnv()
env.options = { skipInstall: true }
const appGen = env.instantiate(myRequiredGenerator)
await env.runGenerator(appGen)

@mshima
Copy link
Member

mshima commented Jul 29, 2022

Install is done by the environment since last major version of environment/generator.

const env = yeoman.createEnv(undefined, { skipInstall: true })
const appGen = env.instantiate(myRequiredGenerator)
await env.runGenerator(appGen)

@mshima mshima closed this as completed Jul 29, 2022
@moritzraho
Copy link
Author

Thanks for the details @mshima

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

No branches or pull requests

2 participants