@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
24 lines (22 loc) • 623 B
text/typescript
import type { JSCodeshift, Collection } from '@atlaskit/codemod-utils';
import { changeImportEntryPoint } from '@atlaskit/codemod-utils/utils';
export const updateImportEntryPointsForDefaultSchema: ((
j: JSCodeshift,
root: Collection<Node>,
) => void)[] = [
changeImportEntryPoint(
'@atlaskit/adf-schema',
'defaultSchema',
'@atlaskit/adf-schema/schema-default',
),
changeImportEntryPoint(
'@atlaskit/adf-schema',
'getSchemaBasedOnStage',
'@atlaskit/adf-schema/schema-default',
),
changeImportEntryPoint(
'@atlaskit/adf-schema',
'defaultSchemaConfig',
'@atlaskit/adf-schema/schema-default',
),
];