Skip to content

Latest commit

 

History

History
67 lines (51 loc) · 1.19 KB

README.md

File metadata and controls

67 lines (51 loc) · 1.19 KB



One time migrations for primer/react

 

npx primer-react-migrate [src directory] -p [preset name] [--create-commits]

# or
npx primer-react-migrate [src directory] -m [migration name] [--create-commits]

# Example:
npx primer-react-migrate src -p v37 --create-commits

npx primer-react-migrate src -m use-deprecated-button

 

Available presets:

  • v37
  • v35

 

Available migrations:

use-deprecated-flex
use-deprecated-grid
use-deprecated-label
use-deprecated-position
use-deprecated-dropdown
use-deprecated-borderbox
use-deprecated-formgroup
use-deprecated-selectmenu

use-deprecated-button
use-deprecated-actionlist
use-deprecated-actionmenu
use-deprecated-dropdownmenu
use-deprecated-inputfield
use-deprecated-choicefieldset
use-deprecated-choiceinputfield

use-main-label
use-main-button
use-main-actionlist
use-main-actionmenu
use-main-pagelayout

use-deprecated-dialog
use-deprecated-tooltip
use-deprecated-octicon
use-deprecated-pagehead
use-deprecated-tabnav

rename-drafts-to-experimental

use-main-dialog
use-main-tooltip
use-main-stack