Skip to content

Latest commit

 

History

History

rb-to-talend-rb

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

React-bootstrap to @talend/react-bootstrap

find -E TARGET_PATH -regex '.*\.(jsx?|tsx?)' | xargs npx jscodeshift -t ./index.js

This script transform react-bootstrap imports

import React from 'react';
import ReactBootstrap from 'react-bootstrap';
import { Modal } from 'react-bootstrap';

const Button = props => <button {...props} />;

into

import React from 'react';
import ReactBootstrap from '@talend/react-bootstrap';
import { Modal } from '@talend/react-bootstrap';

const Button = props => <button {...props} />;