From 713100a2c02351f36e82f34788d5ac3a3c438472 Mon Sep 17 00:00:00 2001 From: djamaile Date: Tue, 13 Dec 2022 15:00:47 +0100 Subject: [PATCH] chore: remove clutter Signed-off-by: djamaile --- .../src/commands/api-reports/api-extractor.ts | 2 - .../api-reports/asset-types/asset-types.d.ts | 131 ------------------ 2 files changed, 133 deletions(-) delete mode 100644 packages/repo-tools/src/commands/api-reports/asset-types/asset-types.d.ts diff --git a/packages/repo-tools/src/commands/api-reports/api-extractor.ts b/packages/repo-tools/src/commands/api-reports/api-extractor.ts index cd69251594..24999a0257 100644 --- a/packages/repo-tools/src/commands/api-reports/api-extractor.ts +++ b/packages/repo-tools/src/commands/api-reports/api-extractor.ts @@ -229,8 +229,6 @@ export async function createTemporaryTsConfig(includedPackageDirs: string[]) { fs.removeSync(path); }); - console.log(resolvePackagePathBackend('@backstage/cli', 'asset-types/asset-types.d.ts')); - await fs.writeJson(path, { extends: './tsconfig.json', include: [ diff --git a/packages/repo-tools/src/commands/api-reports/asset-types/asset-types.d.ts b/packages/repo-tools/src/commands/api-reports/asset-types/asset-types.d.ts deleted file mode 100644 index 0bd0922004..0000000000 --- a/packages/repo-tools/src/commands/api-reports/asset-types/asset-types.d.ts +++ /dev/null @@ -1,131 +0,0 @@ -/* - * 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. - */ - -/* eslint-disable import/no-extraneous-dependencies */ - -/// -/// -/// - -declare module '*.bmp' { - const src: string; - export default src; -} - -declare module '*.gif' { - const src: string; - export default src; -} - -declare module '*.jpg' { - const src: string; - export default src; -} - -declare module '*.jpeg' { - const src: string; - export default src; -} - -declare module '*.png' { - const src: string; - export default src; -} - -declare module '*.webp' { - const src: string; - export default src; -} - -declare module '*.yaml' { - const src: string; - export default src; -} - -declare module '*.icon.svg' { - import { ComponentType } from 'react'; - import { SvgIconProps } from '@material-ui/core'; - - const Icon: ComponentType; - export default Icon; -} - -declare module '*.svg' { - const src: string; - export default src; -} - -declare module '*.eot' { - const src: string; - export default src; -} - -declare module '*.woff' { - const src: string; - export default src; -} - -declare module '*.woff2' { - const src: string; - export default src; -} - -declare module '*.ttf' { - const src: string; - export default src; -} - -declare module '*.css' { - const classes: { readonly [key: string]: string }; - export default classes; -} - -declare module '*.scss' { - const classes: { readonly [key: string]: string }; - export default classes; -} - -declare module '*.sass' { - const classes: { readonly [key: string]: string }; - export default classes; -} - -declare module '*.module.css' { - const classes: { readonly [key: string]: string }; - export default classes; -} - -declare module '*.module.scss' { - const classes: { readonly [key: string]: string }; - export default classes; -} - -declare module '*.module.sass' { - const classes: { readonly [key: string]: string }; - export default classes; -} - -// NOTE(freben): Both the fix, and the placement of the fix, are not great. -// -// The fix is because the PositionError was renamed to -// GeolocationPositionError outside of our control, and react-use is dependent -// on the old name. -// -// The placement is because it's the one location we have at the moment, where -// a central .d.ts file is imported by the frontend and can be amended. -// -// After both TS and react-use are bumped high enough, this should be removed. -type PositionError = GeolocationPositionError;