Registry
N

tiptap-2-migrate-imports

No description available

nperez01113 executions

  • Legacy
  • tiptap
Connect a repo
npx codemod tiptap-2-migrate-imports

This is a codemod created with codemod init.

Using this codemod

You can run this codemod with the following command:

bash
npx codemod tiptap-2-migrate-imports

Before

ts
import Table from '@tiptap/extension-table';
import TableRow from '@tiptap/extension-table-row';
import TableCell from '@tiptap/extension-table-cell';
import TableHeader from '@tiptap/extension-table-header';

After

ts
import {
  Table,
  TableRow,
  TableCell,
  TableHeader,
} from '@tiptap/extension-table';

,

Before

ts
import { Table } from '@tiptap/extension-table';
import { TableRow } from '@tiptap/extension-table-row';
import { TableCell } from '@tiptap/extension-table-cell';
import { TableHeader } from '@tiptap/extension-table-header';

After

ts
import {
  Table,
  TableRow,
  TableCell,
  TableHeader,
} from '@tiptap/extension-table';

,

Before

ts
import Table1 from '@tiptap/extension-table';
import TableR from '@tiptap/extension-table-row';
import TableCel from '@tiptap/extension-table-cell';
import TableHead from '@tiptap/extension-table-header';

After

ts
import {
  Table as Table1,
  TableRow as TableR,
  TableCell as TableCel,
  TableHeader as TableHead,
} from '@tiptap/extension-table';

,

Before

ts
import BulletList from '@tiptap/extension-bullet-list';
import OrderedList from '@tiptap/extension-ordered-list';
import ListItem from '@tiptap/extension-list-item';

After

ts
import { BulletList, OrderedList, ListItem } from '@tiptap/extension-list';

,

Before

ts
import TextStyle from '@tiptap/extension-text-style';
import { Color } from '@tiptap/extension-color';

After

ts
import { TextStyle, Color } from '@tiptap/extension-text-style';

,

Before

ts
import { PlaceHolder } from '@tiptap/extension-placeholder';
import History from '@tiptap/extension-history';

After

ts
import { PlaceHolder, History } from '@tiptap/extensions';

Ready to evolve your codebase?

Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.