|
| 1 | +Input:: |
| 2 | +//// [/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 | +//// [/src/solution/src/common/nominal.ts] |
| 18 | +/// <reference path="./types.d.ts" /> |
| 19 | +export declare type Nominal<T, Name extends string> = MyNominal<T, Name>; |
| 20 | + |
| 21 | +//// [/src/solution/src/common/tsconfig.json] |
| 22 | +{"extends":"../../tsconfig.base.json","compilerOptions":{"composite":true,"baseUrl":"./"},"include":["./nominal.ts"]} |
| 23 | + |
| 24 | +//// [/src/solution/src/common/types.d.ts] |
| 25 | +declare type MyNominal<T, Name extends string> = T & { |
| 26 | + specialKey: Name; |
| 27 | +}; |
| 28 | + |
| 29 | +//// [/src/solution/src/subProject/index.ts] |
| 30 | +import { Nominal } from '../common/nominal'; |
| 31 | +export type MyNominal = Nominal<string, 'MyNominal'>; |
| 32 | + |
| 33 | +//// [/src/solution/src/subProject/tsconfig.json] |
| 34 | +{"extends":"../../tsconfig.base.json","compilerOptions":{"composite":true},"references":[{"path":"../common"}],"include":["./index.ts"]} |
| 35 | + |
| 36 | +//// [/src/solution/src/subProject2/index.ts] |
| 37 | + |
| 38 | + |
| 39 | +//// [/src/solution/src/subProject2/tsconfig.json] |
| 40 | +{"extends":"../../tsconfig.base.json","compilerOptions":{"composite":true},"references":[{"path":"../subProject"}],"include":["./index.ts"]} |
| 41 | + |
| 42 | +//// [/src/solution/src/tsconfig.json] |
| 43 | +{"compilerOptions":{"composite":true},"references":[{"path":"./subProject"},{"path":"./subProject2"}],"include":[]} |
| 44 | + |
| 45 | +//// [/src/solution/tsconfig.base.json] |
| 46 | +{"compilerOptions":{"rootDir":"./","outDir":"lib"}} |
| 47 | + |
| 48 | +//// [/src/solution/tsconfig.json] |
| 49 | +{"compilerOptions":{"composite":true},"references":[{"path":"./src"}],"include":[]} |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | +Output:: |
| 54 | +/lib/tsc --b /src/solution/tsconfig.json --verbose |
| 55 | +[[90m12:00:00 AM[0m] Projects in this build: |
| 56 | + * src/solution/src/common/tsconfig.json |
| 57 | + * src/solution/src/subProject/tsconfig.json |
| 58 | + * src/solution/src/subProject2/tsconfig.json |
| 59 | + * src/solution/src/tsconfig.json |
| 60 | + * src/solution/tsconfig.json |
| 61 | + |
| 62 | +[[90m12:00:00 AM[0m] Project 'src/solution/src/common/tsconfig.json' is out of date because output file 'src/solution/lib/src/common/nominal.js' does not exist |
| 63 | + |
| 64 | +[[90m12:00:00 AM[0m] Building project '/src/solution/src/common/tsconfig.json'... |
| 65 | + |
| 66 | +[[90m12:00:00 AM[0m] Project 'src/solution/src/subProject/tsconfig.json' is out of date because output file 'src/solution/lib/src/subProject/index.js' does not exist |
| 67 | + |
| 68 | +[[90m12:00:00 AM[0m] Building project '/src/solution/src/subProject/tsconfig.json'... |
| 69 | + |
| 70 | +[96msrc/solution/lib/src/common/nominal.d.ts[0m:[93m2[0m:[93m55[0m - [91merror[0m[90m TS2304: [0mCannot find name 'MyNominal'. |
| 71 | + |
| 72 | +[7m2[0m export declare type Nominal<T, Name extends string> = MyNominal<T, Name>; |
| 73 | +[7m [0m [91m ~~~~~~~~~[0m |
| 74 | + |
| 75 | +[96msrc/solution/lib/src/common/nominal.d.ts[0m:[93m1[0m:[93m23[0m - [91merror[0m[90m TS2688: [0mCannot find type definition file for 'types'. |
| 76 | + |
| 77 | +[7m1[0m /// <reference types="types" /> |
| 78 | +[7m [0m [91m ~~~~~[0m |
| 79 | + |
| 80 | +[[90m12:00:00 AM[0m] Project 'src/solution/src/subProject2/tsconfig.json' can't be built because its dependency 'src/solution/src/subProject' has errors |
| 81 | + |
| 82 | +[[90m12:00:00 AM[0m] Skipping build of project '/src/solution/src/subProject2/tsconfig.json' because its dependency '/src/solution/src/subProject' has errors |
| 83 | + |
| 84 | + |
| 85 | +Found 2 errors. |
| 86 | + |
| 87 | +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated |
| 88 | + |
| 89 | + |
| 90 | +//// [/src/solution/lib/src/common/nominal.d.ts] |
| 91 | +/// <reference types="types" /> |
| 92 | +export declare type Nominal<T, Name extends string> = MyNominal<T, Name>; |
| 93 | + |
| 94 | + |
| 95 | +//// [/src/solution/lib/src/common/nominal.js] |
| 96 | +"use strict"; |
| 97 | +exports.__esModule = true; |
| 98 | +/// <reference path="./types.d.ts" /> |
| 99 | + |
| 100 | + |
| 101 | +//// [/src/solution/lib/src/common/tsconfig.tsbuildinfo] |
| 102 | +{ |
| 103 | + "program": { |
| 104 | + "fileInfos": { |
| 105 | + "../../../../../lib/lib.d.ts": { |
| 106 | + "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; };", |
| 107 | + "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; };", |
| 108 | + "affectsGlobalScope": true |
| 109 | + }, |
| 110 | + "../../../src/common/types.d.ts": { |
| 111 | + "version": "23815050294-declare type MyNominal<T, Name extends string> = T & {\n specialKey: Name;\n};", |
| 112 | + "signature": "23815050294-declare type MyNominal<T, Name extends string> = T & {\n specialKey: Name;\n};", |
| 113 | + "affectsGlobalScope": true |
| 114 | + }, |
| 115 | + "../../../src/common/nominal.ts": { |
| 116 | + "version": "4107369137-/// <reference path=\"./types.d.ts\" />\nexport declare type Nominal<T, Name extends string> = MyNominal<T, Name>;", |
| 117 | + "signature": "-2060908103-/// <reference types=\"types\" />\r\nexport declare type Nominal<T, Name extends string> = MyNominal<T, Name>;\r\n", |
| 118 | + "affectsGlobalScope": false |
| 119 | + } |
| 120 | + }, |
| 121 | + "options": { |
| 122 | + "rootDir": "../../..", |
| 123 | + "outDir": "../..", |
| 124 | + "composite": true, |
| 125 | + "baseUrl": "../../../src/common", |
| 126 | + "configFilePath": "../../../src/common/tsconfig.json" |
| 127 | + }, |
| 128 | + "referencedMap": { |
| 129 | + "../../../src/common/nominal.ts": [ |
| 130 | + "../../../src/common/types.d.ts" |
| 131 | + ] |
| 132 | + }, |
| 133 | + "exportedModulesMap": {}, |
| 134 | + "semanticDiagnosticsPerFile": [ |
| 135 | + "../../../../../lib/lib.d.ts", |
| 136 | + "../../../src/common/nominal.ts", |
| 137 | + "../../../src/common/types.d.ts" |
| 138 | + ] |
| 139 | + }, |
| 140 | + "version": "FakeTSVersion" |
| 141 | +} |
| 142 | + |
| 143 | +//// [/src/solution/lib/src/subProject/tsconfig.tsbuildinfo] |
| 144 | +{ |
| 145 | + "program": { |
| 146 | + "fileInfos": { |
| 147 | + "../../../../../lib/lib.d.ts": { |
| 148 | + "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; };", |
| 149 | + "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; };", |
| 150 | + "affectsGlobalScope": true |
| 151 | + }, |
| 152 | + "../common/nominal.d.ts": { |
| 153 | + "version": "-2060908103-/// <reference types=\"types\" />\r\nexport declare type Nominal<T, Name extends string> = MyNominal<T, Name>;\r\n", |
| 154 | + "signature": "-2060908103-/// <reference types=\"types\" />\r\nexport declare type Nominal<T, Name extends string> = MyNominal<T, Name>;\r\n", |
| 155 | + "affectsGlobalScope": false |
| 156 | + }, |
| 157 | + "../../../src/subproject/index.ts": { |
| 158 | + "version": "-25117049605-import { Nominal } from '../common/nominal';\nexport type MyNominal = Nominal<string, 'MyNominal'>;", |
| 159 | + "signature": "-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal<string, 'MyNominal'>;\r\n", |
| 160 | + "affectsGlobalScope": false |
| 161 | + } |
| 162 | + }, |
| 163 | + "options": { |
| 164 | + "rootDir": "../../..", |
| 165 | + "outDir": "../..", |
| 166 | + "composite": true, |
| 167 | + "configFilePath": "../../../src/subProject/tsconfig.json" |
| 168 | + }, |
| 169 | + "referencedMap": { |
| 170 | + "../../../src/subproject/index.ts": [ |
| 171 | + "../common/nominal.d.ts" |
| 172 | + ] |
| 173 | + }, |
| 174 | + "exportedModulesMap": { |
| 175 | + "../../../src/subproject/index.ts": [ |
| 176 | + "../common/nominal.d.ts" |
| 177 | + ] |
| 178 | + }, |
| 179 | + "semanticDiagnosticsPerFile": [ |
| 180 | + "../../../../../lib/lib.d.ts", |
| 181 | + [ |
| 182 | + "../common/nominal.d.ts", |
| 183 | + [ |
| 184 | + { |
| 185 | + "file": "../common/nominal.d.ts", |
| 186 | + "start": 87, |
| 187 | + "length": 9, |
| 188 | + "messageText": "Cannot find name 'MyNominal'.", |
| 189 | + "category": 1, |
| 190 | + "code": 2304 |
| 191 | + } |
| 192 | + ] |
| 193 | + ], |
| 194 | + "../../../src/subproject/index.ts" |
| 195 | + ], |
| 196 | + "affectedFilesPendingEmit": [ |
| 197 | + [ |
| 198 | + "../common/nominal.d.ts", |
| 199 | + 1 |
| 200 | + ], |
| 201 | + [ |
| 202 | + "../../../src/subproject/index.ts", |
| 203 | + 1 |
| 204 | + ] |
| 205 | + ] |
| 206 | + }, |
| 207 | + "version": "FakeTSVersion" |
| 208 | +} |
| 209 | + |
0 commit comments