|
| 1 | +/a/lib/tsc.js --w |
| 2 | +//// [/user/username/projects/myproject/a.ts] |
| 3 | +import {B} from './b'; |
| 4 | +declare var console: any; |
| 5 | +let b = new B(); |
| 6 | +console.log(b.c.d); |
| 7 | + |
| 8 | +//// [/user/username/projects/myproject/b.ts] |
| 9 | +import {C} from './c'; |
| 10 | +export class B |
| 11 | +{ |
| 12 | + c = new C(); |
| 13 | +} |
| 14 | + |
| 15 | +//// [/user/username/projects/myproject/c.ts] |
| 16 | +export class C |
| 17 | +{ |
| 18 | + d = 1; |
| 19 | +} |
| 20 | + |
| 21 | +//// [/user/username/projects/myproject/tsconfig.json] |
| 22 | +{"compilerOptions":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true}} |
| 23 | + |
| 24 | +//// [/a/lib/lib.d.ts] |
| 25 | +/// <reference no-default-lib="true"/> |
| 26 | +interface Boolean {} |
| 27 | +interface Function {} |
| 28 | +interface CallableFunction {} |
| 29 | +interface NewableFunction {} |
| 30 | +interface IArguments {} |
| 31 | +interface Number { toExponential: any; } |
| 32 | +interface Object {} |
| 33 | +interface RegExp {} |
| 34 | +interface String { charAt: any; } |
| 35 | +interface Array<T> { length: number; [n: number]: T; } |
| 36 | + |
| 37 | +//// [/user/username/projects/myproject/c.js] |
| 38 | +"use strict"; |
| 39 | +exports.__esModule = true; |
| 40 | +var C = /** @class */ (function () { |
| 41 | + function C() { |
| 42 | + this.d = 1; |
| 43 | + } |
| 44 | + return C; |
| 45 | +}()); |
| 46 | +exports.C = C; |
| 47 | + |
| 48 | + |
| 49 | +//// [/user/username/projects/myproject/c.d.ts] |
| 50 | +export declare class C { |
| 51 | + d: number; |
| 52 | +} |
| 53 | + |
| 54 | + |
| 55 | +//// [/user/username/projects/myproject/b.js] |
| 56 | +"use strict"; |
| 57 | +exports.__esModule = true; |
| 58 | +var c_1 = require("./c"); |
| 59 | +var B = /** @class */ (function () { |
| 60 | + function B() { |
| 61 | + this.c = new c_1.C(); |
| 62 | + } |
| 63 | + return B; |
| 64 | +}()); |
| 65 | +exports.B = B; |
| 66 | + |
| 67 | + |
| 68 | +//// [/user/username/projects/myproject/b.d.ts] |
| 69 | +import { C } from './c'; |
| 70 | +export declare class B { |
| 71 | + c: C; |
| 72 | +} |
| 73 | + |
| 74 | + |
| 75 | +//// [/user/username/projects/myproject/a.js] |
| 76 | +"use strict"; |
| 77 | +exports.__esModule = true; |
| 78 | +var b_1 = require("./b"); |
| 79 | +var b = new b_1.B(); |
| 80 | +console.log(b.c.d); |
| 81 | + |
| 82 | + |
| 83 | +//// [/user/username/projects/myproject/a.d.ts] |
| 84 | +export {}; |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | +Output:: |
| 89 | +>> Screen clear |
| 90 | +12:00:25 AM - Starting compilation in watch mode... |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | +12:00:38 AM - Found 0 errors. Watching for file changes. |
| 95 | + |
| 96 | + |
| 97 | +Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] |
| 98 | +Program options: {"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} |
| 99 | +Program files:: |
| 100 | +/a/lib/lib.d.ts |
| 101 | +/user/username/projects/myproject/c.ts |
| 102 | +/user/username/projects/myproject/b.ts |
| 103 | +/user/username/projects/myproject/a.ts |
| 104 | + |
| 105 | +Semantic diagnostics in builder refreshed for:: |
| 106 | +/a/lib/lib.d.ts |
| 107 | +/user/username/projects/myproject/c.ts |
| 108 | +/user/username/projects/myproject/b.ts |
| 109 | +/user/username/projects/myproject/a.ts |
| 110 | + |
| 111 | +WatchedFiles:: |
| 112 | +/user/username/projects/myproject/tsconfig.json: |
| 113 | + {"pollingInterval":250} |
| 114 | +/user/username/projects/myproject/a.ts: |
| 115 | + {"pollingInterval":250} |
| 116 | +/user/username/projects/myproject/b.ts: |
| 117 | + {"pollingInterval":250} |
| 118 | +/user/username/projects/myproject/c.ts: |
| 119 | + {"pollingInterval":250} |
| 120 | +/a/lib/lib.d.ts: |
| 121 | + {"pollingInterval":250} |
| 122 | + |
| 123 | +FsWatches:: |
| 124 | + |
| 125 | +FsWatchesRecursive:: |
| 126 | +/user/username/projects/myproject/node_modules/@types: |
| 127 | + {"fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} |
| 128 | +/user/username/projects/myproject: |
| 129 | + {"fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} |
| 130 | + |
| 131 | +exitCode:: ExitStatus.undefined |
| 132 | + |
| 133 | +Change:: Rename property d to d2 of class C |
| 134 | + |
| 135 | +//// [/user/username/projects/myproject/c.ts] |
| 136 | +export class C |
| 137 | +{ |
| 138 | + d2 = 1; |
| 139 | +} |
| 140 | + |
| 141 | +//// [/user/username/projects/myproject/c.js] |
| 142 | +"use strict"; |
| 143 | +exports.__esModule = true; |
| 144 | +var C = /** @class */ (function () { |
| 145 | + function C() { |
| 146 | + this.d2 = 1; |
| 147 | + } |
| 148 | + return C; |
| 149 | +}()); |
| 150 | +exports.C = C; |
| 151 | + |
| 152 | + |
| 153 | +//// [/user/username/projects/myproject/c.d.ts] |
| 154 | +export declare class C { |
| 155 | + d2: number; |
| 156 | +} |
| 157 | + |
| 158 | + |
| 159 | +//// [/user/username/projects/myproject/b.js] file written with same contents |
| 160 | +//// [/user/username/projects/myproject/b.d.ts] file written with same contents |
| 161 | + |
| 162 | +Output:: |
| 163 | +>> Screen clear |
| 164 | +12:00:42 AM - File change detected. Starting incremental compilation... |
| 165 | + |
| 166 | + |
| 167 | + |
| 168 | +12:00:55 AM - Found 0 errors. Watching for file changes. |
| 169 | + |
| 170 | + |
| 171 | +Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] |
| 172 | +Program options: {"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} |
| 173 | +Program files:: |
| 174 | +/a/lib/lib.d.ts |
| 175 | +/user/username/projects/myproject/c.ts |
| 176 | +/user/username/projects/myproject/b.ts |
| 177 | +/user/username/projects/myproject/a.ts |
| 178 | + |
| 179 | +Semantic diagnostics in builder refreshed for:: |
| 180 | +/user/username/projects/myproject/c.ts |
| 181 | +/user/username/projects/myproject/b.ts |
| 182 | + |
| 183 | +WatchedFiles:: |
| 184 | +/user/username/projects/myproject/tsconfig.json: |
| 185 | + {"pollingInterval":250} |
| 186 | +/user/username/projects/myproject/a.ts: |
| 187 | + {"pollingInterval":250} |
| 188 | +/user/username/projects/myproject/b.ts: |
| 189 | + {"pollingInterval":250} |
| 190 | +/user/username/projects/myproject/c.ts: |
| 191 | + {"pollingInterval":250} |
| 192 | +/a/lib/lib.d.ts: |
| 193 | + {"pollingInterval":250} |
| 194 | + |
| 195 | +FsWatches:: |
| 196 | + |
| 197 | +FsWatchesRecursive:: |
| 198 | +/user/username/projects/myproject/node_modules/@types: |
| 199 | + {"fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} |
| 200 | +/user/username/projects/myproject: |
| 201 | + {"fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} |
| 202 | + |
| 203 | +exitCode:: ExitStatus.undefined |
0 commit comments