|
| 1 | +currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false |
| 2 | +Input:: |
| 3 | +//// [/home/src/workspaces/project/packages/pkg1/package.json] |
| 4 | +{ |
| 5 | + "name": "pkg1", |
| 6 | + "version": "1.0.0", |
| 7 | + "main": "dist/index.js", |
| 8 | + "types": "dist/index.d.ts", |
| 9 | + "exports": { |
| 10 | + ".": { |
| 11 | + "types": "./dist/index.d.ts", |
| 12 | + "default": "./dist/index.js" |
| 13 | + } |
| 14 | + } |
| 15 | +} |
| 16 | + |
| 17 | +//// [/home/src/workspaces/project/packages/pkg1/tsconfig.json] |
| 18 | +{ |
| 19 | + "compilerOptions": { |
| 20 | + "composite": true, |
| 21 | + "outDir": "dist", |
| 22 | + "rootDir": "src", |
| 23 | + "module": "nodenext", |
| 24 | + "moduleResolution": "nodenext" |
| 25 | + }, |
| 26 | + "include": [ |
| 27 | + "src" |
| 28 | + ] |
| 29 | +} |
| 30 | + |
| 31 | +//// [/home/src/workspaces/project/packages/pkg1/src/index.ts] |
| 32 | +export class C {} |
| 33 | + |
| 34 | +//// [/home/src/workspaces/project/packages/pkg1/src/other.d.ts] |
| 35 | +import { C } from "pkg1"; |
| 36 | +export declare const c: C; |
| 37 | + |
| 38 | + |
| 39 | +//// [/home/src/workspaces/project/packages/pkg1/src/usage.ts] |
| 40 | +import { c } from "./other"; |
| 41 | +export const usage = c; |
| 42 | + |
| 43 | + |
| 44 | +//// [/home/src/tslibs/TS/Lib/lib.d.ts] |
| 45 | +interface Boolean {} |
| 46 | +interface Function {} |
| 47 | +interface CallableFunction {} |
| 48 | +interface NewableFunction {} |
| 49 | +interface IArguments {} |
| 50 | +interface Number { toExponential: any; } |
| 51 | +interface Object {} |
| 52 | +interface RegExp {} |
| 53 | +interface String { charAt: any; } |
| 54 | +interface Array<T> { length: number; [n: number]: T; } |
| 55 | +interface ReadonlyArray<T> {} |
| 56 | +declare const console: { log(msg: any): void; }; |
| 57 | + |
| 58 | + |
| 59 | +/home/src/tslibs/TS/Lib/tsc.js -b packages/pkg1 --verbose --traceResolution |
| 60 | +Output:: |
| 61 | +[[90mHH:MM:SS AM[0m] Projects in this build: |
| 62 | + * packages/pkg1/tsconfig.json |
| 63 | + |
| 64 | +[[90mHH:MM:SS AM[0m] Project 'packages/pkg1/tsconfig.json' is out of date because output file 'packages/pkg1/tsconfig.tsbuildinfo' does not exist |
| 65 | + |
| 66 | +[[90mHH:MM:SS AM[0m] Building project '/home/src/workspaces/project/packages/pkg1/tsconfig.json'... |
| 67 | + |
| 68 | +File '/home/src/workspaces/project/packages/pkg1/src/package.json' does not exist. |
| 69 | +Found 'package.json' at '/home/src/workspaces/project/packages/pkg1/package.json'. |
| 70 | +File '/home/src/workspaces/project/packages/pkg1/src/package.json' does not exist according to earlier cached lookups. |
| 71 | +File '/home/src/workspaces/project/packages/pkg1/package.json' exists according to earlier cached lookups. |
| 72 | +======== Resolving module 'pkg1' from '/home/src/workspaces/project/packages/pkg1/src/other.d.ts'. ======== |
| 73 | +Explicitly specified module resolution kind: 'NodeNext'. |
| 74 | +Resolving in CJS mode with conditions 'require', 'types', 'node'. |
| 75 | +File '/home/src/workspaces/project/packages/pkg1/src/package.json' does not exist according to earlier cached lookups. |
| 76 | +File '/home/src/workspaces/project/packages/pkg1/package.json' exists according to earlier cached lookups. |
| 77 | +Entering conditional exports. |
| 78 | +Matched 'exports' condition 'types'. |
| 79 | +Using 'exports' subpath '.' with target './dist/index.d.ts'. |
| 80 | +File '/home/src/workspaces/project/packages/pkg1/src/index.ts' exists - use it as a name resolution result. |
| 81 | +'package.json' does not have a 'peerDependencies' field. |
| 82 | +Resolved under condition 'types'. |
| 83 | +Exiting conditional exports. |
| 84 | +======== Module name 'pkg1' was successfully resolved to '/home/src/workspaces/project/packages/pkg1/src/index.ts' with Package ID 'pkg1/src/index.ts@1.0.0'. ======== |
| 85 | +File '/home/src/workspaces/project/packages/pkg1/package.json' exists according to earlier cached lookups. |
| 86 | +File '/home/src/workspaces/project/packages/pkg1/src/package.json' does not exist according to earlier cached lookups. |
| 87 | +File '/home/src/workspaces/project/packages/pkg1/package.json' exists according to earlier cached lookups. |
| 88 | +======== Resolving module './other' from '/home/src/workspaces/project/packages/pkg1/src/usage.ts'. ======== |
| 89 | +Explicitly specified module resolution kind: 'NodeNext'. |
| 90 | +Resolving in CJS mode with conditions 'require', 'types', 'node'. |
| 91 | +Loading module as file / folder, candidate module location '/home/src/workspaces/project/packages/pkg1/src/other', target file types: TypeScript, JavaScript, Declaration, JSON. |
| 92 | +File '/home/src/workspaces/project/packages/pkg1/src/other.ts' does not exist. |
| 93 | +File '/home/src/workspaces/project/packages/pkg1/src/other.tsx' does not exist. |
| 94 | +File '/home/src/workspaces/project/packages/pkg1/src/other.d.ts' exists - use it as a name resolution result. |
| 95 | +======== Module name './other' was successfully resolved to '/home/src/workspaces/project/packages/pkg1/src/other.d.ts'. ======== |
| 96 | +File '/home/src/tslibs/TS/Lib/package.json' does not exist. |
| 97 | +File '/home/src/tslibs/TS/package.json' does not exist. |
| 98 | +File '/home/src/tslibs/package.json' does not exist. |
| 99 | +File '/home/src/package.json' does not exist. |
| 100 | +File '/home/package.json' does not exist. |
| 101 | +File '/package.json' does not exist. |
| 102 | +[91merror[0m[90m TS5055: [0mCannot write file '/home/src/workspaces/project/packages/pkg1/dist/index.d.ts' because it would overwrite input file. |
| 103 | + |
| 104 | + |
| 105 | +Found 1 error. |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | +//// [/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts] *Lib* |
| 110 | + |
| 111 | +//// [/home/src/workspaces/project/packages/pkg1/dist/index.js] |
| 112 | +"use strict"; |
| 113 | +Object.defineProperty(exports, "__esModule", { value: true }); |
| 114 | +exports.C = void 0; |
| 115 | +class C { |
| 116 | +} |
| 117 | +exports.C = C; |
| 118 | + |
| 119 | + |
| 120 | +//// [/home/src/workspaces/project/packages/pkg1/dist/usage.js] |
| 121 | +"use strict"; |
| 122 | +Object.defineProperty(exports, "__esModule", { value: true }); |
| 123 | +exports.usage = void 0; |
| 124 | +const other_1 = require("./other"); |
| 125 | +exports.usage = other_1.c; |
| 126 | + |
| 127 | + |
| 128 | +//// [/home/src/workspaces/project/packages/pkg1/dist/usage.d.ts] |
| 129 | +export declare const usage: C; |
| 130 | + |
| 131 | + |
| 132 | +//// [/home/src/workspaces/project/packages/pkg1/tsconfig.tsbuildinfo] |
| 133 | +{"fileNames":["../../../../tslibs/ts/lib/lib.esnext.full.d.ts","./src/index.ts","./src/other.d.ts","./src/usage.ts"],"fileIdsList":[[3]],"fileInfos":[{"version":"-25093698414-interface 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; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-7264672072-export class C {}","impliedFormat":1},{"version":"13493985673-import { C } from \"pkg1\";\nexport declare const c: C;\n","impliedFormat":1},{"version":"-4480060038-import { c } from \"./other\";\nexport const usage = c;\n","signature":"-7622683403-export declare const usage: C;\n","impliedFormat":1}],"root":[[2,4]],"options":{"composite":true,"module":199,"outDir":"./dist","rootDir":"./src"},"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"emitSignatures":[2],"latestChangedDtsFile":"./dist/usage.d.ts","version":"FakeTSVersion"} |
| 134 | + |
| 135 | +//// [/home/src/workspaces/project/packages/pkg1/tsconfig.tsbuildinfo.readable.baseline.txt] |
| 136 | +{ |
| 137 | + "fileNames": [ |
| 138 | + "../../../../tslibs/ts/lib/lib.esnext.full.d.ts", |
| 139 | + "./src/index.ts", |
| 140 | + "./src/other.d.ts", |
| 141 | + "./src/usage.ts" |
| 142 | + ], |
| 143 | + "fileIdsList": [ |
| 144 | + [ |
| 145 | + "./src/other.d.ts" |
| 146 | + ] |
| 147 | + ], |
| 148 | + "fileInfos": { |
| 149 | + "../../../../tslibs/ts/lib/lib.esnext.full.d.ts": { |
| 150 | + "original": { |
| 151 | + "version": "-25093698414-interface 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; };", |
| 152 | + "affectsGlobalScope": true, |
| 153 | + "impliedFormat": 1 |
| 154 | + }, |
| 155 | + "version": "-25093698414-interface 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; };", |
| 156 | + "signature": "-25093698414-interface 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; };", |
| 157 | + "affectsGlobalScope": true, |
| 158 | + "impliedFormat": "commonjs" |
| 159 | + }, |
| 160 | + "./src/index.ts": { |
| 161 | + "original": { |
| 162 | + "version": "-7264672072-export class C {}", |
| 163 | + "impliedFormat": 1 |
| 164 | + }, |
| 165 | + "version": "-7264672072-export class C {}", |
| 166 | + "signature": "-7264672072-export class C {}", |
| 167 | + "impliedFormat": "commonjs" |
| 168 | + }, |
| 169 | + "./src/other.d.ts": { |
| 170 | + "original": { |
| 171 | + "version": "13493985673-import { C } from \"pkg1\";\nexport declare const c: C;\n", |
| 172 | + "impliedFormat": 1 |
| 173 | + }, |
| 174 | + "version": "13493985673-import { C } from \"pkg1\";\nexport declare const c: C;\n", |
| 175 | + "signature": "13493985673-import { C } from \"pkg1\";\nexport declare const c: C;\n", |
| 176 | + "impliedFormat": "commonjs" |
| 177 | + }, |
| 178 | + "./src/usage.ts": { |
| 179 | + "original": { |
| 180 | + "version": "-4480060038-import { c } from \"./other\";\nexport const usage = c;\n", |
| 181 | + "signature": "-7622683403-export declare const usage: C;\n", |
| 182 | + "impliedFormat": 1 |
| 183 | + }, |
| 184 | + "version": "-4480060038-import { c } from \"./other\";\nexport const usage = c;\n", |
| 185 | + "signature": "-7622683403-export declare const usage: C;\n", |
| 186 | + "impliedFormat": "commonjs" |
| 187 | + } |
| 188 | + }, |
| 189 | + "root": [ |
| 190 | + [ |
| 191 | + [ |
| 192 | + 2, |
| 193 | + 4 |
| 194 | + ], |
| 195 | + [ |
| 196 | + "./src/index.ts", |
| 197 | + "./src/other.d.ts", |
| 198 | + "./src/usage.ts" |
| 199 | + ] |
| 200 | + ] |
| 201 | + ], |
| 202 | + "options": { |
| 203 | + "composite": true, |
| 204 | + "module": 199, |
| 205 | + "outDir": "./dist", |
| 206 | + "rootDir": "./src" |
| 207 | + }, |
| 208 | + "referencedMap": { |
| 209 | + "./src/usage.ts": [ |
| 210 | + "./src/other.d.ts" |
| 211 | + ] |
| 212 | + }, |
| 213 | + "semanticDiagnosticsPerFile": [ |
| 214 | + [ |
| 215 | + "../../../../tslibs/ts/lib/lib.esnext.full.d.ts", |
| 216 | + "not cached or not changed" |
| 217 | + ], |
| 218 | + [ |
| 219 | + "./src/index.ts", |
| 220 | + "not cached or not changed" |
| 221 | + ], |
| 222 | + [ |
| 223 | + "./src/other.d.ts", |
| 224 | + "not cached or not changed" |
| 225 | + ], |
| 226 | + [ |
| 227 | + "./src/usage.ts", |
| 228 | + "not cached or not changed" |
| 229 | + ] |
| 230 | + ], |
| 231 | + "emitSignatures": [ |
| 232 | + "./src/index.ts" |
| 233 | + ], |
| 234 | + "latestChangedDtsFile": "./dist/usage.d.ts", |
| 235 | + "version": "FakeTSVersion", |
| 236 | + "size": 1179 |
| 237 | +} |
| 238 | + |
| 239 | + |
| 240 | +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped |
0 commit comments