diff --git a/packages/frontend-app-api/src/wiring/createPluginInfoAttacher.test.ts b/packages/frontend-app-api/src/wiring/createPluginInfoAttacher.test.ts index 5595c04135..6c053f8aed 100644 --- a/packages/frontend-app-api/src/wiring/createPluginInfoAttacher.test.ts +++ b/packages/frontend-app-api/src/wiring/createPluginInfoAttacher.test.ts @@ -121,7 +121,7 @@ describe('createPluginInfoAttacher', () => { }, { title: 'Repository', - url: 'https://github.com/test/project/tree/master/packages/test', + url: 'https://github.com/test/project/tree/-/packages/test', }, ], }); diff --git a/packages/frontend-app-api/src/wiring/createPluginInfoAttacher.ts b/packages/frontend-app-api/src/wiring/createPluginInfoAttacher.ts index 2b6f3a57f7..dc2b54f534 100644 --- a/packages/frontend-app-api/src/wiring/createPluginInfoAttacher.ts +++ b/packages/frontend-app-api/src/wiring/createPluginInfoAttacher.ts @@ -210,7 +210,7 @@ function resolvePackageInfo(packageJson?: JsonObject) { url.hostname === 'github.com' && typeof packageJson.repository.directory === 'string' ) { - const path = `${url.pathname}/tree/master/${packageJson.repository.directory}`; + const path = `${url.pathname}/tree/-/${packageJson.repository.directory}`; url.pathname = path.replaceAll('//', '/'); } diff --git a/packages/frontend-plugin-api/src/wiring/createFrontendPlugin.ts b/packages/frontend-plugin-api/src/wiring/createFrontendPlugin.ts index 13c39a37e9..c16ac329cc 100644 --- a/packages/frontend-plugin-api/src/wiring/createFrontendPlugin.ts +++ b/packages/frontend-plugin-api/src/wiring/createFrontendPlugin.ts @@ -109,9 +109,7 @@ export interface FrontendPlugin< extensions: Array; /** - * Overrides to merge with the original plugin info. The merging is done for - * each top-level field. Setting a field explicitly to `undefined` will - * remove it. + * Overrides the original info loaders of the plugin one by one. */ info?: FrontendPluginInfoOptions; }): FrontendPlugin;