diff --git a/packages/yarn-plugin/api-report.md b/packages/yarn-plugin/api-report.md new file mode 100644 index 0000000000..f0300ec9a1 --- /dev/null +++ b/packages/yarn-plugin/api-report.md @@ -0,0 +1,11 @@ +## API Report File for "yarn-plugin-backstage" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts +import { Plugin as Plugin_2 } from '@yarnpkg/core'; + +// @public (undocumented) +const plugin: Plugin_2; +export default plugin; +``` diff --git a/packages/yarn-plugin/src/index.ts b/packages/yarn-plugin/src/index.ts index ce12c836dd..aac855fadf 100644 --- a/packages/yarn-plugin/src/index.ts +++ b/packages/yarn-plugin/src/index.ts @@ -13,9 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + +/** + * Yarn plugin for resolving package versions based on + * a Backstage version manifest. + * + * @packageDocumentation + */ + import { Plugin } from '@yarnpkg/core'; import { BackstageResolver } from './resolver/BackstageResolver'; +/** + * @public + */ const plugin: Plugin = { resolvers: [BackstageResolver], }; diff --git a/packages/yarn-plugin/src/resolver/BackstageResolver.ts b/packages/yarn-plugin/src/resolver/BackstageResolver.ts index 5c227d84e4..8a28c481ed 100644 --- a/packages/yarn-plugin/src/resolver/BackstageResolver.ts +++ b/packages/yarn-plugin/src/resolver/BackstageResolver.ts @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { structUtils, Descriptor,