diff --git a/apps/recipes-react-components/tsconfig.app.json b/apps/recipes-react-components/tsconfig.app.json index 3d2934d25d2a7..124eb3b4f11f8 100644 --- a/apps/recipes-react-components/tsconfig.app.json +++ b/apps/recipes-react-components/tsconfig.app.json @@ -6,6 +6,5 @@ "declaration": true, "inlineSources": true }, - "exclude": [], "include": ["./src/**/*.ts", "./src/**/*.tsx"] } diff --git a/scripts/tasks/src/type-check.ts b/scripts/tasks/src/type-check.ts index 3c49c17225bd8..ed58d3c2d16c2 100644 --- a/scripts/tasks/src/type-check.ts +++ b/scripts/tasks/src/type-check.ts @@ -4,7 +4,7 @@ import { exec } from 'just-scripts-utils'; import { type TsConfig, getTsPathAliasesConfig } from './utils'; -export async function typeCheck() { +export function typeCheck(): Promise | undefined { const { isUsingTsSolutionConfigs, tsConfigs } = getTsPathAliasesConfig(); if (!isUsingTsSolutionConfigs) { @@ -20,17 +20,22 @@ export async function typeCheck() { const tsConfigsRefs = getTsConfigs(config, { spec: false, e2e: false }); - const asyncQueue = []; + const asyncQueue: Array> = []; for (const ref of tsConfigsRefs) { - const program = `tsc -p ${ref} --pretty --baseUrl .`; + const program = `tsc -p ${ref} --pretty --baseUrl . --noEmit`; asyncQueue.push(exec(program)); } - return Promise.all(asyncQueue).catch(err => { - console.error(err.stdout); - process.exit(1); - }); + return Promise.all(asyncQueue) + .then(_ => { + logger.info('Type checking completed successfully'); + return; + }) + .catch(err => { + console.error(err.stdout); + process.exit(1); + }); } function getTsConfigs(solutionConfig: TsConfig, exclude: { spec: boolean; e2e: boolean }) {