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

[Bug]: --yes option isn't used to automatically answer prompts of the CLI #22623

Closed
adam-kov opened this issue May 18, 2023 · 1 comment
Closed

Comments

@adam-kov
Copy link

Describe the bug

I'm trying to run the init command of the CLI in an automated manner but NOT in a CI environment. I found that the --yes (or -y) option is in the source code but it isn't checked before prompting the user for recommendations. This makes the script I'm building fail.

To Reproduce

Run the following commands (needs node.js, pnpm and git installed):

  1. git clone https://github.com/adevien-solutions/svelte-scaffold.git
  2. cd svelte-scaffold
  3. npm run update-local (this will install the package globally)
  4. cd to a directory where you want to run the project scaffolding
  5. svelte-scaffold . --verbose
  6. make sure to select the "Component library" and later the "Storybook" options
  7. cd shared/lib && ls -la && cat package.json

You'll see that a .storybook folder was created but Storybook is not installed. This is because it started the init process but got stuck on the ESLint prompt.

System

No response

Additional context

No response

@adam-kov
Copy link
Author

fixed by #22651

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

Successfully merging a pull request may close this issue.

1 participant