diff --git a/app/ide-desktop/lib/content-config/src/index.ts b/app/ide-desktop/lib/content-config/src/index.ts index c2aed90d433f..1a68e317199a 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 3c68a6e47708..58762fe78f19 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