New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

salt-codemod

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

salt-codemod

Codemod to help upgrade Salt design system packages

  • 0.1.0-alpha.0
  • alpha
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
0
Weekly downloads
 
Created
Source

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.

PS: If you run npm link in the root folder, you'll be able to run salt-codemod as if it's a command. npm unlink to undo.

FAQs

Package last updated on 03 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc