Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: Improve the migrate tooling #24375

Merged
merged 5 commits into from
Apr 19, 2024
Merged

Conversation

benjdlambert
Copy link
Member

This adds the ability to do find and replace in the packages for the packages that have changed in the community migration.

This assumes that there's no breaking changes in the packages and is here to help smooth the migration process to the new namespaces.

This is kind of best effort, and we're hoping fixes most use cases 🤞

Signed-off-by: blam <ben@blam.sh>
…ful about the replacing

Signed-off-by: blam <ben@blam.sh>
Signed-off-by: blam <ben@blam.sh>
@backstage-goalie
Copy link
Contributor

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage/cli packages/cli patch v0.26.3

Copy link
Contributor

github-actions bot commented Apr 19, 2024

Uffizzi Cluster pr-24375 was deleted.

@freben
Copy link
Member

freben commented Apr 19, 2024

needs api reports

Signed-off-by: blam <ben@blam.sh>
@@ -15,45 +15,54 @@
*/
import { BackstagePackageJson, PackageGraph } from '@backstage/cli-node';
import chalk from 'chalk';
import { resolve as resolvePath } from 'path';
import { resolve as resolvePath, join } from 'path';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import { resolve as resolvePath, join } from 'path';
import { resolve as resolvePath, joinPath } from 'path';

just a common pattern

import { OptionValues } from 'commander';
import { readJson, writeJson } from 'fs-extra';
import { minimatch } from 'minimatch';
import { runYarnInstall } from './bump';
import replace from 'replace-in-file';

declare module 'replace-in-file' {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ew, but ok

Signed-off-by: blam <ben@blam.sh>
@benjdlambert benjdlambert merged commit 064ae68 into master Apr 19, 2024
36 checks passed
@benjdlambert benjdlambert deleted the blam/improve-migrate-tooling branch April 19, 2024 10:02
Copy link
Contributor

Thank you for contributing to Backstage! The changes in this pull request will be part of the 1.27.0 release, scheduled for Tue, 18 Jun 2024.

benjdlambert added a commit that referenced this pull request Apr 19, 2024
Signed-off-by: blam <ben@blam.sh>
benjdlambert added a commit that referenced this pull request Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants