diff --git a/plugins/adr/alpha-api-report.md b/plugins/adr/alpha-api-report.md new file mode 100644 index 0000000000..1d2b3f313d --- /dev/null +++ b/plugins/adr/alpha-api-report.md @@ -0,0 +1,16 @@ +## API Report File for "@backstage/plugin-adr" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts +import { TranslationRef } from '@backstage/core-plugin-api/alpha'; + +// @alpha (undocumented) +export const adrTranslationRef: TranslationRef<{ + readonly content_header_title: 'Architecture Decision Records'; + readonly failed_to_fetch: 'Failed to fetch ADRs'; + readonly no_adrs: 'No ADRs found'; +}>; + +// (No @packageDocumentation comment for this package) +``` diff --git a/plugins/adr/package.json b/plugins/adr/package.json index 4cefeef71e..eb55663c1a 100644 --- a/plugins/adr/package.json +++ b/plugins/adr/package.json @@ -4,10 +4,23 @@ "main": "src/index.ts", "types": "src/index.ts", "license": "Apache-2.0", + "exports": { + ".": "./src/index.ts", + "./alpha": "./src/alpha.ts", + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "alpha": [ + "src/alpha.ts" + ], + "package.json": [ + "package.json" + ] + } + }, "publishConfig": { - "access": "public", - "main": "dist/index.esm.js", - "types": "dist/index.d.ts" + "access": "public" }, "backstage": { "role": "frontend-plugin" diff --git a/plugins/adr/src/alpha.ts b/plugins/adr/src/alpha.ts new file mode 100644 index 0000000000..587cfce3d6 --- /dev/null +++ b/plugins/adr/src/alpha.ts @@ -0,0 +1,16 @@ +/* + * Copyright 2023 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export * from './translations'; diff --git a/plugins/adr/src/translations.ts b/plugins/adr/src/translations.ts index cc0995f597..5cef279e66 100644 --- a/plugins/adr/src/translations.ts +++ b/plugins/adr/src/translations.ts @@ -22,5 +22,5 @@ export const adrTranslationRef = createTranslationRef({ content_header_title: 'Architecture Decision Records', failed_to_fetch: 'Failed to fetch ADRs', no_adrs: 'No ADRs found', - }, + } as const, });