Skip to content

Commit

Permalink
finisch migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
hirsch88 committed Mar 3, 2024
1 parent 7f46469 commit 1508771
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
5 changes: 5 additions & 0 deletions packages/devkit/src/ng-upgrade-16/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export function changePackageName(_options: any): Rule {
changePackage('design-system-components', 'ds-core')

changePackage('design-system-css', 'ds-css')

changePackage('design-system-styles', 'ds-styles')
changePackage('design-system-tokens', 'ds-tokens')

Expand All @@ -90,6 +91,10 @@ export function changePackageName(_options: any): Rule {
changePackage('design-system-testing', 'ds-testing')
changePackage('design-system-cli', 'ds-devkit')

if (!packageJson.dependencies[`@baloise/ds-css`] && !packageJson.dependencies[`@baloise/ds-styles`]) {
packageJson.dependencies[`@baloise/ds-css`] = upgradeVersion
}

tree.overwrite(packageJsonPath, JSON.stringify(packageJson, null, 2))

return tree
Expand Down
8 changes: 1 addition & 7 deletions packages/devkit/src/ng-upgrade-16/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
"$id": "bds-ng-upgrade-16",
"title": "Upgrade an angular application the v16 of Baloise Design System",
"type": "object",
"properties": {
"styles": {
"x-prompt": "Do you want to migrate to new styles package?",
"type": "boolean",
"default": true
}
},
"properties": {},
"required": []
}
5 changes: 2 additions & 3 deletions packages/devkit/src/ng-upgrade-16/schema.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export interface SchemaOptions {
styles: boolean
}
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface SchemaOptions {}

0 comments on commit 1508771

Please sign in to comment.