1Input:: 2//// [/user/username/projects/myproject/tsconfig.json] 3{"compilerOptions":{"composite":true,"noEmitOnError":true}} 4 5//// [/user/username/projects/myproject/main.ts] 6export const x: string = 10; 7 8//// [/user/username/projects/myproject/other.ts] 9export const y = 10; 10 11//// [/a/lib/lib.d.ts] 12/// <reference no-default-lib="true"/> 13interface Boolean {} 14interface Function {} 15interface CallableFunction {} 16interface NewableFunction {} 17interface IArguments {} 18interface Number { toExponential: any; } 19interface Object {} 20interface RegExp {} 21interface String { charAt: any; } 22interface Array<T> { length: number; [n: number]: T; } 23 24 25tsc --w 26Output:: 27>> Screen clear 28[[90m12:00:23 AM[0m] Starting compilation in watch mode... 29 30[96muser/username/projects/myproject/main.ts[0m:[93m1[0m:[93m14[0m - [91merror[0m[90m TS2322: [0mType 'number' is not assignable to type 'string'. 31 32[7m1[0m export const x: string = 10; 33[7m [0m [91m ~[0m 34 35[[90m12:00:26 AM[0m] Found 1 error. Watching for file changes. 36 37 38 39Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] 40Program options: {"composite":true,"noEmitOnError":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} 41Program structureReused: Not 42Program files:: 43/a/lib/lib.d.ts 44/user/username/projects/myproject/main.ts 45/user/username/projects/myproject/other.ts 46 47Semantic diagnostics in builder refreshed for:: 48/a/lib/lib.d.ts 49/user/username/projects/myproject/main.ts 50/user/username/projects/myproject/other.ts 51 52Shape signatures in builder refreshed for:: 53/a/lib/lib.d.ts (used version) 54/user/username/projects/myproject/main.ts (used version) 55/user/username/projects/myproject/other.ts (used version) 56 57PolledWatches:: 58/user/username/projects/myproject/node_modules/@types: 59 {"pollingInterval":500} 60 61FsWatches:: 62/user/username/projects/myproject/tsconfig.json: 63 {} 64/user/username/projects/myproject/main.ts: 65 {} 66/user/username/projects/myproject/other.ts: 67 {} 68/a/lib/lib.d.ts: 69 {} 70 71FsWatchesRecursive:: 72/user/username/projects/myproject: 73 {} 74 75exitCode:: ExitStatus.undefined 76 77//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] 78{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.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},"-8089124208-export const x: string = 10;","-13729955264-export const y = 10;"],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./main.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],3],"affectedFilesPendingEmit":[[2,1],[3,1]],"emitSignatures":[2,3]},"version":"FakeTSVersion"} 79 80//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] 81{ 82 "program": { 83 "fileNames": [ 84 "../../../../a/lib/lib.d.ts", 85 "./main.ts", 86 "./other.ts" 87 ], 88 "fileInfos": { 89 "../../../../a/lib/lib.d.ts": { 90 "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; }", 91 "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; }", 92 "affectsGlobalScope": true 93 }, 94 "./main.ts": { 95 "version": "-8089124208-export const x: string = 10;", 96 "signature": "-8089124208-export const x: string = 10;" 97 }, 98 "./other.ts": { 99 "version": "-13729955264-export const y = 10;", 100 "signature": "-13729955264-export const y = 10;" 101 } 102 }, 103 "options": { 104 "composite": true, 105 "noEmitOnError": true 106 }, 107 "referencedMap": {}, 108 "exportedModulesMap": {}, 109 "semanticDiagnosticsPerFile": [ 110 "../../../../a/lib/lib.d.ts", 111 [ 112 "./main.ts", 113 [ 114 { 115 "file": "./main.ts", 116 "start": 13, 117 "length": 1, 118 "code": 2322, 119 "category": 1, 120 "messageText": "Type 'number' is not assignable to type 'string'." 121 } 122 ] 123 ], 124 "./other.ts" 125 ], 126 "affectedFilesPendingEmit": [ 127 [ 128 "./main.ts", 129 "Full" 130 ], 131 [ 132 "./other.ts", 133 "Full" 134 ] 135 ], 136 "emitSignatures": [ 137 "./main.ts", 138 "./other.ts" 139 ] 140 }, 141 "version": "FakeTSVersion", 142 "size": 931 143} 144 145 146Checking if output is same as EmitAndSemanticDiagnosticsBuilderProgram:: 147Output file text for /user/username/projects/myproject/main.js is same:: true 148Output file text for /user/username/projects/myproject/main.d.ts is same:: true 149Output file text for /user/username/projects/myproject/other.js is same:: true 150Output file text for /user/username/projects/myproject/other.d.ts is same:: true 151Output file text for /user/username/projects/myproject/tsconfig.tsbuildinfo is same:: true 152 153Change:: Add comment 154 155Input:: 156//// [/user/username/projects/myproject/main.ts] 157export const x: string = 10; 158// SomeComment 159 160 161tsc --w 162Output:: 163>> Screen clear 164[[90m12:00:31 AM[0m] Starting compilation in watch mode... 165 166[96muser/username/projects/myproject/main.ts[0m:[93m1[0m:[93m14[0m - [91merror[0m[90m TS2322: [0mType 'number' is not assignable to type 'string'. 167 168[7m1[0m export const x: string = 10; 169[7m [0m [91m ~[0m 170 171[[90m12:00:35 AM[0m] Found 1 error. Watching for file changes. 172 173 174 175Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] 176Program options: {"composite":true,"noEmitOnError":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} 177Program structureReused: Not 178Program files:: 179/a/lib/lib.d.ts 180/user/username/projects/myproject/main.ts 181/user/username/projects/myproject/other.ts 182 183Semantic diagnostics in builder refreshed for:: 184/user/username/projects/myproject/main.ts 185 186Shape signatures in builder refreshed for:: 187/user/username/projects/myproject/main.ts (computed .d.ts) 188 189PolledWatches:: 190/user/username/projects/myproject/node_modules/@types: 191 {"pollingInterval":500} 192 193FsWatches:: 194/user/username/projects/myproject/tsconfig.json: 195 {} 196/user/username/projects/myproject/main.ts: 197 {} 198/user/username/projects/myproject/other.ts: 199 {} 200/a/lib/lib.d.ts: 201 {} 202 203FsWatchesRecursive:: 204/user/username/projects/myproject: 205 {} 206 207exitCode:: ExitStatus.undefined 208 209//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] 210{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.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":"-5691975201-export const x: string = 10;\n// SomeComment","signature":"-10161843860-export declare const x: string;\n"},"-13729955264-export const y = 10;"],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./main.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],3],"affectedFilesPendingEmit":[[2,1],[3,1]],"emitSignatures":[2,3]},"version":"FakeTSVersion"} 211 212//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] 213{ 214 "program": { 215 "fileNames": [ 216 "../../../../a/lib/lib.d.ts", 217 "./main.ts", 218 "./other.ts" 219 ], 220 "fileInfos": { 221 "../../../../a/lib/lib.d.ts": { 222 "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; }", 223 "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; }", 224 "affectsGlobalScope": true 225 }, 226 "./main.ts": { 227 "version": "-5691975201-export const x: string = 10;\n// SomeComment", 228 "signature": "-10161843860-export declare const x: string;\n" 229 }, 230 "./other.ts": { 231 "version": "-13729955264-export const y = 10;", 232 "signature": "-13729955264-export const y = 10;" 233 } 234 }, 235 "options": { 236 "composite": true, 237 "noEmitOnError": true 238 }, 239 "referencedMap": {}, 240 "exportedModulesMap": {}, 241 "semanticDiagnosticsPerFile": [ 242 "../../../../a/lib/lib.d.ts", 243 [ 244 "./main.ts", 245 [ 246 { 247 "file": "./main.ts", 248 "start": 13, 249 "length": 1, 250 "code": 2322, 251 "category": 1, 252 "messageText": "Type 'number' is not assignable to type 'string'." 253 } 254 ] 255 ], 256 "./other.ts" 257 ], 258 "affectedFilesPendingEmit": [ 259 [ 260 "./main.ts", 261 "Full" 262 ], 263 [ 264 "./other.ts", 265 "Full" 266 ] 267 ], 268 "emitSignatures": [ 269 "./main.ts", 270 "./other.ts" 271 ] 272 }, 273 "version": "FakeTSVersion", 274 "size": 1020 275} 276 277 278Checking if output is same as EmitAndSemanticDiagnosticsBuilderProgram:: 279Output file text for /user/username/projects/myproject/main.js is same:: true 280Output file text for /user/username/projects/myproject/main.d.ts is same:: true 281Output file text for /user/username/projects/myproject/other.js is same:: true 282Output file text for /user/username/projects/myproject/other.d.ts is same:: true 283Output file text for /user/username/projects/myproject/tsconfig.tsbuildinfo is same:: true 284 285Change:: Fix error 286 287Input:: 288//// [/user/username/projects/myproject/main.ts] 289export const x = 10; 290 291 292tsc --w 293Output:: 294>> Screen clear 295[[90m12:00:42 AM[0m] Starting compilation in watch mode... 296 297[[90m12:00:54 AM[0m] Found 0 errors. Watching for file changes. 298 299 300 301Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] 302Program options: {"composite":true,"noEmitOnError":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} 303Program structureReused: Not 304Program files:: 305/a/lib/lib.d.ts 306/user/username/projects/myproject/main.ts 307/user/username/projects/myproject/other.ts 308 309Semantic diagnostics in builder refreshed for:: 310/user/username/projects/myproject/main.ts 311 312Shape signatures in builder refreshed for:: 313/user/username/projects/myproject/main.ts (computed .d.ts) 314 315PolledWatches:: 316/user/username/projects/myproject/node_modules/@types: 317 {"pollingInterval":500} 318 319FsWatches:: 320/user/username/projects/myproject/tsconfig.json: 321 {} 322/user/username/projects/myproject/main.ts: 323 {} 324/user/username/projects/myproject/other.ts: 325 {} 326/a/lib/lib.d.ts: 327 {} 328 329FsWatchesRecursive:: 330/user/username/projects/myproject: 331 {} 332 333exitCode:: ExitStatus.undefined 334 335//// [/user/username/projects/myproject/tsconfig.tsbuildinfo] 336{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.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":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} 337 338//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] 339{ 340 "program": { 341 "fileNames": [ 342 "../../../../a/lib/lib.d.ts", 343 "./main.ts", 344 "./other.ts" 345 ], 346 "fileInfos": { 347 "../../../../a/lib/lib.d.ts": { 348 "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; }", 349 "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; }", 350 "affectsGlobalScope": true 351 }, 352 "./main.ts": { 353 "version": "-10726455937-export const x = 10;", 354 "signature": "-6821242887-export declare const x = 10;\n" 355 }, 356 "./other.ts": { 357 "version": "-13729955264-export const y = 10;", 358 "signature": "-7152472870-export declare const y = 10;\n" 359 } 360 }, 361 "options": { 362 "composite": true, 363 "noEmitOnError": true 364 }, 365 "referencedMap": {}, 366 "exportedModulesMap": {}, 367 "semanticDiagnosticsPerFile": [ 368 "../../../../a/lib/lib.d.ts", 369 "./main.ts", 370 "./other.ts" 371 ], 372 "latestChangedDtsFile": "./other.d.ts" 373 }, 374 "version": "FakeTSVersion", 375 "size": 898 376} 377 378//// [/user/username/projects/myproject/main.js] 379"use strict"; 380exports.__esModule = true; 381exports.x = void 0; 382exports.x = 10; 383 384 385//// [/user/username/projects/myproject/main.d.ts] 386export declare const x = 10; 387 388 389//// [/user/username/projects/myproject/other.js] 390"use strict"; 391exports.__esModule = true; 392exports.y = void 0; 393exports.y = 10; 394 395 396//// [/user/username/projects/myproject/other.d.ts] 397export declare const y = 10; 398 399 400 401Checking if output is same as EmitAndSemanticDiagnosticsBuilderProgram:: 402Output file text for /user/username/projects/myproject/main.js is same:: true 403Output file text for /user/username/projects/myproject/main.d.ts is same:: true 404Output file text for /user/username/projects/myproject/other.js is same:: true 405Output file text for /user/username/projects/myproject/other.d.ts is same:: true 406Output file text for /user/username/projects/myproject/tsconfig.tsbuildinfo is same:: true 407