From 0a8f80959f65c9891ff8cffb68c5d9a7e6cd527c Mon Sep 17 00:00:00 2001 From: somebody1234 Date: Fri, 5 May 2023 04:39:22 +1000 Subject: [PATCH] Fix lint CI (#6567) --- app/ide-desktop/lib/content-config/src/index.ts | 2 +- app/ide-desktop/lib/types/modules.d.ts | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/app/ide-desktop/lib/content-config/src/index.ts b/app/ide-desktop/lib/content-config/src/index.ts index c2aed90d433..1a68e317199 100644 --- a/app/ide-desktop/lib/content-config/src/index.ts +++ b/app/ide-desktop/lib/content-config/src/index.ts @@ -2,7 +2,7 @@ import * as semver from 'semver' -import * as linkedDist from '../../../../../target/ensogl-pack/linked-dist/index' +import * as linkedDist from '../../../../../target/ensogl-pack/linked-dist' import BUILD_INFO from '../../../build.json' assert { type: 'json' } // Aliases with the same name as the original. diff --git a/app/ide-desktop/lib/types/modules.d.ts b/app/ide-desktop/lib/types/modules.d.ts index 3c68a6e4770..58762fe78f1 100644 --- a/app/ide-desktop/lib/types/modules.d.ts +++ b/app/ide-desktop/lib/types/modules.d.ts @@ -2,6 +2,23 @@ * * This file MUST NOT `export {}` for the modules to be visible to other files. */ +declare module '*/build.json' { + interface BuildInfo { + commit: string + version: string + engineVersion: string + name: string + } + + const BUILD_INFO: BuildInfo + export default BUILD_INFO +} + +declare module '*/ensogl-pack/linked-dist' { + // eslint-disable-next-line no-restricted-syntax + export * from '../../../../lib/rust/ensogl/pack/js/src/runner/index' +} + declare module '*/gui/config.yaml' { interface Config { windowAppScopeName: string