diff --git a/packages/cli/src/lib/new/createNewPackage.ts b/packages/cli/src/lib/new/createNewPackage.ts index 9a4ea6a6e3..c68e69c6de 100644 --- a/packages/cli/src/lib/new/createNewPackage.ts +++ b/packages/cli/src/lib/new/createNewPackage.ts @@ -14,11 +14,13 @@ * limitations under the License. */ -import { collectPortableTemplateParams } from './preparation/collectPortableTemplateParams'; -import { loadPortableTemplateConfig } from './preparation/loadPortableTemplateConfig'; -import { executePortableTemplate } from './execution/executePortableTemplate'; -import { selectTemplateInteractively } from './preparation/selectTemplateInteractively'; -import { loadPortableTemplate } from './preparation/loadPortableTemplate'; +import { + collectPortableTemplateParams, + loadPortableTemplate, + loadPortableTemplateConfig, + selectTemplateInteractively, +} from './preparation'; +import { executePortableTemplate } from './execution'; export type CreateNewPackageOptions = { preselectedTemplateId?: string; diff --git a/packages/cli/src/lib/new/execution/index.ts b/packages/cli/src/lib/new/execution/index.ts new file mode 100644 index 0000000000..3b8ed3c090 --- /dev/null +++ b/packages/cli/src/lib/new/execution/index.ts @@ -0,0 +1,17 @@ +/* + * Copyright 2025 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 { executePortableTemplate } from './executePortableTemplate'; diff --git a/packages/cli/src/lib/new/preparation/index.ts b/packages/cli/src/lib/new/preparation/index.ts new file mode 100644 index 0000000000..e4630686bf --- /dev/null +++ b/packages/cli/src/lib/new/preparation/index.ts @@ -0,0 +1,20 @@ +/* + * Copyright 2025 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 { collectPortableTemplateParams } from './collectPortableTemplateParams'; +export { loadPortableTemplateConfig } from './loadPortableTemplateConfig'; +export { selectTemplateInteractively } from './selectTemplateInteractively'; +export { loadPortableTemplate } from './loadPortableTemplate';