|
| 1 | +Input:: |
| 2 | +//// [/user/username/projects/myproject/a.ts] |
| 3 | + |
| 4 | + |
| 5 | +//// [/user/username/projects/myproject/b.ts] |
| 6 | +import "./a.ts"; |
| 7 | + |
| 8 | +//// [/user/username/projects/myproject/tsconfig.json] |
| 9 | +{"compilerOptions":{"noEmit":true,"allowImportingTsExtensions":false}} |
| 10 | + |
| 11 | +//// [/a/lib/lib.d.ts] |
| 12 | +/// <reference no-default-lib="true"/> |
| 13 | +interface Boolean {} |
| 14 | +interface Function {} |
| 15 | +interface CallableFunction {} |
| 16 | +interface NewableFunction {} |
| 17 | +interface IArguments {} |
| 18 | +interface Number { toExponential: any; } |
| 19 | +interface Object {} |
| 20 | +interface RegExp {} |
| 21 | +interface String { charAt: any; } |
| 22 | +interface Array<T> { length: number; [n: number]: T; } |
| 23 | + |
| 24 | + |
| 25 | +/a/lib/tsc.js -w -p . --extendedDiagnostics |
| 26 | +Output:: |
| 27 | +[[90m12:00:23 AM[0m] Starting compilation in watch mode... |
| 28 | + |
| 29 | +Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false |
| 30 | +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file |
| 31 | +Synchronizing program |
| 32 | +CreatingProgramWith:: |
| 33 | + roots: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] |
| 34 | + options: {"noEmit":true,"allowImportingTsExtensions":false,"watch":true,"project":"/user/username/projects/myproject","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} |
| 35 | +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a.ts 250 undefined Source file |
| 36 | +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b.ts 250 undefined Source file |
| 37 | +FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file |
| 38 | +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots |
| 39 | +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots |
| 40 | +[96mb.ts[0m:[93m1[0m:[93m8[0m - [91merror[0m[90m TS5097: [0mAn import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled. |
| 41 | + |
| 42 | +[7m1[0m import "./a.ts"; |
| 43 | +[7m [0m [91m ~~~~~~~~[0m |
| 44 | + |
| 45 | +[[90m12:00:24 AM[0m] Found 1 error. Watching for file changes. |
| 46 | + |
| 47 | +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory |
| 48 | +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory |
| 49 | + |
| 50 | + |
| 51 | +Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] |
| 52 | +Program options: {"noEmit":true,"allowImportingTsExtensions":false,"watch":true,"project":"/user/username/projects/myproject","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} |
| 53 | +Program structureReused: Not |
| 54 | +Program files:: |
| 55 | +/a/lib/lib.d.ts |
| 56 | +/user/username/projects/myproject/a.ts |
| 57 | +/user/username/projects/myproject/b.ts |
| 58 | + |
| 59 | +Semantic diagnostics in builder refreshed for:: |
| 60 | +/a/lib/lib.d.ts |
| 61 | +/user/username/projects/myproject/a.ts |
| 62 | +/user/username/projects/myproject/b.ts |
| 63 | + |
| 64 | +Shape signatures in builder refreshed for:: |
| 65 | +/a/lib/lib.d.ts (used version) |
| 66 | +/user/username/projects/myproject/a.ts (used version) |
| 67 | +/user/username/projects/myproject/b.ts (used version) |
| 68 | + |
| 69 | +PolledWatches:: |
| 70 | +/user/username/projects/myproject/node_modules/@types: |
| 71 | + {"pollingInterval":500} |
| 72 | + |
| 73 | +FsWatches:: |
| 74 | +/user/username/projects/myproject/tsconfig.json: |
| 75 | + {} |
| 76 | +/user/username/projects/myproject/a.ts: |
| 77 | + {} |
| 78 | +/user/username/projects/myproject/b.ts: |
| 79 | + {} |
| 80 | +/a/lib/lib.d.ts: |
| 81 | + {} |
| 82 | + |
| 83 | +FsWatchesRecursive:: |
| 84 | +/user/username/projects/myproject: |
| 85 | + {} |
| 86 | + |
| 87 | +exitCode:: ExitStatus.undefined |
| 88 | + |
| 89 | + |
| 90 | +Change:: Change allowImportingTsExtensions to true |
| 91 | + |
| 92 | +Input:: |
| 93 | +//// [/user/username/projects/myproject/tsconfig.json] |
| 94 | +{"compilerOptions":{"noEmit":true,"allowImportingTsExtensions":true}} |
| 95 | + |
| 96 | + |
| 97 | +Output:: |
| 98 | +FileWatcher:: Triggered with /user/username/projects/myproject/tsconfig.json 1:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file |
| 99 | +Scheduling update |
| 100 | +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/tsconfig.json 1:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file |
| 101 | +Reloading config file: /user/username/projects/myproject/tsconfig.json |
| 102 | +Synchronizing program |
| 103 | +[[90m12:00:28 AM[0m] File change detected. Starting incremental compilation... |
| 104 | + |
| 105 | +CreatingProgramWith:: |
| 106 | + roots: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] |
| 107 | + options: {"noEmit":true,"allowImportingTsExtensions":true,"watch":true,"project":"/user/username/projects/myproject","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} |
| 108 | +[[90m12:00:29 AM[0m] Found 0 errors. Watching for file changes. |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | +Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] |
| 113 | +Program options: {"noEmit":true,"allowImportingTsExtensions":true,"watch":true,"project":"/user/username/projects/myproject","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} |
| 114 | +Program structureReused: Completely |
| 115 | +Program files:: |
| 116 | +/a/lib/lib.d.ts |
| 117 | +/user/username/projects/myproject/a.ts |
| 118 | +/user/username/projects/myproject/b.ts |
| 119 | + |
| 120 | +Semantic diagnostics in builder refreshed for:: |
| 121 | +/a/lib/lib.d.ts |
| 122 | +/user/username/projects/myproject/a.ts |
| 123 | +/user/username/projects/myproject/b.ts |
| 124 | + |
| 125 | +No shapes updated in the builder:: |
| 126 | + |
| 127 | +PolledWatches:: |
| 128 | +/user/username/projects/myproject/node_modules/@types: |
| 129 | + {"pollingInterval":500} |
| 130 | + |
| 131 | +FsWatches:: |
| 132 | +/user/username/projects/myproject/tsconfig.json: |
| 133 | + {} |
| 134 | +/user/username/projects/myproject/a.ts: |
| 135 | + {} |
| 136 | +/user/username/projects/myproject/b.ts: |
| 137 | + {} |
| 138 | +/a/lib/lib.d.ts: |
| 139 | + {} |
| 140 | + |
| 141 | +FsWatchesRecursive:: |
| 142 | +/user/username/projects/myproject: |
| 143 | + {} |
| 144 | + |
| 145 | +exitCode:: ExitStatus.undefined |
| 146 | + |
0 commit comments