Skip to content

Commit

Permalink
fix(cdk): schematics fix global-styles migration (#3797)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirpotekhin authored Mar 6, 2023
1 parent 8f9969f commit 21cc5fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/cdk/schematics/ng-update/v3/steps/replace-styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ export function replaceStyles(): void {
.replace(`&[data-state='pressed']`, `&[data-state='active']`)
.replace(`tui-portal-host`, `tui-dropdown-host`)
.replace(`tui-dropdown-box`, `tui-dropdown`)
.replace(/@import '~@taiga-ui/g, `@import '@taiga-ui`)
.replace(
`@import '~@taiga-ui/core/styles/taiga-ui-global';`,
`@import '@taiga-ui/core/styles/taiga-ui-global';`,
`${TUI_WARNING_NORMALIZE}\n@import '@taiga-ui/styles/taiga-ui-global.less';`,
)
.replace(/@import '~@taiga-ui/g, `@import '@taiga-ui`)
.replace(/@import '@taiga-ui\/.+(.less)?';/g, val =>
`${val.replace(`';`, ``)}.less';`.replace(`.less.less`, `.less`),
);
Expand Down

0 comments on commit 21cc5fa

Please sign in to comment.