From d116787a4de86effdcb2d808ef5e3f867976e3e0 Mon Sep 17 00:00:00 2001 From: Joel Einbinder Date: Mon, 30 Nov 2020 14:57:17 -0800 Subject: [PATCH] fix(lint): update check_deps for src/remote (#4547) check_deps was throwing an error, but nobody was catching it and it still returned an exit code 0. I fixed that, and also fixed the error by adding deps for src/remote. --- utils/check_deps.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/utils/check_deps.js b/utils/check_deps.js index c4448bc4be..01599a2bb6 100644 --- a/utils/check_deps.js +++ b/utils/check_deps.js @@ -123,4 +123,11 @@ DEPS['src/trace/'] = ['src/utils/', 'src/client/**', 'src/server/**']; // Debug is a server plugin, nothing should depend on it. DEPS['src/debug/'] = ['src/utils/', 'src/generated/', 'src/server/**', 'src/debug/**']; -checkDeps(); +// The service is a cross-cutting feature, and so it depends on a bunch of things. +DEPS['src/remote/'] = ['src/client/', 'src/debug/', 'src/dispatchers/', 'src/server/', 'src/server/electron/', 'src/trace/']; +DEPS['src/service.ts'] = ['src/remote/']; + +checkDeps().catch(e => { + console.error(e && e.stack ? e.stack : e); + process.exit(1); +});