diff --git a/.changeset/fluffy-jeans-eat.md b/.changeset/fluffy-jeans-eat.md new file mode 100644 index 0000000000..8935c33937 --- /dev/null +++ b/.changeset/fluffy-jeans-eat.md @@ -0,0 +1,5 @@ +--- +'@backstage/cli': patch +--- + +Added check for the `repository` field in the `repo fix` command. diff --git a/.changeset/fuzzy-turtles-camp.md b/.changeset/fuzzy-turtles-camp.md new file mode 100644 index 0000000000..ca1767bd30 --- /dev/null +++ b/.changeset/fuzzy-turtles-camp.md @@ -0,0 +1,5 @@ +--- +'@backstage/cli-node': patch +--- + +Added `repository` field to `BackstagePackageJson` type. diff --git a/.changeset/poor-points-do.md b/.changeset/poor-points-do.md new file mode 100644 index 0000000000..198ef24c83 --- /dev/null +++ b/.changeset/poor-points-do.md @@ -0,0 +1,46 @@ +--- +'@backstage/plugin-catalog-backend-module-scaffolder-entity-model': patch +'@backstage/plugin-search-backend-module-stack-overflow-collator': patch +'@backstage/plugin-permission-backend-module-allow-all-policy': patch +'@backstage/plugin-scaffolder-backend-module-bitbucket-server': patch +'@backstage/plugin-auth-backend-module-oauth2-proxy-provider': patch +'@backstage/plugin-auth-backend-module-vmware-cloud-provider': patch +'@backstage/plugin-scaffolder-backend-module-bitbucket-cloud': patch +'@backstage/plugin-catalog-backend-module-backstage-openapi': patch +'@backstage/plugin-auth-backend-module-atlassian-provider': patch +'@backstage/plugin-auth-backend-module-microsoft-provider': patch +'@backstage/plugin-auth-backend-module-pinniped-provider': patch +'@backstage/plugin-auth-backend-module-github-provider': patch +'@backstage/plugin-auth-backend-module-gitlab-provider': patch +'@backstage/plugin-auth-backend-module-oauth2-provider': patch +'@backstage/plugin-scaffolder-backend-module-bitbucket': patch +'@backstage/plugin-analytics-module-newrelic-browser': patch +'@backstage/plugin-auth-backend-module-oidc-provider': patch +'@backstage/plugin-auth-backend-module-okta-provider': patch +'@backstage/plugin-catalog-backend-module-github-org': patch +'@backstage/backend-dynamic-feature-service': patch +'@backstage/plugin-scaffolder-backend-module-gerrit': patch +'@backstage/plugin-scaffolder-backend-module-github': patch +'@backstage/plugin-scaffolder-backend-module-azure': patch +'@backstage/plugin-notifications-backend': patch +'@backstage/frontend-test-utils': patch +'@backstage/plugin-analytics-module-ga4': patch +'@backstage/plugin-notifications-common': patch +'@backstage/plugin-notifications-node': patch +'@backstage/frontend-app-api': patch +'@backstage/plugin-kubernetes-react': patch +'@backstage/e2e-test-utils': patch +'@backstage/plugin-kubernetes-node': patch +'@backstage/plugin-signals-backend': patch +'@backstage/plugin-app-visualizer': patch +'@backstage/plugin-notifications': patch +'@backstage/plugin-signals-react': patch +'@backstage/plugin-vault-backend': patch +'@backstage/plugin-signals-node': patch +'@backstage/plugin-vault-node': patch +'@backstage/plugin-app-node': patch +'@backstage/plugin-opencost': patch +'@backstage/plugin-signals': patch +--- + +Added or fixed the `repository` field in `package.json`. diff --git a/package.json b/package.json index 053e031dcb..8ee2f151a1 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,10 @@ "prepare": "husky", "postinstall": "husky || true" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage" + }, "workspaces": { "packages": [ "packages/*", diff --git a/packages/app-next/package.json b/packages/app-next/package.json index 3848870f53..4d9ee93474 100644 --- a/packages/app-next/package.json +++ b/packages/app-next/package.json @@ -2,6 +2,11 @@ "name": "example-app-next", "version": "0.0.6-next.2", "private": true, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "packages/app-next" + }, "backstage": { "role": "frontend" }, diff --git a/packages/backend-dynamic-feature-service/package.json b/packages/backend-dynamic-feature-service/package.json index 08e3af8cec..01616e38b8 100644 --- a/packages/backend-dynamic-feature-service/package.json +++ b/packages/backend-dynamic-feature-service/package.json @@ -9,6 +9,11 @@ "main": "dist/index.cjs.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "packages/backend-dynamic-feature-service" + }, "backstage": { "role": "node-library" }, diff --git a/packages/cli-node/api-report.md b/packages/cli-node/api-report.md index 71be6c4bd4..4bd152dca8 100644 --- a/packages/cli-node/api-report.md +++ b/packages/cli-node/api-report.md @@ -55,6 +55,14 @@ export interface BackstagePackageJson { registry?: string; }; // (undocumented) + repository?: + | string + | { + type: string; + url: string; + directory: string; + }; + // (undocumented) scripts?: { [key: string]: string; }; diff --git a/packages/cli-node/src/monorepo/PackageGraph.ts b/packages/cli-node/src/monorepo/PackageGraph.ts index fb46dbde26..cd01ec833f 100644 --- a/packages/cli-node/src/monorepo/PackageGraph.ts +++ b/packages/cli-node/src/monorepo/PackageGraph.ts @@ -58,6 +58,14 @@ export interface BackstagePackageJson { registry?: string; }; + repository?: + | string + | { + type: string; + url: string; + directory: string; + }; + dependencies?: { [key: string]: string; }; diff --git a/packages/cli/src/commands/repo/fix.ts b/packages/cli/src/commands/repo/fix.ts index bd5b375ed5..b975203a73 100644 --- a/packages/cli/src/commands/repo/fix.ts +++ b/packages/cli/src/commands/repo/fix.ts @@ -22,7 +22,11 @@ import { } from '@backstage/cli-node'; import { OptionValues } from 'commander'; import fs from 'fs-extra'; -import { resolve as resolvePath } from 'path'; +import { + resolve as resolvePath, + join as joinPath, + relative as relativePath, +} from 'path'; import { paths } from '../../lib/paths'; /** @@ -189,12 +193,64 @@ export function fixSideEffects(pkg: FixablePackage) { pkg.changed = true; } +export function createRepositoryFieldFixer() { + const rootPkg = require(paths.resolveTargetRoot('package.json')); + const rootRepoField = rootPkg.repository; + if (!rootRepoField) { + return () => {}; + } + + const rootType = rootRepoField.type || 'git'; + const rootUrl = rootRepoField.url; + const rootDir = rootRepoField.directory || ''; + + return (pkg: FixablePackage) => { + const expectedPath = joinPath( + rootDir, + relativePath(paths.targetRoot, pkg.dir), + ); + const repoField = pkg.packageJson.repository; + + if (!repoField || typeof repoField === 'string') { + const pkgEntries = Object.entries(pkg.packageJson); + pkgEntries.splice( + // Place it just above the backstage field + pkgEntries.findIndex(([name]) => name === 'backstage'), + 0, + [ + 'repository', + { + type: rootType, + url: rootUrl, + directory: expectedPath, + }, + ], + ); + pkg.packageJson = Object.fromEntries(pkgEntries) as BackstagePackageJson; + pkg.changed = true; + return; + } + + // If there's a type or URL mismatch, leave the field as is + if (repoField.type !== rootType || repoField.url !== rootUrl) { + return; + } + + if (repoField.directory !== expectedPath) { + repoField.directory = expectedPath; + pkg.changed = true; + } + }; +} + export async function command(opts: OptionValues): Promise { const packages = await readFixablePackages(); + const fixRepositoryField = createRepositoryFieldFixer(); for (const pkg of packages) { fixPackageExports(pkg); fixSideEffects(pkg); + fixRepositoryField(pkg); } if (opts.check) { diff --git a/packages/e2e-test-utils/package.json b/packages/e2e-test-utils/package.json index 3448497395..84e001acff 100644 --- a/packages/e2e-test-utils/package.json +++ b/packages/e2e-test-utils/package.json @@ -22,6 +22,11 @@ ] } }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "packages/e2e-test-utils" + }, "backstage": { "role": "node-library" }, diff --git a/packages/frontend-app-api/package.json b/packages/frontend-app-api/package.json index 4dd530fd1a..3b9e5433f0 100644 --- a/packages/frontend-app-api/package.json +++ b/packages/frontend-app-api/package.json @@ -9,6 +9,11 @@ "main": "dist/index.esm.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "packages/frontend-app-api" + }, "backstage": { "role": "web-library" }, diff --git a/packages/frontend-test-utils/package.json b/packages/frontend-test-utils/package.json index ea1a461b72..80e15e11e2 100644 --- a/packages/frontend-test-utils/package.json +++ b/packages/frontend-test-utils/package.json @@ -9,6 +9,11 @@ "main": "dist/index.esm.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "packages/frontend-test-utils" + }, "backstage": { "role": "web-library" }, diff --git a/plugins/analytics-module-ga4/package.json b/plugins/analytics-module-ga4/package.json index 7b21e4a30d..83f43a0d6a 100644 --- a/plugins/analytics-module-ga4/package.json +++ b/plugins/analytics-module-ga4/package.json @@ -16,7 +16,7 @@ "repository": { "type": "git", "url": "https://github.com/backstage/backstage", - "directory": "plugins/plugins/analytics-module-ga4" + "directory": "plugins/analytics-module-ga4" }, "sideEffects": false, "scripts": { diff --git a/plugins/analytics-module-newrelic-browser/package.json b/plugins/analytics-module-newrelic-browser/package.json index e3d250f386..61f15092f5 100644 --- a/plugins/analytics-module-newrelic-browser/package.json +++ b/plugins/analytics-module-newrelic-browser/package.json @@ -9,6 +9,11 @@ "main": "dist/index.esm.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/analytics-module-newrelic-browser" + }, "backstage": { "role": "frontend-plugin-module" }, diff --git a/plugins/app-node/package.json b/plugins/app-node/package.json index 02c0d999da..7ea9fa1d3c 100644 --- a/plugins/app-node/package.json +++ b/plugins/app-node/package.json @@ -10,6 +10,11 @@ "main": "dist/index.cjs.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/app-node" + }, "backstage": { "role": "node-library" }, diff --git a/plugins/app-visualizer/package.json b/plugins/app-visualizer/package.json index 4b5568e06f..e87faf9f5b 100644 --- a/plugins/app-visualizer/package.json +++ b/plugins/app-visualizer/package.json @@ -5,6 +5,11 @@ "publishConfig": { "access": "public" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/app-visualizer" + }, "backstage": { "role": "frontend-plugin" }, diff --git a/plugins/auth-backend-module-atlassian-provider/package.json b/plugins/auth-backend-module-atlassian-provider/package.json index 2e9d8d8b32..288aeb1d05 100644 --- a/plugins/auth-backend-module-atlassian-provider/package.json +++ b/plugins/auth-backend-module-atlassian-provider/package.json @@ -10,6 +10,11 @@ "main": "dist/index.cjs.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/auth-backend-module-atlassian-provider" + }, "backstage": { "role": "backend-plugin-module" }, diff --git a/plugins/auth-backend-module-github-provider/package.json b/plugins/auth-backend-module-github-provider/package.json index c72730efae..7085e95003 100644 --- a/plugins/auth-backend-module-github-provider/package.json +++ b/plugins/auth-backend-module-github-provider/package.json @@ -10,6 +10,11 @@ "main": "dist/index.cjs.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/auth-backend-module-github-provider" + }, "backstage": { "role": "backend-plugin-module" }, diff --git a/plugins/auth-backend-module-gitlab-provider/package.json b/plugins/auth-backend-module-gitlab-provider/package.json index 5f60e9baff..f89c94b7e9 100644 --- a/plugins/auth-backend-module-gitlab-provider/package.json +++ b/plugins/auth-backend-module-gitlab-provider/package.json @@ -10,6 +10,11 @@ "main": "dist/index.cjs.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/auth-backend-module-gitlab-provider" + }, "backstage": { "role": "backend-plugin-module" }, diff --git a/plugins/auth-backend-module-microsoft-provider/package.json b/plugins/auth-backend-module-microsoft-provider/package.json index e68abd607e..32325c5574 100644 --- a/plugins/auth-backend-module-microsoft-provider/package.json +++ b/plugins/auth-backend-module-microsoft-provider/package.json @@ -10,6 +10,11 @@ "main": "dist/index.cjs.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/auth-backend-module-microsoft-provider" + }, "backstage": { "role": "backend-plugin-module" }, diff --git a/plugins/auth-backend-module-oauth2-provider/package.json b/plugins/auth-backend-module-oauth2-provider/package.json index c5d940c7e0..525fa5ab34 100644 --- a/plugins/auth-backend-module-oauth2-provider/package.json +++ b/plugins/auth-backend-module-oauth2-provider/package.json @@ -10,6 +10,11 @@ "main": "dist/index.cjs.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/auth-backend-module-oauth2-provider" + }, "backstage": { "role": "backend-plugin-module" }, diff --git a/plugins/auth-backend-module-oauth2-proxy-provider/package.json b/plugins/auth-backend-module-oauth2-proxy-provider/package.json index 17f5a512cb..3903108d2b 100644 --- a/plugins/auth-backend-module-oauth2-proxy-provider/package.json +++ b/plugins/auth-backend-module-oauth2-proxy-provider/package.json @@ -10,6 +10,11 @@ "main": "dist/index.cjs.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/auth-backend-module-oauth2-proxy-provider" + }, "backstage": { "role": "backend-plugin-module" }, diff --git a/plugins/auth-backend-module-oidc-provider/package.json b/plugins/auth-backend-module-oidc-provider/package.json index 93b6196bfb..d144fddc59 100644 --- a/plugins/auth-backend-module-oidc-provider/package.json +++ b/plugins/auth-backend-module-oidc-provider/package.json @@ -10,6 +10,11 @@ "main": "dist/index.cjs.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/auth-backend-module-oidc-provider" + }, "backstage": { "role": "backend-plugin-module" }, diff --git a/plugins/auth-backend-module-okta-provider/package.json b/plugins/auth-backend-module-okta-provider/package.json index c770d443bc..ab3e1a90a7 100644 --- a/plugins/auth-backend-module-okta-provider/package.json +++ b/plugins/auth-backend-module-okta-provider/package.json @@ -10,6 +10,11 @@ "main": "dist/index.cjs.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/auth-backend-module-okta-provider" + }, "backstage": { "role": "backend-plugin-module" }, diff --git a/plugins/auth-backend-module-pinniped-provider/package.json b/plugins/auth-backend-module-pinniped-provider/package.json index 977839c87a..6b3eee0675 100644 --- a/plugins/auth-backend-module-pinniped-provider/package.json +++ b/plugins/auth-backend-module-pinniped-provider/package.json @@ -10,6 +10,11 @@ "main": "dist/index.cjs.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/auth-backend-module-pinniped-provider" + }, "backstage": { "role": "backend-plugin-module" }, diff --git a/plugins/auth-backend-module-vmware-cloud-provider/package.json b/plugins/auth-backend-module-vmware-cloud-provider/package.json index ab5eb71477..db3f76dc66 100644 --- a/plugins/auth-backend-module-vmware-cloud-provider/package.json +++ b/plugins/auth-backend-module-vmware-cloud-provider/package.json @@ -10,6 +10,11 @@ "main": "dist/index.cjs.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/auth-backend-module-vmware-cloud-provider" + }, "backstage": { "role": "backend-plugin-module" }, diff --git a/plugins/catalog-backend-module-backstage-openapi/package.json b/plugins/catalog-backend-module-backstage-openapi/package.json index e76d550c11..19deaa42de 100644 --- a/plugins/catalog-backend-module-backstage-openapi/package.json +++ b/plugins/catalog-backend-module-backstage-openapi/package.json @@ -9,6 +9,11 @@ "main": "dist/index.cjs.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/catalog-backend-module-backstage-openapi" + }, "backstage": { "role": "backend-plugin-module" }, diff --git a/plugins/catalog-backend-module-github-org/package.json b/plugins/catalog-backend-module-github-org/package.json index 4eef491fef..fc460647ad 100644 --- a/plugins/catalog-backend-module-github-org/package.json +++ b/plugins/catalog-backend-module-github-org/package.json @@ -10,6 +10,11 @@ "main": "dist/index.cjs.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/catalog-backend-module-github-org" + }, "backstage": { "role": "backend-plugin-module" }, diff --git a/plugins/catalog-backend-module-scaffolder-entity-model/package.json b/plugins/catalog-backend-module-scaffolder-entity-model/package.json index 17304252f2..e1e6d0a966 100644 --- a/plugins/catalog-backend-module-scaffolder-entity-model/package.json +++ b/plugins/catalog-backend-module-scaffolder-entity-model/package.json @@ -19,6 +19,11 @@ ] } }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/catalog-backend-module-scaffolder-entity-model" + }, "backstage": { "role": "backend-plugin-module" }, diff --git a/plugins/example-todo-list-backend/package.json b/plugins/example-todo-list-backend/package.json index fb9ddd74a8..1a564ab689 100644 --- a/plugins/example-todo-list-backend/package.json +++ b/plugins/example-todo-list-backend/package.json @@ -12,7 +12,7 @@ "repository": { "type": "git", "url": "https://github.com/backstage/backstage", - "directory": "plugins/plugins/example-todo-list-backend" + "directory": "plugins/example-todo-list-backend" }, "publishConfig": { "access": "public", diff --git a/plugins/example-todo-list-common/package.json b/plugins/example-todo-list-common/package.json index 1d984812f9..df2cd403c4 100644 --- a/plugins/example-todo-list-common/package.json +++ b/plugins/example-todo-list-common/package.json @@ -17,7 +17,7 @@ "repository": { "type": "git", "url": "https://github.com/backstage/backstage", - "directory": "plugins/plugins/example-todo-list-common" + "directory": "plugins/example-todo-list-common" }, "sideEffects": false, "scripts": { diff --git a/plugins/kubernetes-node/package.json b/plugins/kubernetes-node/package.json index fa47649351..aeaa1c3dc4 100644 --- a/plugins/kubernetes-node/package.json +++ b/plugins/kubernetes-node/package.json @@ -10,6 +10,11 @@ "main": "dist/index.cjs.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/kubernetes-node" + }, "backstage": { "role": "node-library" }, diff --git a/plugins/kubernetes-react/package.json b/plugins/kubernetes-react/package.json index fa8e24b6ba..45df0bacb2 100644 --- a/plugins/kubernetes-react/package.json +++ b/plugins/kubernetes-react/package.json @@ -10,6 +10,11 @@ "main": "dist/index.esm.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/kubernetes-react" + }, "backstage": { "role": "web-library" }, diff --git a/plugins/notifications-backend/package.json b/plugins/notifications-backend/package.json index f9138e38b4..2b6b8ab573 100644 --- a/plugins/notifications-backend/package.json +++ b/plugins/notifications-backend/package.json @@ -9,6 +9,11 @@ "main": "dist/index.cjs.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/notifications-backend" + }, "backstage": { "role": "backend-plugin" }, diff --git a/plugins/notifications-common/package.json b/plugins/notifications-common/package.json index f2c4018ea9..a768d64b73 100644 --- a/plugins/notifications-common/package.json +++ b/plugins/notifications-common/package.json @@ -11,6 +11,11 @@ "module": "dist/index.esm.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/notifications-common" + }, "backstage": { "role": "common-library" }, diff --git a/plugins/notifications-node/package.json b/plugins/notifications-node/package.json index 44c38b2314..93cae9b929 100644 --- a/plugins/notifications-node/package.json +++ b/plugins/notifications-node/package.json @@ -10,6 +10,11 @@ "main": "dist/index.cjs.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/notifications-node" + }, "backstage": { "role": "node-library" }, diff --git a/plugins/notifications/package.json b/plugins/notifications/package.json index e41bedc17a..2e0a75d39b 100644 --- a/plugins/notifications/package.json +++ b/plugins/notifications/package.json @@ -9,6 +9,11 @@ "main": "dist/index.esm.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/notifications" + }, "backstage": { "role": "frontend-plugin" }, diff --git a/plugins/opencost/package.json b/plugins/opencost/package.json index 5fba181742..e947f307d4 100644 --- a/plugins/opencost/package.json +++ b/plugins/opencost/package.json @@ -9,6 +9,11 @@ "main": "dist/index.esm.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/opencost" + }, "backstage": { "role": "frontend-plugin" }, diff --git a/plugins/permission-backend-module-policy-allow-all/package.json b/plugins/permission-backend-module-policy-allow-all/package.json index 22027f88f1..b2284a6455 100644 --- a/plugins/permission-backend-module-policy-allow-all/package.json +++ b/plugins/permission-backend-module-policy-allow-all/package.json @@ -10,6 +10,11 @@ "main": "dist/index.cjs.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/permission-backend-module-policy-allow-all" + }, "backstage": { "role": "backend-plugin-module" }, diff --git a/plugins/scaffolder-backend-module-azure/package.json b/plugins/scaffolder-backend-module-azure/package.json index 5c69820477..4c30a38d74 100644 --- a/plugins/scaffolder-backend-module-azure/package.json +++ b/plugins/scaffolder-backend-module-azure/package.json @@ -8,6 +8,11 @@ "publishConfig": { "access": "public" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/scaffolder-backend-module-azure" + }, "backstage": { "role": "backend-plugin-module" }, diff --git a/plugins/scaffolder-backend-module-bitbucket-cloud/package.json b/plugins/scaffolder-backend-module-bitbucket-cloud/package.json index 23136e9d0d..a71ff30e7b 100644 --- a/plugins/scaffolder-backend-module-bitbucket-cloud/package.json +++ b/plugins/scaffolder-backend-module-bitbucket-cloud/package.json @@ -8,6 +8,11 @@ "publishConfig": { "access": "public" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/scaffolder-backend-module-bitbucket-cloud" + }, "backstage": { "role": "backend-plugin-module" }, diff --git a/plugins/scaffolder-backend-module-bitbucket-server/package.json b/plugins/scaffolder-backend-module-bitbucket-server/package.json index 261bf3eb31..32384a77ea 100644 --- a/plugins/scaffolder-backend-module-bitbucket-server/package.json +++ b/plugins/scaffolder-backend-module-bitbucket-server/package.json @@ -8,6 +8,11 @@ "publishConfig": { "access": "public" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/scaffolder-backend-module-bitbucket-server" + }, "backstage": { "role": "backend-plugin-module" }, diff --git a/plugins/scaffolder-backend-module-bitbucket/package.json b/plugins/scaffolder-backend-module-bitbucket/package.json index 5393340287..6d572cdf5f 100644 --- a/plugins/scaffolder-backend-module-bitbucket/package.json +++ b/plugins/scaffolder-backend-module-bitbucket/package.json @@ -9,6 +9,11 @@ "publishConfig": { "access": "public" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/scaffolder-backend-module-bitbucket" + }, "backstage": { "role": "backend-plugin-module" }, diff --git a/plugins/scaffolder-backend-module-gerrit/package.json b/plugins/scaffolder-backend-module-gerrit/package.json index 7fd95a1209..93d325fcf7 100644 --- a/plugins/scaffolder-backend-module-gerrit/package.json +++ b/plugins/scaffolder-backend-module-gerrit/package.json @@ -8,6 +8,11 @@ "publishConfig": { "access": "public" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/scaffolder-backend-module-gerrit" + }, "backstage": { "role": "backend-plugin-module" }, diff --git a/plugins/scaffolder-backend-module-github/package.json b/plugins/scaffolder-backend-module-github/package.json index f065d1f50a..fd3ce88491 100644 --- a/plugins/scaffolder-backend-module-github/package.json +++ b/plugins/scaffolder-backend-module-github/package.json @@ -8,6 +8,11 @@ "publishConfig": { "access": "public" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/scaffolder-backend-module-github" + }, "backstage": { "role": "backend-plugin-module" }, diff --git a/plugins/search-backend-module-stack-overflow-collator/package.json b/plugins/search-backend-module-stack-overflow-collator/package.json index 8ff7324e08..aaa6bf68b3 100644 --- a/plugins/search-backend-module-stack-overflow-collator/package.json +++ b/plugins/search-backend-module-stack-overflow-collator/package.json @@ -17,7 +17,7 @@ "repository": { "type": "git", "url": "https://github.com/backstage/backstage", - "directory": "plugins/search-backend-module-stack-overflow" + "directory": "plugins/search-backend-module-stack-overflow-collator" }, "scripts": { "start": "backstage-cli package start", diff --git a/plugins/signals-backend/package.json b/plugins/signals-backend/package.json index fa33e58992..728b11f7ba 100644 --- a/plugins/signals-backend/package.json +++ b/plugins/signals-backend/package.json @@ -9,6 +9,11 @@ "main": "dist/index.cjs.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/signals-backend" + }, "backstage": { "role": "backend-plugin" }, diff --git a/plugins/signals-node/package.json b/plugins/signals-node/package.json index 09aa8e2d2e..40837e90a1 100644 --- a/plugins/signals-node/package.json +++ b/plugins/signals-node/package.json @@ -10,6 +10,11 @@ "main": "dist/index.cjs.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/signals-node" + }, "backstage": { "role": "node-library" }, diff --git a/plugins/signals-react/package.json b/plugins/signals-react/package.json index a977de7802..a8aa9bd885 100644 --- a/plugins/signals-react/package.json +++ b/plugins/signals-react/package.json @@ -10,6 +10,11 @@ "main": "dist/index.esm.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/signals-react" + }, "backstage": { "role": "web-library" }, diff --git a/plugins/signals/package.json b/plugins/signals/package.json index 45be979c8c..9f69b615dc 100644 --- a/plugins/signals/package.json +++ b/plugins/signals/package.json @@ -9,6 +9,11 @@ "main": "dist/index.esm.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/signals" + }, "backstage": { "role": "frontend-plugin" }, diff --git a/plugins/vault-backend/package.json b/plugins/vault-backend/package.json index 4bd9d93c3e..7dafc4a0d2 100644 --- a/plugins/vault-backend/package.json +++ b/plugins/vault-backend/package.json @@ -17,7 +17,7 @@ "repository": { "type": "git", "url": "https://github.com/backstage/backstage", - "directory": "plugins/vault" + "directory": "plugins/vault-backend" }, "keywords": [ "backstage", diff --git a/plugins/vault-node/package.json b/plugins/vault-node/package.json index 0460b3fd8e..f5ab268b58 100644 --- a/plugins/vault-node/package.json +++ b/plugins/vault-node/package.json @@ -10,6 +10,11 @@ "main": "dist/index.cjs.js", "types": "dist/index.d.ts" }, + "repository": { + "type": "git", + "url": "https://github.com/backstage/backstage", + "directory": "plugins/vault-node" + }, "backstage": { "role": "node-library" },