Socket
Socket
Sign inDemoInstall

@ant-design/codemod

Package Overview
Dependencies
448
Maintainers
12
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ant-design/codemod

Codemod for ant design v4 upgrade


Version published
Weekly downloads
2
Maintainers
12
Created
Weekly downloads
 

Readme

Source

Ant Design Codemod

A collection of codemod scripts that help upgrade antd v4 using jscodeshift.(Inspired by react-codemod)

Usage

# for tsx
npx -p @ant-design/codemod antd-codemod run --path src --parser=tsx
npx -p @ant-design/codemod antd-codemod run --path src/**/*.tsx

# for js
npx -p @ant-design/codemod antd-codemod run --path src
npx -p @ant-design/codemod antd-codemod run --path src/**/*.js

tips

If you are using typescript, you can use --parser=tsx option.

Keywords

FAQs

Last updated on 01 Dec 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc