|
| 1 | +currentDirectory::/home/src/workspaces/solution |
| 2 | +useCaseSensitiveFileNames::true |
| 3 | +Input:: |
| 4 | +//// [/home/src/workspaces/solution/child/child.ts] *new* |
| 5 | +import { child2 } from "../child/child2"; |
| 6 | +export function child() { |
| 7 | + child2(); |
| 8 | +} |
| 9 | +//// [/home/src/workspaces/solution/child/child2.ts] *new* |
| 10 | +export function child2() { |
| 11 | +} |
| 12 | +//// [/home/src/workspaces/solution/child/tsconfig.json] *new* |
| 13 | +{ |
| 14 | + "compilerOptions": { } |
| 15 | +} |
| 16 | + |
| 17 | +tsgo --b child/tsconfig.json -v --traceResolution --explainFiles |
| 18 | +ExitStatus:: Success |
| 19 | +Output:: |
| 20 | +[[90mHH:MM:SS AM[0m] Projects in this build: |
| 21 | + * child/tsconfig.json |
| 22 | + |
| 23 | +[[90mHH:MM:SS AM[0m] Project 'child/tsconfig.json' is out of date because output file 'child/tsconfig.tsbuildinfo' does not exist |
| 24 | + |
| 25 | +[[90mHH:MM:SS AM[0m] Building project 'child/tsconfig.json'... |
| 26 | + |
| 27 | +======== Resolving module '../child/child2' from '/home/src/workspaces/solution/child/child.ts'. ======== |
| 28 | +Module resolution kind is not specified, using 'Bundler'. |
| 29 | +Resolving in CJS mode with conditions 'require', 'types'. |
| 30 | +Loading module as file / folder, candidate module location '/home/src/workspaces/solution/child/child2', target file types: TypeScript, JavaScript, Declaration, JSON. |
| 31 | +File '/home/src/workspaces/solution/child/child2.ts' exists - use it as a name resolution result. |
| 32 | +======== Module name '../child/child2' was successfully resolved to '/home/src/workspaces/solution/child/child2.ts'. ======== |
| 33 | +../../tslibs/TS/Lib/lib.d.ts |
| 34 | + Default library for target 'ES5' |
| 35 | +child/child2.ts |
| 36 | + Imported via ../child/child2 from file 'child/child.ts' |
| 37 | + Matched by default include pattern '**/*' |
| 38 | +child/child.ts |
| 39 | + Matched by default include pattern '**/*' |
| 40 | +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* |
| 41 | +/// <reference no-default-lib="true"/> |
| 42 | +interface Boolean {} |
| 43 | +interface Function {} |
| 44 | +interface CallableFunction {} |
| 45 | +interface NewableFunction {} |
| 46 | +interface IArguments {} |
| 47 | +interface Number { toExponential: any; } |
| 48 | +interface Object {} |
| 49 | +interface RegExp {} |
| 50 | +interface String { charAt: any; } |
| 51 | +interface Array<T> { length: number; [n: number]: T; } |
| 52 | +interface ReadonlyArray<T> {} |
| 53 | +interface SymbolConstructor { |
| 54 | + (desc?: string | number): symbol; |
| 55 | + for(name: string): symbol; |
| 56 | + readonly toStringTag: symbol; |
| 57 | +} |
| 58 | +declare var Symbol: SymbolConstructor; |
| 59 | +interface Symbol { |
| 60 | + readonly [Symbol.toStringTag]: string; |
| 61 | +} |
| 62 | +declare const console: { log(msg: any): void; }; |
| 63 | +//// [/home/src/workspaces/solution/child/child.js] *new* |
| 64 | +"use strict"; |
| 65 | +Object.defineProperty(exports, "__esModule", { value: true }); |
| 66 | +exports.child = child; |
| 67 | +const child2_1 = require("../child/child2"); |
| 68 | +function child() { |
| 69 | + (0, child2_1.child2)(); |
| 70 | +} |
| 71 | +
|
| 72 | +//// [/home/src/workspaces/solution/child/child2.js] *new* |
| 73 | +"use strict"; |
| 74 | +Object.defineProperty(exports, "__esModule", { value: true }); |
| 75 | +exports.child2 = child2; |
| 76 | +function child2() { |
| 77 | +} |
| 78 | +
|
| 79 | +//// [/home/src/workspaces/solution/child/tsconfig.tsbuildinfo] *new* |
| 80 | +{"version":"FakeTSVersion","root":["./child.ts","./child2.ts"]} |
| 81 | +//// [/home/src/workspaces/solution/child/tsconfig.tsbuildinfo.readable.baseline.txt] *new* |
| 82 | +{ |
| 83 | + "version": "FakeTSVersion", |
| 84 | + "root": [ |
| 85 | + { |
| 86 | + "files": [ |
| 87 | + "./child.ts" |
| 88 | + ], |
| 89 | + "original": "./child.ts" |
| 90 | + }, |
| 91 | + { |
| 92 | + "files": [ |
| 93 | + "./child2.ts" |
| 94 | + ], |
| 95 | + "original": "./child2.ts" |
| 96 | + } |
| 97 | + ], |
| 98 | + "size": 63 |
| 99 | +} |
| 100 | +
|
| 101 | +child/tsconfig.json:: |
| 102 | +SemanticDiagnostics:: |
| 103 | +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts |
| 104 | +*refresh* /home/src/workspaces/solution/child/child2.ts |
| 105 | +*refresh* /home/src/workspaces/solution/child/child.ts |
| 106 | +Signatures:: |
| 107 | +
|
| 108 | +
|
| 109 | +Edit [0]:: delete child2 file |
| 110 | +//// [/home/src/workspaces/solution/child/child2.js] *deleted* |
| 111 | +//// [/home/src/workspaces/solution/child/child2.ts] *deleted* |
| 112 | +
|
| 113 | +tsgo --b child/tsconfig.json -v --traceResolution --explainFiles |
| 114 | +ExitStatus:: DiagnosticsPresent_OutputsGenerated |
| 115 | +Output:: |
| 116 | +[[90mHH:MM:SS AM[0m] Projects in this build: |
| 117 | + * child/tsconfig.json |
| 118 | +
|
| 119 | +[[90mHH:MM:SS AM[0m] Project 'child/tsconfig.json' is out of date because buildinfo file 'child/tsconfig.tsbuildinfo' indicates that file 'child/child2.ts' was root file of compilation but not any more. |
| 120 | +
|
| 121 | +[[90mHH:MM:SS AM[0m] Building project 'child/tsconfig.json'... |
| 122 | +
|
| 123 | +[96mchild/child.ts[0m:[93m1[0m:[93m24[0m - [91merror[0m[90m TS2307: [0mCannot find module '../child/child2' or its corresponding type declarations. |
| 124 | +
|
| 125 | +[7m1[0m import { child2 } from "../child/child2"; |
| 126 | +[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m |
| 127 | +
|
| 128 | +======== Resolving module '../child/child2' from '/home/src/workspaces/solution/child/child.ts'. ======== |
| 129 | +Module resolution kind is not specified, using 'Bundler'. |
| 130 | +Resolving in CJS mode with conditions 'require', 'types'. |
| 131 | +Loading module as file / folder, candidate module location '/home/src/workspaces/solution/child/child2', target file types: TypeScript, JavaScript, Declaration, JSON. |
| 132 | +File '/home/src/workspaces/solution/child/child2.ts' does not exist. |
| 133 | +File '/home/src/workspaces/solution/child/child2.tsx' does not exist. |
| 134 | +File '/home/src/workspaces/solution/child/child2.d.ts' does not exist. |
| 135 | +File '/home/src/workspaces/solution/child/child2.js' does not exist. |
| 136 | +File '/home/src/workspaces/solution/child/child2.jsx' does not exist. |
| 137 | +Directory '/home/src/workspaces/solution/child/child2' does not exist, skipping all lookups in it. |
| 138 | +======== Module name '../child/child2' was not resolved. ======== |
| 139 | +../../tslibs/TS/Lib/lib.d.ts |
| 140 | + Default library for target 'ES5' |
| 141 | +child/child.ts |
| 142 | + Matched by default include pattern '**/*' |
| 143 | + |
| 144 | +Found 1 error in child/child.ts[90m:1[0m |
| 145 | + |
| 146 | +//// [/home/src/workspaces/solution/child/child.js] *rewrite with same content* |
| 147 | +//// [/home/src/workspaces/solution/child/tsconfig.tsbuildinfo] *modified* |
| 148 | +{"version":"FakeTSVersion","errors":true,"root":["./child.ts"]} |
| 149 | +//// [/home/src/workspaces/solution/child/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* |
| 150 | +{ |
| 151 | + "version": "FakeTSVersion", |
| 152 | + "errors": true, |
| 153 | + "root": [ |
| 154 | + { |
| 155 | + "files": [ |
| 156 | + "./child.ts" |
| 157 | + ], |
| 158 | + "original": "./child.ts" |
| 159 | + } |
| 160 | + ], |
| 161 | + "size": 63 |
| 162 | +} |
| 163 | + |
| 164 | +child/tsconfig.json:: |
| 165 | +SemanticDiagnostics:: |
| 166 | +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts |
| 167 | +*refresh* /home/src/workspaces/solution/child/child.ts |
| 168 | +Signatures:: |
0 commit comments