diff --git a/fbw-a32nx/src/systems/instruments/buildSrc/igniter/tasks.mjs b/fbw-a32nx/src/systems/instruments/buildSrc/igniter/tasks.mjs index b46ce859973..c6fed2625c3 100644 --- a/fbw-a32nx/src/systems/instruments/buildSrc/igniter/tasks.mjs +++ b/fbw-a32nx/src/systems/instruments/buildSrc/igniter/tasks.mjs @@ -1,19 +1,20 @@ import fs from 'fs'; import { join } from 'path'; -import { ExecTask } from '@flybywiresim/igniter'; +import { ExecTask, TaskOfTasks } from '@flybywiresim/igniter'; import { Directories } from '../directories.mjs'; export function getInstrumentsIgniterTasks() { const baseInstruments = fs.readdirSync(join(Directories.instruments, 'src'), { withFileTypes: true }) .filter((d) => d.isDirectory() && fs.existsSync(join(Directories.instruments, 'src', d.name, 'config.json'))); - return baseInstruments.map(({ name }) => new ExecTask( - name, - `cd fbw-a32nx && mach build -f ${name}`, + return baseInstruments.map((instrument) => new TaskOfTasks(`${instrument.name}`, [new ExecTask( + instrument.name, + `cd fbw-a32nx && mach build -f ${instrument.name}`, [ - join('fbw-a32nx/src/systems/instruments/src', name), + join('fbw-a32nx/src/systems/instruments/src', instrument.name), 'fbw-a32nx/src/systems/instruments/src/Common', - join('fbw-a32nx/out/flybywire-aircraft-a320-neo/html_ui/Pages/VCockpit/Instruments/A32NX', name), + join('fbw-a32nx/out/flybywire-aircraft-a320-neo/html_ui/Pages/VCockpit/Instruments/A32NX', instrument.name), ], - )); + ), + new ExecTask(`${instrument.name}_tsc`, `tsc -noemit -p ${join(Directories.instruments, 'src', instrument.name, 'tsconfig.json')} 1>&2`)])); } diff --git a/fbw-a32nx/src/systems/instruments/src/EFB/index.tsx b/fbw-a32nx/src/systems/instruments/src/EFB/index.tsx index b66a9a827b3..4b81dfbdf74 100644 --- a/fbw-a32nx/src/systems/instruments/src/EFB/index.tsx +++ b/fbw-a32nx/src/systems/instruments/src/EFB/index.tsx @@ -72,7 +72,7 @@ export const ErrorFallback = ({ resetErrorBoundary }: ErrorFallbackProps) => { )} -
+

Reset Display

diff --git a/fbw-a32nx/src/systems/instruments/src/EFB/tsconfig.json b/fbw-a32nx/src/systems/instruments/src/EFB/tsconfig.json index bffce160b74..ace6d389c6f 100644 --- a/fbw-a32nx/src/systems/instruments/src/EFB/tsconfig.json +++ b/fbw-a32nx/src/systems/instruments/src/EFB/tsconfig.json @@ -1,6 +1,10 @@ { "extends": "../../tsconfig.json", "compilerOptions": { - "resolveJsonModule" : true - } + "resolveJsonModule" : true, + "skipLibCheck": true + }, + "include": ["*.tsx", "*.ts"], + "exclude": ["vite.config.ts"] + }