`@nxpm/stack:init` should have to option to use a default branch different than `main`
ruslanguns opened this issue · 1 comments
ruslanguns commented
Expected Behavior
If you generate a new project and your global default branch is different than main
, scripts like affected and format will throw errors.
Current Behavior
Possible Solution
Solution has been commented in the PR #68 -> #68 (comment)
Steps to Reproduce (for bugs)
- Having a different default branch name than
main
globally - generate new project
- by running affected or format will throw error
- husky will also throw error on new commits
Context
Your Environment
- Version used:
4.4.6
- Browser Name and version: n/a
- Operating System and version (desktop or mobile): Tested on Windows and Linux
- Link to your project: n/a
beeman commented
Updated the description as #68 will now force the initial branch to be main.
Things to do in this change:
- @nxpm/stack:init accepts property --defaultBase
- nxpm-stack init command from @nxpm/cli accepts property --defaultBase
- the --defaultBase option will be passed to yarn create nx-workspace