Skip to content

Commit

Permalink
chore(schematics): valid migration for NG_EVENT_PLUGINS
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Jan 3, 2025
1 parent 5171c2e commit 6c1d2f9
Showing 1 changed file with 22 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,45 @@ const MODULE_BEFORE = `import { TuiMobileCalendarDialogModule } from "@taiga-ui/
import { OldModule } from "@namespace/cdk";
import { TuiMarkerIconModule } from "@taiga-ui/kit";
import { TuiProprietaryRootModule } from "@taiga-ui/proprietary-core";
import { NG_EVENT_PLUGINS } from '@tinkoff/ng-event-plugins';
@NgModule({
imports: [TuiMobileCalendarDialogModule, TuiProprietaryRootModule, OldModule, TuiAvatar, TuiAvatar, TuiAvatar, TuiMarkerIconModule],
providers: [Provider]
})
export class Test {
}`;
export class Test1 {
}
@NgModule({
imports: [],
providers: [Provider, NG_EVENT_PLUGINS]
})
export class Test2 {
}
`;

const MODULE_AFTER = `import { newProvider } from "@namespace/new";
import { tuiProvideMobileCalendar } from "@taiga-ui/addon-mobile";
import { TuiAvatar } from "@taiga-ui/kit";
import { TBANK_PROVIDERS } from "@taiga-ui/proprietary";
import { NG_EVENT_PLUGINS } from "@taiga-ui/event-plugins";
import { TuiRoot } from "@taiga-ui/core";
import { NG_EVENT_PLUGINS } from '@taiga-ui/event-plugins';
@NgModule({
imports: [TuiRoot, TuiAvatar],
providers: [Provider, NG_EVENT_PLUGINS, TBANK_PROVIDERS, tuiProvideMobileCalendar(), newProvider]
})
export class Test {
}`;
export class Test1 {
}
@NgModule({
imports: [],
providers: [Provider, NG_EVENT_PLUGINS]
})
export class Test2 {
}
`;

const COMPONENT_BEFORE = `import { TuiMobileCalendarDialogModule } from "@taiga-ui/addon-mobile";
import { OldModule } from "@namespace/cdk";
Expand Down

0 comments on commit 6c1d2f9

Please sign in to comment.