UNPKG

@ts-intl/dependency

Version:

I18n keys dependency analysis

9 lines (7 loc) 271 B
import { Deleted, IAction } from '../types'; import { deleteModule } from '../utils'; export const deletedAction: IAction<Deleted> = async ({ from }, opts, ctx) => { ctx.graph = await deleteModule(from, ctx.graph); delete ctx.pathIntlKeysMap[from]; return ctx; };