Skip to content

Commit

Permalink
Ignores nested dist/ directories in tsconfig.json files.
Browse files Browse the repository at this point in the history
The root `tsconfig.json` file was picking up files under `examples/external/dist/`, so this updates the `exclude` option to drop all nested `dist/` directories. I also updated `examples/external/tsconfig.json` to align.

I took the opportunity to remove the `bazel-out/*` exclude. This directory still existed on my filesystem, but was just a symlink, and after deleting it, it did not reappear after `bazel test //...`. I suspect this is a relic from before `--symlink_prefix=dist/` was used or when I was playing around with other options. I don't think it's needed anymore.
  • Loading branch information
dgp1130 committed Feb 11, 2023
1 parent 3ca217f commit 0ef4e67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/external/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"exclude": ["**/dist/"],
"compilerOptions": {
"target": "ES2020",
"module": "CommonJS",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"exclude": ["./bazel-*/", "dist/"],
"exclude": ["**/dist/"],
"compilerOptions": {
/* Visit https://aka.ms/tsconfig.json to read more about this file */

Expand Down

0 comments on commit 0ef4e67

Please sign in to comment.