|
| 1 | +/a/lib/tsc.js -w |
| 2 | +//// [/a/lib/lib.d.ts] |
| 3 | +/// <reference no-default-lib="true"/> |
| 4 | +interface Boolean {} |
| 5 | +interface Function {} |
| 6 | +interface CallableFunction {} |
| 7 | +interface NewableFunction {} |
| 8 | +interface IArguments {} |
| 9 | +interface Number { toExponential: any; } |
| 10 | +interface Object {} |
| 11 | +interface RegExp {} |
| 12 | +interface String { charAt: any; } |
| 13 | +interface Array<T> { length: number; [n: number]: T; } |
| 14 | +interface ReadonlyArray<T> {} |
| 15 | +declare const console: { log(msg: any): void; }; |
| 16 | + |
| 17 | +//// [/users/username/projects/project/globals.d.ts] |
| 18 | +declare namespace Config { const value: string;} |
| 19 | + |
| 20 | +//// [/users/username/projects/project/index.ts] |
| 21 | +console.log(Config.value); |
| 22 | + |
| 23 | +//// [/users/username/projects/project/tsconfig.json] |
| 24 | +{"compilerOptions":{"incremental":true}} |
| 25 | + |
| 26 | +//// [/users/username/projects/project/index.js] |
| 27 | +console.log(Config.value); |
| 28 | + |
| 29 | + |
| 30 | +//// [/users/username/projects/project/tsconfig.tsbuildinfo] |
| 31 | +{ |
| 32 | + "program": { |
| 33 | + "fileInfos": { |
| 34 | + "../../../../a/lib/lib.d.ts": { |
| 35 | + "version": "3858781397-/// <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; }\ninterface ReadonlyArray<T> {}\ndeclare const console: { log(msg: any): void; };", |
| 36 | + "signature": "3858781397-/// <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; }\ninterface ReadonlyArray<T> {}\ndeclare const console: { log(msg: any): void; };" |
| 37 | + }, |
| 38 | + "./globals.d.ts": { |
| 39 | + "version": "-6314871648-declare namespace Config { const value: string;} ", |
| 40 | + "signature": "-6314871648-declare namespace Config { const value: string;} " |
| 41 | + }, |
| 42 | + "./index.ts": { |
| 43 | + "version": "5371023861-console.log(Config.value);", |
| 44 | + "signature": "5381-" |
| 45 | + } |
| 46 | + }, |
| 47 | + "options": { |
| 48 | + "incremental": true, |
| 49 | + "watch": true, |
| 50 | + "configFilePath": "./tsconfig.json" |
| 51 | + }, |
| 52 | + "referencedMap": {}, |
| 53 | + "exportedModulesMap": {}, |
| 54 | + "semanticDiagnosticsPerFile": [ |
| 55 | + "../../../../a/lib/lib.d.ts", |
| 56 | + "./globals.d.ts", |
| 57 | + "./index.ts" |
| 58 | + ] |
| 59 | + }, |
| 60 | + "version": "FakeTSVersion" |
| 61 | +} |
| 62 | + |
| 63 | + |
| 64 | +Output:: |
| 65 | +>> Screen clear |
| 66 | +[[90m12:00:23 AM[0m] Starting compilation in watch mode... |
| 67 | + |
| 68 | + |
| 69 | +[[90m12:00:28 AM[0m] Found 0 errors. Watching for file changes. |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | +Program root files: ["/users/username/projects/project/globals.d.ts","/users/username/projects/project/index.ts"] |
| 74 | +Program options: {"incremental":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} |
| 75 | +Program files:: |
| 76 | +/a/lib/lib.d.ts |
| 77 | +/users/username/projects/project/globals.d.ts |
| 78 | +/users/username/projects/project/index.ts |
| 79 | + |
| 80 | +Semantic diagnostics in builder refreshed for:: |
| 81 | +/a/lib/lib.d.ts |
| 82 | +/users/username/projects/project/globals.d.ts |
| 83 | +/users/username/projects/project/index.ts |
| 84 | + |
| 85 | +WatchedFiles:: |
| 86 | +/users/username/projects/project/tsconfig.json: |
| 87 | + {"fileName":"/users/username/projects/project/tsconfig.json","pollingInterval":250} |
| 88 | +/users/username/projects/project/globals.d.ts: |
| 89 | + {"fileName":"/users/username/projects/project/globals.d.ts","pollingInterval":250} |
| 90 | +/users/username/projects/project/index.ts: |
| 91 | + {"fileName":"/users/username/projects/project/index.ts","pollingInterval":250} |
| 92 | +/a/lib/lib.d.ts: |
| 93 | + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} |
| 94 | + |
| 95 | +FsWatches:: |
| 96 | + |
| 97 | +FsWatchesRecursive:: |
| 98 | +/users/username/projects/project/node_modules/@types: |
| 99 | + {"directoryName":"/users/username/projects/project/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} |
| 100 | +/users/username/projects/project: |
| 101 | + {"directoryName":"/users/username/projects/project","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} |
| 102 | + |
| 103 | +exitCode:: ExitStatus.undefined |
| 104 | + |
| 105 | +Change:: |
| 106 | + |
| 107 | +//// [/users/username/projects/project/globals.d.ts] deleted |
| 108 | + |
| 109 | +Output:: |
| 110 | +>> Screen clear |
| 111 | +[[90m12:00:30 AM[0m] Starting compilation in watch mode... |
| 112 | + |
| 113 | + |
| 114 | +[[90m12:00:31 AM[0m] Found 0 errors. Watching for file changes. |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | +Program root files: ["/users/username/projects/project/index.ts"] |
| 119 | +Program options: {"incremental":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} |
| 120 | +Program files:: |
| 121 | +/a/lib/lib.d.ts |
| 122 | +/users/username/projects/project/index.ts |
| 123 | + |
| 124 | +Semantic diagnostics in builder refreshed for:: |
| 125 | + |
| 126 | +WatchedFiles:: |
| 127 | +/users/username/projects/project/tsconfig.json: |
| 128 | + {"fileName":"/users/username/projects/project/tsconfig.json","pollingInterval":250} |
| 129 | +/users/username/projects/project/index.ts: |
| 130 | + {"fileName":"/users/username/projects/project/index.ts","pollingInterval":250} |
| 131 | +/a/lib/lib.d.ts: |
| 132 | + {"fileName":"/a/lib/lib.d.ts","pollingInterval":250} |
| 133 | + |
| 134 | +FsWatches:: |
| 135 | + |
| 136 | +FsWatchesRecursive:: |
| 137 | +/users/username/projects/project/node_modules/@types: |
| 138 | + {"directoryName":"/users/username/projects/project/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} |
| 139 | +/users/username/projects/project: |
| 140 | + {"directoryName":"/users/username/projects/project","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} |
| 141 | + |
| 142 | +exitCode:: ExitStatus.undefined |
0 commit comments