Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 1.1 KB

README.md

File metadata and controls

11 lines (7 loc) · 1.1 KB

Code mod for converting @jpmorganchase/uitk- to @salt-ds/* and version migration for @salt-ds/core, mainly import statement updates due to components being moved from lab to core and CSS variable renames due to deprecation.

To use

  1. Clone this codemod repo, then yarn install to get all the dependencies (e.g. ts-morph)
  2. In your project repo, update package.json to use @salt-ds/* and install dependencies (Refer to these lines for package name mapping). The script doesn't support updating package.json yet, and it reads @salt-ds/theme/index.css for CSS variable verification, so you need to manually install new dependencies.
  3. Run node /path/to/this/repo/index.js

Use --help to see all available flags. e.g. if you want to migrate from v1.0.0 to v1.1.0, then do --from 1.0.0 --to 1.1.0

Note: TypeScript conversion will automatically pick up tsconfig.json at the current folder. If you're using monorepo without a tsconfig at the root, could opt to use tsSourceGlob instead.