diff --git a/CHANGELOG.md b/CHANGELOG.md index d039d87a4441..fa44400ddb21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ ### Chore & Maintenance - `[*]`: Setup building, linting and testing of TypeScript ([#7808](https://github.com/facebook/jest/pull/7808)) +- `[pretty-format]`: Migrate to TypeScript ([#7809](https://github.com/facebook/jest/pull/7809)) ### Performance diff --git a/scripts/build.js b/scripts/build.js index 78d67bdbec5f..9afc50653ad6 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -196,9 +196,7 @@ function compileTypes(packages) { fs.existsSync(path.resolve(p, 'tsconfig.json')) ); - if (packageWithTs.length > 0) { - execa.sync('tsc', ['-b', ...packageWithTs]); - } + execa.sync('tsc', ['-b', ...packageWithTs]); } if (files.length) { diff --git a/scripts/watch.js b/scripts/watch.js index b40d670643b5..d2ab88c9791a 100644 --- a/scripts/watch.js +++ b/scripts/watch.js @@ -61,9 +61,7 @@ const packageWithTs = packages.filter(p => fs.existsSync(path.resolve(p, 'tsconfig.json')) ); -if (packageWithTs.length > 0) { - execa('tsc', ['-b', ...packageWithTs, '--watch']); -} +execa('tsc', ['-b', ...packageWithTs, '--watch']); setInterval(() => { const files = Array.from(filesToBuild.keys());