Skip to content

Commit

Permalink
refactor(cli): add basic configure tsconfig logging (#7237)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jbedard committed Nov 7, 2024
1 parent 0c9c18a commit 6179a50
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gazelle/js/typescript/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 6179a50

Please sign in to comment.