Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 5022b91

Browse files
chore(localenv): disable tsc declaration files (#62680)
* try enabling flag to disable tsc declaration files * enable flag locally * enable flag for local dev * remove flag
1 parent 4346915 commit 5022b91

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.aspect/bazelrc/remote_cache_for_local.bazelrc renamed to .aspect/bazelrc/local.bazelrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,9 @@ common --remote_cache=https://storage.googleapis.com/local_bazel_remote_cache
2222
# Docs: https://bazel.build/reference/command-line-reference#flag--experimental_remote_cache_async
2323
# Appears to be quite unstable, disabling for now
2424
# common --experimental_remote_cache_async
25+
26+
27+
# Disables declaration file generation from pnpm workspaces (i.e. all sub projects in client/)
28+
# which removes tsc from the loop of compilation.
29+
# Docs: https://docs.aspect.build/rulesets/aspect_rules_ts/docs/transpiler/#avoid-eager-type-checks-via-npm_package
30+
build --@aspect_rules_js//npm:exclude_declarations_from_npm_packages

dev/sg/sg_bazel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ var bazelCommand = &cli.Command{
9292
}
9393
newArgs := make([]string, 0, len(args)+1)
9494
// Bazelrc flags must be added before the actual command (build, run, test ...)
95-
newArgs = append(newArgs, fmt.Sprintf("--bazelrc=%s", filepath.Join(rootDir, ".aspect/bazelrc/remote_cache_for_local.bazelrc")))
95+
newArgs = append(newArgs, fmt.Sprintf("--bazelrc=%s", filepath.Join(rootDir, ".aspect/bazelrc/local.bazelrc")))
9696
newArgs = append(newArgs, args...)
9797
args = newArgs
9898
}

0 commit comments

Comments
 (0)