-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
140 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
packages/typescript/test/ts_project/empty_intermediate/BUILD.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
load("@npm_bazel_typescript//:index.bzl", "ts_project") | ||
|
||
ts_project( | ||
name = "tsconfig-a", | ||
srcs = ["a.ts"], | ||
declaration = True, | ||
) | ||
|
||
ts_project( | ||
name = "tsconfig-b", | ||
srcs = [], | ||
deps = ["tsconfig-a"], | ||
) | ||
|
||
ts_project( | ||
name = "tsconfig-c", | ||
srcs = ["c.ts"], | ||
# Without --noResolve, tsc will see the import of ./a and add a.ts to the program | ||
# It will then try to emit a.js which is an error since it was already written by | ||
# tsconfig-a, and the file is read-only. | ||
# Related: https://github.com/microsoft/TypeScript/issues/22208 | ||
args = ["--noResolve"], | ||
deps = ["tsconfig-b"], | ||
) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import {a} from './a'; | ||
|
||
console.log(a); |
6 changes: 6 additions & 0 deletions
6
packages/typescript/test/ts_project/empty_intermediate/tsconfig-a.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"files": ["a.ts"], | ||
"compilerOptions": { | ||
"declaration": true | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/typescript/test/ts_project/empty_intermediate/tsconfig-b.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"files": [] | ||
} |
14 changes: 14 additions & 0 deletions
14
packages/typescript/test/ts_project/empty_intermediate/tsconfig-c.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"files": ["c.ts"], | ||
"compilerOptions": { | ||
"rootDirs": [ | ||
".", | ||
"../../../../../bazel-out/darwin-fastbuild/bin/packages/typescript/test/ts_project/empty_intermediate", | ||
"../../../../../bazel-out/k8-fastbuild/bin/packages/typescript/test/ts_project/empty_intermediate", | ||
"../../../../../bazel-out/x64_windows-fastbuild/bin/packages/typescript/test/ts_project/empty_intermediate", | ||
"../../../../../bazel-out/darwin-dbg/bin/packages/typescript/test/ts_project/empty_intermediate", | ||
"../../../../../bazel-out/k8-dbg/bin/packages/typescript/test/ts_project/empty_intermediate", | ||
"../../../../../bazel-out/x64_windows-dbg/bin/packages/typescript/test/ts_project/empty_intermediate", | ||
], | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const a: string = 'hello'; |
File renamed without changes.