nxpm / stack

🥭 nxpm-stack lets you generate a complete and opinionated full-stack application in a Nx Workspace, ready to extend and deploy!
https://npm.im/@nxpm/stack
MIT License
108 stars 14 forks source link

`@nxpm/stack:init` should have to option to use a default branch different than `main` #69

Open ruslanguns opened 3 years ago

ruslanguns commented 3 years ago

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 -> https://github.com/nxpm/stack/pull/68#issuecomment-762857858

Steps to Reproduce (for bugs)

  1. Having a different default branch name than main globally
  2. generate new project
  3. by running affected or format will throw error
  4. husky will also throw error on new commits

Context

Your Environment

beeman commented 3 years ago

Updated the description as #68 will now force the initial branch to be main.

Things to do in this change: