Skip to content

Conversation

onurtemizkan
Copy link
Collaborator

Resolves: #521

Copy link

github-actions bot commented Aug 5, 2024

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against a1fef98

@Lms24 Lms24 self-requested a review September 3, 2024 12:37
@Lms24
Copy link
Member

Lms24 commented Sep 3, 2024

Oof I totally missed this PR, Sorry! I'll take a look soon!

src/run.ts Outdated
clack.log.error(`No setup wizard selected!`);
}

await runPrettierIfInstalled();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

h: let's move this call inside the individual run*wizard functions. If we leave it here, the prompt would be rendered after the outro messages which looks a bit off.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Lms24, moved the prettier runs inside nextjs, remix, svelte and react-native wizards.

@Lms24 Lms24 self-assigned this Sep 4, 2024
Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Onur! Tested with SvelteKit and it worked well. I think there's a limitation we might need to address depending on user feedback which is that we might need to limit applying prettier to the changed files. Should probably be doable since we know which files we generally modify. We could also use git commands to find new/changed files.

I'll merge this in for now but feel free to work on this if you have free cycles.

@Lms24 Lms24 merged commit d07193f into master Sep 9, 2024
13 checks passed
@Lms24 Lms24 deleted the onur/run-prettier branch September 9, 2024 15:06
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 this pull request may close these issues.

Sentry Wizard should not be opinionated

2 participants