From 6179a50aae15377c0e19f204f3b112518a1a64f4 Mon Sep 17 00:00:00 2001 From: Jason Bedard Date: Tue, 5 Nov 2024 17:22:11 -0800 Subject: [PATCH] refactor(cli): add basic configure tsconfig logging (#7237) This would have been useful recently when debugging tsconfig issues. --- ### Changes are visible to end-users: no ### Test plan - Covered by existing test cases GitOrigin-RevId: fae3a0d76857bdaf185fc30d7953c7da538521ba --- gazelle/js/typescript/config.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gazelle/js/typescript/config.go b/gazelle/js/typescript/config.go index 060e1ea83..2ed27e095 100644 --- a/gazelle/js/typescript/config.go +++ b/gazelle/js/typescript/config.go @@ -7,6 +7,7 @@ import ( node "aspect.build/cli/gazelle/js/node" pnpm "aspect.build/cli/gazelle/js/pnpm" + BazelLog "aspect.build/cli/pkg/logger" ) type workspacePath struct { @@ -46,6 +47,8 @@ func (tc *TsWorkspace) AddTsConfigFile(root, rel, fileName string) { return } + BazelLog.Debugf("Adding tsconfig file %s/%s", rel, fileName) + tc.cm.configFiles[rel] = &workspacePath{ root: root, rel: rel, @@ -78,6 +81,8 @@ func (tc *TsWorkspace) GetTsConfigFile(rel string) *TsConfig { return nil } + BazelLog.Debugf("Parsed tsconfig file %s/%s", p.rel, p.fileName) + return c }