diff --git a/plugins/catalog-import/config.d.ts b/plugins/catalog-import/config.d.ts new file mode 100644 index 0000000000..b5c5edb89a --- /dev/null +++ b/plugins/catalog-import/config.d.ts @@ -0,0 +1,33 @@ +/* + * Copyright 2022 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 interface Config { + /** + * Configuration options for the catalog plugin. + */ + catalog?: { + /** + * List of import flow specific options and attributes + */ + import?: { + /** + * Catalog entity descriptor filename, defaults to "catalog-info.yaml" + * @visibility frontend + */ + entityFilename?: string; + }; + }; +} diff --git a/plugins/catalog-import/package.json b/plugins/catalog-import/package.json index ff9fcb24c2..5097f5cc9b 100644 --- a/plugins/catalog-import/package.json +++ b/plugins/catalog-import/package.json @@ -69,6 +69,8 @@ "msw": "^0.35.0" }, "files": [ - "dist" - ] + "dist", + "config.d.ts" + ], + "configSchema": "config.d.ts" }