🚀 Feature: Run "Cleaning up files" section after initialization and migration too #705
Closed
3 tasks done
Labels
good first issue
Good for newcomers, please hop on!
status: accepting prs
Please, send a pull request to resolve this!
type: feature
New enhancement or request
Bug Report Checklist
main
branch of the repository.Overview
Right now, after someone runs
npx template-typescript-node-package
, the create setup script will run a few commands to autofix / clean up files:https://github.com/JoshuaKGoldberg/template-typescript-node-package/blob/a386c870f5bc53ce3b30a8d31108c5726487ba78/src/create/createWithOptions.ts#L35-L39
Those feel broadly useful to me for all the other two setup script forms too: initialize and migrate. Let's run the same bit of code at the end of all three of them!
Additional Info
I see that
initializeWithOptions
andmigrateWithOptions
already run a couple of those commands:https://github.com/JoshuaKGoldberg/template-typescript-node-package/blob/a386c870f5bc53ce3b30a8d31108c5726487ba78/src/initialize/initializeWithOptions.ts#L49-L52
https://github.com/JoshuaKGoldberg/template-typescript-node-package/blob/a386c870f5bc53ce3b30a8d31108c5726487ba78/src/migrate/migrateWithOptions.ts#L44-L47
I don't know why they don't run all three 😂. This is probably a good sign that there should be a single shared function to call the three scripts. For reference,
initializeGitHubRepository
is another shared function that's run in all three setup scripts.The text was updated successfully, but these errors were encountered: