From 19d7fb08a31d46a79bec6f4a6f3a3b73bca0c8dc Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Wed, 17 Aug 2022 21:27:39 +0000 Subject: [PATCH] build: ignore type only imports/exports for circular dependency checks (#47017) Ignore the type only imports and exports to ease the process of refactoring PR Close #47017 --- packages/circular-deps-test.conf.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/circular-deps-test.conf.js b/packages/circular-deps-test.conf.js index 636e67c0fde..fe6d4e4bc11 100644 --- a/packages/circular-deps-test.conf.js +++ b/packages/circular-deps-test.conf.js @@ -9,12 +9,13 @@ const path = require('path'); module.exports = { - baseDir: '../', - goldenFile: '../goldens/circular-deps/packages.json', - glob: `./**/*.ts`, + baseDir : '../', + goldenFile : '../goldens/circular-deps/packages.json', + glob : `./**/*.ts`, // Command that will be displayed if the golden needs to be updated. - approveCommand: 'yarn ts-circular-deps:approve', - resolveModule: resolveModule + approveCommand : 'yarn ts-circular-deps:approve', + resolveModule : resolveModule, + ignoreTypeOnlyChecks : true, }; /**