Skip to content

Commit

Permalink
chore: upgrade editor
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Sep 27, 2024
1 parent 329a782 commit bcb8f61
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
import {replaceIdentifiers} from '../../steps/replace-identifier';
import {replacePackageName} from '../../steps/replace-package-name';

export const TUI_EDITOR_VERSION = '^4.10.0';
export const TUI_EDITOR_VERSION = '^4.11.0';

export function migrateEditor(fileSystem: DevkitFileSystem, options: TuiSchema): void {
const moduleSpecifier = ['@tinkoff/tui-editor', '@taiga-ui/addon-editor'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ import {
setActiveProject,
} from 'ng-morph';

import {TUI_EDITOR_VERSION} from '../steps/migrate-editor';
import {
TUI_EVENT_PLUGINS_VERSION,
TUI_POLYMORPHEUS_VERSION,
} from '../steps/update-packages';

const collectionPath = join(__dirname, '../../../migration.json');

const COMPONENT_BEFORE = `
Expand Down Expand Up @@ -104,10 +110,10 @@ const PACKAGE_JSON_AFTER = `{
"@angular/core": "~13.0.0",
"@taiga-ui/core": "~3.35.0",
"@taiga-ui/cdk": "~3.35.0",
"@taiga-ui/editor": "^4.10.0",
"@taiga-ui/event-plugins": "^4.2.3",
"@taiga-ui/editor": "${TUI_EDITOR_VERSION}",
"@taiga-ui/event-plugins": "${TUI_EVENT_PLUGINS_VERSION}",
"@taiga-ui/legacy": "${TUI_VERSION}",
"@taiga-ui/polymorpheus": "^4.7.3"
"@taiga-ui/polymorpheus": "${TUI_POLYMORPHEUS_VERSION}"
}
}`.trim();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
} from 'ng-morph';

import {makeAngularJsonWithAssets} from '../../../utils/make-angular-json-with-assets';
import {TUI_EVENT_PLUGINS_VERSION} from '../steps/update-packages';

const collectionPath = join(__dirname, '../../../migration.json');

Expand Down Expand Up @@ -125,7 +126,7 @@ const PACKAGE_JSON_AFTER = `
{
"dependencies": {
"@angular/core": "~13.0.0",
"@taiga-ui/event-plugins": "^4.2.3",
"@taiga-ui/event-plugins": "${TUI_EVENT_PLUGINS_VERSION}",
"@taiga-ui/legacy": "${TUI_VERSION}",
"@taiga-ui/proprietary": "${TUI_VERSION}"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ import {
setActiveProject,
} from 'ng-morph';

import {TUI_EDITOR_VERSION} from '../steps/migrate-editor';
import {
TUI_EVENT_PLUGINS_VERSION,
TUI_POLYMORPHEUS_VERSION,
} from '../steps/update-packages';

const collectionPath = join(__dirname, '../../../migration.json');

const COMPONENT_BEFORE = `
Expand Down Expand Up @@ -102,10 +108,10 @@ const PACKAGE_JSON_AFTER = `{
"@angular/core": "~13.0.0",
"@taiga-ui/core": "~3.42.0",
"@taiga-ui/cdk": "~3.42.0",
"@taiga-ui/editor": "^4.10.0",
"@taiga-ui/event-plugins": "^4.2.3",
"@taiga-ui/editor": "${TUI_EDITOR_VERSION}",
"@taiga-ui/event-plugins": "${TUI_EVENT_PLUGINS_VERSION}",
"@taiga-ui/legacy": "${TUI_VERSION}",
"@taiga-ui/polymorpheus": "^4.7.3"
"@taiga-ui/polymorpheus": "${TUI_POLYMORPHEUS_VERSION}"
}
}`.trim();

Expand Down

0 comments on commit bcb8f61

Please sign in to comment.