|
| 1 | +Input:: |
| 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 | + |
| 15 | +//// [/a.ts] |
| 16 | +import {} from './b.css' |
| 17 | + |
| 18 | +//// [/b.d.css.ts] |
| 19 | +declare const style: string; |
| 20 | + |
| 21 | +//// [/tsconfig.json] |
| 22 | +{"compilerOptions":{"allowArbitraryExtensions":true},"files":["/a.ts"]} |
| 23 | + |
| 24 | + |
| 25 | +/a/lib/tsc.js -w -p /tsconfig.json |
| 26 | +Output:: |
| 27 | +>> Screen clear |
| 28 | +[[90m12:00:15 AM[0m] Starting compilation in watch mode... |
| 29 | + |
| 30 | +[96ma.ts[0m:[93m1[0m:[93m16[0m - [91merror[0m[90m TS2306: [0mFile '/b.d.css.ts' is not a module. |
| 31 | + |
| 32 | +[7m1[0m import {} from './b.css' |
| 33 | +[7m [0m [91m ~~~~~~~~~[0m |
| 34 | + |
| 35 | +[[90m12:00:18 AM[0m] Found 1 error. Watching for file changes. |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | +Program root files: ["/a.ts"] |
| 40 | +Program options: {"allowArbitraryExtensions":true,"watch":true,"project":"/tsconfig.json","configFilePath":"/tsconfig.json"} |
| 41 | +Program structureReused: Not |
| 42 | +Program files:: |
| 43 | +/a/lib/lib.d.ts |
| 44 | +/b.d.css.ts |
| 45 | +/a.ts |
| 46 | + |
| 47 | +Semantic diagnostics in builder refreshed for:: |
| 48 | +/a/lib/lib.d.ts |
| 49 | +/b.d.css.ts |
| 50 | +/a.ts |
| 51 | + |
| 52 | +Shape signatures in builder refreshed for:: |
| 53 | +/a/lib/lib.d.ts (used version) |
| 54 | +/b.d.css.ts (used version) |
| 55 | +/a.ts (used version) |
| 56 | + |
| 57 | +PolledWatches:: |
| 58 | + |
| 59 | +FsWatches:: |
| 60 | +/tsconfig.json: |
| 61 | + {} |
| 62 | +/a.ts: |
| 63 | + {} |
| 64 | +/b.d.css.ts: |
| 65 | + {} |
| 66 | +/a/lib/lib.d.ts: |
| 67 | + {} |
| 68 | + |
| 69 | +FsWatchesRecursive:: |
| 70 | + |
| 71 | +exitCode:: ExitStatus.undefined |
| 72 | + |
| 73 | +//// [/a.js] |
| 74 | +"use strict"; |
| 75 | +Object.defineProperty(exports, "__esModule", { value: true }); |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | +Change:: Disable allowArbitraryExtensions |
| 80 | + |
| 81 | +Input:: |
| 82 | +//// [/tsconfig.json] |
| 83 | +{"compilerOptions":{"allowArbitraryExtensions":false},"files":["/a.ts"]} |
| 84 | + |
| 85 | + |
| 86 | +Output:: |
| 87 | +>> Screen clear |
| 88 | +[[90m12:00:21 AM[0m] File change detected. Starting incremental compilation... |
| 89 | + |
| 90 | +[96ma.ts[0m:[93m1[0m:[93m16[0m - [91merror[0m[90m TS6263: [0mModule './b.css' was resolved to '/b.d.css.ts', but '--allowArbitraryExtensions' is not set. |
| 91 | + |
| 92 | +[7m1[0m import {} from './b.css' |
| 93 | +[7m [0m [91m ~~~~~~~~~[0m |
| 94 | + |
| 95 | +[[90m12:00:25 AM[0m] Found 1 error. Watching for file changes. |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | +Program root files: ["/a.ts"] |
| 100 | +Program options: {"allowArbitraryExtensions":false,"watch":true,"project":"/tsconfig.json","configFilePath":"/tsconfig.json"} |
| 101 | +Program structureReused: SafeModules |
| 102 | +Program files:: |
| 103 | +/a/lib/lib.d.ts |
| 104 | +/a.ts |
| 105 | + |
| 106 | +Semantic diagnostics in builder refreshed for:: |
| 107 | +/a.ts |
| 108 | + |
| 109 | +Shape signatures in builder refreshed for:: |
| 110 | +/a.ts (computed .d.ts) |
| 111 | + |
| 112 | +PolledWatches:: |
| 113 | + |
| 114 | +FsWatches:: |
| 115 | +/tsconfig.json: |
| 116 | + {} |
| 117 | +/a.ts: |
| 118 | + {} |
| 119 | +/a/lib/lib.d.ts: |
| 120 | + {} |
| 121 | + |
| 122 | +FsWatchesRecursive:: |
| 123 | + |
| 124 | +exitCode:: ExitStatus.undefined |
| 125 | + |
| 126 | +//// [/a.js] file written with same contents |
| 127 | + |
| 128 | +Change:: Enable allowArbitraryExtensions |
| 129 | + |
| 130 | +Input:: |
| 131 | +//// [/tsconfig.json] |
| 132 | +{"compilerOptions":{"allowArbitraryExtensions":true},"files":["/a.ts"]} |
| 133 | + |
| 134 | + |
| 135 | +Output:: |
| 136 | +>> Screen clear |
| 137 | +[[90m12:00:28 AM[0m] File change detected. Starting incremental compilation... |
| 138 | + |
| 139 | +[96ma.ts[0m:[93m1[0m:[93m16[0m - [91merror[0m[90m TS2306: [0mFile '/b.d.css.ts' is not a module. |
| 140 | + |
| 141 | +[7m1[0m import {} from './b.css' |
| 142 | +[7m [0m [91m ~~~~~~~~~[0m |
| 143 | + |
| 144 | +[[90m12:00:32 AM[0m] Found 1 error. Watching for file changes. |
| 145 | + |
| 146 | + |
| 147 | + |
| 148 | +Program root files: ["/a.ts"] |
| 149 | +Program options: {"allowArbitraryExtensions":true,"watch":true,"project":"/tsconfig.json","configFilePath":"/tsconfig.json"} |
| 150 | +Program structureReused: SafeModules |
| 151 | +Program files:: |
| 152 | +/a/lib/lib.d.ts |
| 153 | +/b.d.css.ts |
| 154 | +/a.ts |
| 155 | + |
| 156 | +Semantic diagnostics in builder refreshed for:: |
| 157 | +/a/lib/lib.d.ts |
| 158 | +/b.d.css.ts |
| 159 | +/a.ts |
| 160 | + |
| 161 | +Shape signatures in builder refreshed for:: |
| 162 | +/b.d.css.ts (used version) |
| 163 | +/a.ts (computed .d.ts) |
| 164 | + |
| 165 | +PolledWatches:: |
| 166 | + |
| 167 | +FsWatches:: |
| 168 | +/tsconfig.json: |
| 169 | + {} |
| 170 | +/a.ts: |
| 171 | + {} |
| 172 | +/a/lib/lib.d.ts: |
| 173 | + {} |
| 174 | +/b.d.css.ts: |
| 175 | + {} |
| 176 | + |
| 177 | +FsWatchesRecursive:: |
| 178 | + |
| 179 | +exitCode:: ExitStatus.undefined |
| 180 | + |
| 181 | +//// [/a.js] file written with same contents |
0 commit comments