From 5a3bd232a29b4e942f2a5ea9c67af045b8c4116e Mon Sep 17 00:00:00 2001 From: Andrew Shirley Date: Fri, 2 Jul 2021 11:35:46 +0100 Subject: [PATCH] Better organise exports Signed-off-by: Andrew Shirley Signed-off-by: blam --- plugins/jenkins-backend/src/index.ts | 7 +------ plugins/jenkins-backend/src/service/index.ts | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 plugins/jenkins-backend/src/service/index.ts diff --git a/plugins/jenkins-backend/src/index.ts b/plugins/jenkins-backend/src/index.ts index fc84bd26a1..c5c541db2b 100644 --- a/plugins/jenkins-backend/src/index.ts +++ b/plugins/jenkins-backend/src/index.ts @@ -14,9 +14,4 @@ * limitations under the License. */ -export * from './service/router'; -export type { - JenkinsInfo, - JenkinsInfoProvider, -} from './service/jenkinsInfoProvider'; -export { DefaultJenkinsInfoProvider } from './service/jenkinsInfoProvider'; +export * from './service'; diff --git a/plugins/jenkins-backend/src/service/index.ts b/plugins/jenkins-backend/src/service/index.ts new file mode 100644 index 0000000000..329092e881 --- /dev/null +++ b/plugins/jenkins-backend/src/service/index.ts @@ -0,0 +1,20 @@ +/* + * Copyright 2020 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 type { RouterOptions } from './router'; +export { createRouter } from './router'; +export type { JenkinsInfo, JenkinsInfoProvider } from './jenkinsInfoProvider'; +export { DefaultJenkinsInfoProvider } from './jenkinsInfoProvider';