1Input:: 2Output:: 3 4//// [/user/username/projects/core/tsconfig.json] 5{ 6 "compilerOptions": { 7 "composite": true, 8 "declaration": true, 9 "declarationMap": true, 10 "skipDefaultLibCheck": true 11 } 12} 13 14//// [/user/username/projects/core/index.ts] 15export const someString: string = "HELLO WORLD"; 16export function leftPad(s: string, n: number) { return s + n; } 17export function multiply(a: number, b: number) { return a * b; } 18 19 20//// [/user/username/projects/core/some_decl.d.ts] 21declare const dts: any; 22 23 24//// [/user/username/projects/core/anotherModule.ts] 25export const World = "hello"; 26 27 28//// [/user/username/projects/logic/tsconfig.json] 29{ 30 "compilerOptions": { 31 "composite": true, 32 "declaration": true, 33 "sourceMap": true, 34 "forceConsistentCasingInFileNames": true, 35 "skipDefaultLibCheck": true 36 }, 37 "references": [ 38 { "path": "../core" } 39 ] 40} 41 42 43//// [/user/username/projects/logic/index.ts] 44import * as c from '../core/index'; 45export function getSecondsInDay() { 46 return c.multiply(10, 15); 47} 48import * as mod from '../core/anotherModule'; 49export const m = mod; 50 51 52//// [/user/username/projects/tests/tsconfig.json] 53{ 54 "references": [ 55 { "path": "../core" }, 56 { "path": "../logic" } 57 ], 58 "files": ["index.ts"], 59 "compilerOptions": { 60 "composite": true, 61 "declaration": true, 62 "forceConsistentCasingInFileNames": true, 63 "skipDefaultLibCheck": true 64 } 65} 66 67//// [/user/username/projects/tests/index.ts] 68import * as c from '../core/index'; 69import * as logic from '../logic/index'; 70 71c.leftPad("", 10); 72logic.getSecondsInDay(); 73 74import * as mod from '../core/anotherModule'; 75export const m = mod; 76 77 78//// [/a/lib/lib.d.ts] 79/// <reference no-default-lib="true"/> 80interface Boolean {} 81interface Function {} 82interface CallableFunction {} 83interface NewableFunction {} 84interface IArguments {} 85interface Number { toExponential: any; } 86interface Object {} 87interface RegExp {} 88interface String { charAt: any; } 89interface Array<T> { length: number; [n: number]: T; } 90 91 92Project Result:: {"project":"/user/username/projects/core/tsconfig.json","result":0} 93Output:: 94 95//// [/user/username/projects/core/anotherModule.js] 96"use strict"; 97exports.__esModule = true; 98exports.World = void 0; 99exports.World = "hello"; 100 101 102//// [/user/username/projects/core/anotherModule.d.ts.map] 103{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} 104 105//// [/user/username/projects/core/anotherModule.d.ts] 106export declare const World = "hello"; 107//# sourceMappingURL=anotherModule.d.ts.map 108 109//// [/user/username/projects/core/index.js] 110"use strict"; 111exports.__esModule = true; 112exports.multiply = exports.leftPad = exports.someString = void 0; 113exports.someString = "HELLO WORLD"; 114function leftPad(s, n) { return s + n; } 115exports.leftPad = leftPad; 116function multiply(a, b) { return a * b; } 117exports.multiply = multiply; 118 119 120//// [/user/username/projects/core/index.d.ts.map] 121{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} 122 123//// [/user/username/projects/core/index.d.ts] 124export declare const someString: string; 125export declare function leftPad(s: string, n: number): string; 126export declare function multiply(a: number, b: number): number; 127//# sourceMappingURL=index.d.ts.map 128 129//// [/user/username/projects/core/tsconfig.tsbuildinfo] 130{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} 131 132//// [/user/username/projects/core/tsconfig.tsbuildinfo.readable.baseline.txt] 133{ 134 "program": { 135 "fileNames": [ 136 "../../../../a/lib/lib.d.ts", 137 "./anothermodule.ts", 138 "./index.ts", 139 "./some_decl.d.ts" 140 ], 141 "fileInfos": { 142 "../../../../a/lib/lib.d.ts": { 143 "version": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }", 144 "signature": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }", 145 "affectsGlobalScope": true 146 }, 147 "./anothermodule.ts": { 148 "version": "-2676574883-export const World = \"hello\";\r\n", 149 "signature": "-9234818176-export declare const World = \"hello\";\n" 150 }, 151 "./index.ts": { 152 "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", 153 "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" 154 }, 155 "./some_decl.d.ts": { 156 "version": "-9253692965-declare const dts: any;\r\n", 157 "signature": "-9253692965-declare const dts: any;\r\n", 158 "affectsGlobalScope": true 159 } 160 }, 161 "options": { 162 "composite": true, 163 "declaration": true, 164 "declarationMap": true, 165 "skipDefaultLibCheck": true 166 }, 167 "referencedMap": {}, 168 "exportedModulesMap": {}, 169 "semanticDiagnosticsPerFile": [ 170 "../../../../a/lib/lib.d.ts", 171 "./anothermodule.ts", 172 "./index.ts", 173 "./some_decl.d.ts" 174 ], 175 "latestChangedDtsFile": "./index.d.ts" 176 }, 177 "version": "FakeTSVersion", 178 "size": 1390 179} 180 181 182Project Result:: {"project":"/user/username/projects/logic/tsconfig.json","result":0} 183Output:: 184 185//// [/user/username/projects/logic/index.js.map] 186{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} 187 188//// [/user/username/projects/logic/index.js] 189"use strict"; 190exports.__esModule = true; 191exports.m = exports.getSecondsInDay = void 0; 192var c = require("../core/index"); 193function getSecondsInDay() { 194 return c.multiply(10, 15); 195} 196exports.getSecondsInDay = getSecondsInDay; 197var mod = require("../core/anotherModule"); 198exports.m = mod; 199//# sourceMappingURL=index.js.map 200 201//// [/user/username/projects/logic/index.d.ts] 202export declare function getSecondsInDay(): number; 203import * as mod from '../core/anotherModule'; 204export declare const m: typeof mod; 205 206 207//// [/user/username/projects/logic/tsconfig.tsbuildinfo] 208{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} 209 210//// [/user/username/projects/logic/tsconfig.tsbuildinfo.readable.baseline.txt] 211{ 212 "program": { 213 "fileNames": [ 214 "../../../../a/lib/lib.d.ts", 215 "../core/index.d.ts", 216 "../core/anothermodule.d.ts", 217 "./index.ts" 218 ], 219 "fileNamesList": [ 220 [ 221 "../core/index.d.ts", 222 "../core/anothermodule.d.ts" 223 ], 224 [ 225 "../core/anothermodule.d.ts" 226 ] 227 ], 228 "fileInfos": { 229 "../../../../a/lib/lib.d.ts": { 230 "version": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }", 231 "signature": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }", 232 "affectsGlobalScope": true 233 }, 234 "../core/index.d.ts": { 235 "version": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", 236 "signature": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map" 237 }, 238 "../core/anothermodule.d.ts": { 239 "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", 240 "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" 241 }, 242 "./index.ts": { 243 "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", 244 "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" 245 } 246 }, 247 "options": { 248 "composite": true, 249 "declaration": true, 250 "skipDefaultLibCheck": true, 251 "sourceMap": true 252 }, 253 "referencedMap": { 254 "./index.ts": [ 255 "../core/index.d.ts", 256 "../core/anothermodule.d.ts" 257 ] 258 }, 259 "exportedModulesMap": { 260 "./index.ts": [ 261 "../core/anothermodule.d.ts" 262 ] 263 }, 264 "semanticDiagnosticsPerFile": [ 265 "../../../../a/lib/lib.d.ts", 266 "../core/anothermodule.d.ts", 267 "../core/index.d.ts", 268 "./index.ts" 269 ], 270 "latestChangedDtsFile": "./index.d.ts" 271 }, 272 "version": "FakeTSVersion", 273 "size": 1507 274} 275 276 277Project Result:: {"project":"/user/username/projects/tests/tsconfig.json","result":0} 278Output:: 279 280//// [/user/username/projects/tests/index.js] 281"use strict"; 282exports.__esModule = true; 283exports.m = void 0; 284var c = require("../core/index"); 285var logic = require("../logic/index"); 286c.leftPad("", 10); 287logic.getSecondsInDay(); 288var mod = require("../core/anotherModule"); 289exports.m = mod; 290 291 292//// [/user/username/projects/tests/index.d.ts] 293import * as mod from '../core/anotherModule'; 294export declare const m: typeof mod; 295 296 297//// [/user/username/projects/tests/tsconfig.tsbuildinfo] 298{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }","affectsGlobalScope":true},"-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map","-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} 299 300//// [/user/username/projects/tests/tsconfig.tsbuildinfo.readable.baseline.txt] 301{ 302 "program": { 303 "fileNames": [ 304 "../../../../a/lib/lib.d.ts", 305 "../core/index.d.ts", 306 "../core/anothermodule.d.ts", 307 "../logic/index.d.ts", 308 "./index.ts" 309 ], 310 "fileNamesList": [ 311 [ 312 "../core/anothermodule.d.ts" 313 ], 314 [ 315 "../core/index.d.ts", 316 "../core/anothermodule.d.ts", 317 "../logic/index.d.ts" 318 ] 319 ], 320 "fileInfos": { 321 "../../../../a/lib/lib.d.ts": { 322 "version": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }", 323 "signature": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }", 324 "affectsGlobalScope": true 325 }, 326 "../core/index.d.ts": { 327 "version": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", 328 "signature": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map" 329 }, 330 "../core/anothermodule.d.ts": { 331 "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", 332 "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" 333 }, 334 "../logic/index.d.ts": { 335 "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", 336 "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" 337 }, 338 "./index.ts": { 339 "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", 340 "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" 341 } 342 }, 343 "options": { 344 "composite": true, 345 "declaration": true, 346 "skipDefaultLibCheck": true 347 }, 348 "referencedMap": { 349 "../logic/index.d.ts": [ 350 "../core/anothermodule.d.ts" 351 ], 352 "./index.ts": [ 353 "../core/index.d.ts", 354 "../core/anothermodule.d.ts", 355 "../logic/index.d.ts" 356 ] 357 }, 358 "exportedModulesMap": { 359 "../logic/index.d.ts": [ 360 "../core/anothermodule.d.ts" 361 ], 362 "./index.ts": [ 363 "../core/anothermodule.d.ts" 364 ] 365 }, 366 "semanticDiagnosticsPerFile": [ 367 "../../../../a/lib/lib.d.ts", 368 "../core/anothermodule.d.ts", 369 "../core/index.d.ts", 370 "../logic/index.d.ts", 371 "./index.ts" 372 ], 373 "latestChangedDtsFile": "./index.d.ts" 374 }, 375 "version": "FakeTSVersion", 376 "size": 1652 377} 378 379 380Project Result:: {} 381Output:: 382 383