@@ -31,6 +31,41 @@ ts_project(
3131 tsconfig = {},
3232)
3333
34+ ts_project (
35+ name = "out_dir-tsconfig-foo" ,
36+ srcs = ["main.ts" ],
37+ declaration = True ,
38+ declaration_map = True ,
39+ out_dir = "tsconfig-foo" ,
40+ tsconfig = "tsconfig-outdir-foo.json" ,
41+ )
42+
43+ ts_project (
44+ name = "out_dir-tsconfig-foo-overriden-to-dot" ,
45+ srcs = ["main2.ts" ],
46+ declaration = True ,
47+ declaration_map = True ,
48+ extends = "tsconfig-outdir-foo.json" ,
49+ tsconfig = {
50+ "compilerOptions" : {
51+ "outDir" : "." ,
52+ },
53+ },
54+ )
55+
56+ ts_project (
57+ name = "out_dir-tsconfig-foo-overriden-to-dotslash-bar" ,
58+ srcs = ["main2.ts" ],
59+ declaration = True ,
60+ declaration_map = True ,
61+ extends = "tsconfig-outdir-foo.json" ,
62+ tsconfig = {
63+ "compilerOptions" : {
64+ "outDir" : "./bar" ,
65+ },
66+ },
67+ )
68+
3469ts_project (
3570 name = "out_dir-declaration_dir" ,
3671 srcs = ["main.ts" ],
@@ -44,13 +79,31 @@ ts_project(
4479build_test (
4580 name = "test" ,
4681 targets = [
47- # outputs specified by the tsconfig attr
82+ # outputs specified by the tsconfig attr dict
4883 ":out_dir-params-dot" ,
4984 "main.js" ,
5085 "main.d.ts" ,
5186 "main.d.ts.map" ,
5287
53- # outputs specified by the tsconfig attr
88+ # outputs specified by the tsconfig attr dict
89+ ":out_dir-tsconfig-foo" ,
90+ "tsconfig-foo/main.js" ,
91+ "tsconfig-foo/main.d.ts" ,
92+ "tsconfig-foo/main.d.ts.map" ,
93+
94+ # outputs specified by the tsconfig attr file but overriden to '.' by tsconfig attr dict
95+ ":out_dir-tsconfig-foo-overriden-to-dot" ,
96+ "main2.js" ,
97+ "main2.d.ts" ,
98+ "main2.d.ts.map" ,
99+
100+ # outputs specified by the tsconfig attr file but overriden to 'bar' by tsconfig attr dict
101+ ":out_dir-tsconfig-foo-overriden-to-dotslash-bar" ,
102+ "bar/main2.js" ,
103+ "bar/main2.d.ts" ,
104+ "bar/main2.d.ts.map" ,
105+
106+ # outputs specified by the tsconfig attr file
54107 ":out_dir-tsconfig" ,
55108 "tsconfig/main.js" ,
56109 "tsconfig/main.d.ts" ,
0 commit comments