diff --git a/packages/repo-tools/src/commands/api-reports/api-reports.ts b/packages/repo-tools/src/commands/api-reports/api-reports.ts index debe22724d..1e10ade111 100644 --- a/packages/repo-tools/src/commands/api-reports/api-reports.ts +++ b/packages/repo-tools/src/commands/api-reports/api-reports.ts @@ -24,7 +24,7 @@ import { } from './api-extractor'; import { paths as cliPaths, resolvePackagePaths } from '../../lib/paths'; import { generateTypeDeclarations } from './generateTypeDeclarations'; -import { runSqlExtraction } from './sql-report'; +import { runSqlExtraction } from './sql-reports'; type Options = { ci?: boolean; diff --git a/packages/repo-tools/src/commands/api-reports/sql-reports/index.ts b/packages/repo-tools/src/commands/api-reports/sql-reports/index.ts new file mode 100644 index 0000000000..d6b29d6f82 --- /dev/null +++ b/packages/repo-tools/src/commands/api-reports/sql-reports/index.ts @@ -0,0 +1,17 @@ +/* + * Copyright 2024 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 { runSqlExtraction } from './runSqlExtraction'; diff --git a/packages/repo-tools/src/commands/api-reports/sql-report.ts b/packages/repo-tools/src/commands/api-reports/sql-reports/runSqlExtraction.ts similarity index 99% rename from packages/repo-tools/src/commands/api-reports/sql-report.ts rename to packages/repo-tools/src/commands/api-reports/sql-reports/runSqlExtraction.ts index a4571f04ca..6fcac744a8 100644 --- a/packages/repo-tools/src/commands/api-reports/sql-report.ts +++ b/packages/repo-tools/src/commands/api-reports/sql-reports/runSqlExtraction.ts @@ -15,7 +15,7 @@ */ import fs from 'fs-extra'; -import { paths as cliPaths } from '../../lib/paths'; +import { paths as cliPaths } from '../../../lib/paths'; import { getPortPromise } from 'portfinder'; import type { Knex } from 'knex'; import { diff as justDiff } from 'just-diff';