|
| 1 | +currentDirectory::/home/src/workspaces/project |
| 2 | +useCaseSensitiveFileNames::true |
| 3 | +Input:: |
| 4 | +//// [/home/src/workspaces/project/src/main.ts] *new* |
| 5 | +const x = 10; |
| 6 | +//// [/home/src/workspaces/project/tsconfig.json] *new* |
| 7 | +{ |
| 8 | + "compilerOptions": { |
| 9 | + "module": "none", |
| 10 | + "composite": true, |
| 11 | + }, |
| 12 | +} |
| 13 | + |
| 14 | +tsgo |
| 15 | +ExitStatus:: Success |
| 16 | +Output:: |
| 17 | +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* |
| 18 | +/// <reference no-default-lib="true"/> |
| 19 | +interface Boolean {} |
| 20 | +interface Function {} |
| 21 | +interface CallableFunction {} |
| 22 | +interface NewableFunction {} |
| 23 | +interface IArguments {} |
| 24 | +interface Number { toExponential: any; } |
| 25 | +interface Object {} |
| 26 | +interface RegExp {} |
| 27 | +interface String { charAt: any; } |
| 28 | +interface Array<T> { length: number; [n: number]: T; } |
| 29 | +interface ReadonlyArray<T> {} |
| 30 | +interface SymbolConstructor { |
| 31 | + (desc?: string | number): symbol; |
| 32 | + for(name: string): symbol; |
| 33 | + readonly toStringTag: symbol; |
| 34 | +} |
| 35 | +declare var Symbol: SymbolConstructor; |
| 36 | +interface Symbol { |
| 37 | + readonly [Symbol.toStringTag]: string; |
| 38 | +} |
| 39 | +declare const console: { log(msg: any): void; }; |
| 40 | +//// [/home/src/workspaces/project/src/main.d.ts] *new* |
| 41 | +declare const x = 10; |
| 42 | + |
| 43 | +//// [/home/src/workspaces/project/src/main.js] *new* |
| 44 | +const x = 10; |
| 45 | + |
| 46 | +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new* |
| 47 | +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// <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> {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4447ab8c90027f28bdaff9f2056779ce-const x = 10;","signature":"4be7af7f970696121f4f582a5d074177-declare const x = 10;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true},"latestChangedDtsFile":"./src/main.d.ts"} |
| 48 | +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new* |
| 49 | +{ |
| 50 | + "version": "FakeTSVersion", |
| 51 | + "root": [ |
| 52 | + { |
| 53 | + "files": [ |
| 54 | + "./src/main.ts" |
| 55 | + ], |
| 56 | + "original": 2 |
| 57 | + } |
| 58 | + ], |
| 59 | + "fileNames": [ |
| 60 | + "lib.d.ts", |
| 61 | + "./src/main.ts" |
| 62 | + ], |
| 63 | + "fileInfos": [ |
| 64 | + { |
| 65 | + "fileName": "lib.d.ts", |
| 66 | + "version": "8859c12c614ce56ba9a18e58384a198f-/// <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> {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", |
| 67 | + "signature": "8859c12c614ce56ba9a18e58384a198f-/// <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> {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", |
| 68 | + "affectsGlobalScope": true, |
| 69 | + "impliedNodeFormat": "CommonJS", |
| 70 | + "original": { |
| 71 | + "version": "8859c12c614ce56ba9a18e58384a198f-/// <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> {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", |
| 72 | + "affectsGlobalScope": true, |
| 73 | + "impliedNodeFormat": 1 |
| 74 | + } |
| 75 | + }, |
| 76 | + { |
| 77 | + "fileName": "./src/main.ts", |
| 78 | + "version": "4447ab8c90027f28bdaff9f2056779ce-const x = 10;", |
| 79 | + "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", |
| 80 | + "affectsGlobalScope": true, |
| 81 | + "impliedNodeFormat": "CommonJS", |
| 82 | + "original": { |
| 83 | + "version": "4447ab8c90027f28bdaff9f2056779ce-const x = 10;", |
| 84 | + "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", |
| 85 | + "affectsGlobalScope": true, |
| 86 | + "impliedNodeFormat": 1 |
| 87 | + } |
| 88 | + } |
| 89 | + ], |
| 90 | + "options": { |
| 91 | + "composite": true |
| 92 | + }, |
| 93 | + "latestChangedDtsFile": "./src/main.d.ts", |
| 94 | + "size": 1113 |
| 95 | +} |
| 96 | + |
| 97 | +tsconfig.json:: |
| 98 | +SemanticDiagnostics:: |
| 99 | +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts |
| 100 | +*refresh* /home/src/workspaces/project/src/main.ts |
| 101 | +Signatures:: |
| 102 | +(stored at emit) /home/src/workspaces/project/src/main.ts |
| 103 | + |
| 104 | + |
| 105 | +Edit [0]:: convert to modules |
| 106 | +//// [/home/src/workspaces/project/tsconfig.json] *modified* |
| 107 | +{ |
| 108 | + "compilerOptions": { |
| 109 | + "module": "es2015", |
| 110 | + "composite": true, |
| 111 | + }, |
| 112 | +} |
| 113 | + |
| 114 | +tsgo |
| 115 | +ExitStatus:: Success |
| 116 | +Output:: |
| 117 | +//// [/home/src/workspaces/project/src/main.js] *rewrite with same content* |
| 118 | +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *modified* |
| 119 | +{"version":"FakeTSVersion","root":[2],"fileNames":["lib.d.ts","./src/main.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// <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> {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4447ab8c90027f28bdaff9f2056779ce-const x = 10;","signature":"4be7af7f970696121f4f582a5d074177-declare const x = 10;\n","affectsGlobalScope":true,"impliedNodeFormat":1}],"options":{"composite":true,"module":5},"latestChangedDtsFile":"./src/main.d.ts"} |
| 120 | +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* |
| 121 | +{ |
| 122 | + "version": "FakeTSVersion", |
| 123 | + "root": [ |
| 124 | + { |
| 125 | + "files": [ |
| 126 | + "./src/main.ts" |
| 127 | + ], |
| 128 | + "original": 2 |
| 129 | + } |
| 130 | + ], |
| 131 | + "fileNames": [ |
| 132 | + "lib.d.ts", |
| 133 | + "./src/main.ts" |
| 134 | + ], |
| 135 | + "fileInfos": [ |
| 136 | + { |
| 137 | + "fileName": "lib.d.ts", |
| 138 | + "version": "8859c12c614ce56ba9a18e58384a198f-/// <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> {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", |
| 139 | + "signature": "8859c12c614ce56ba9a18e58384a198f-/// <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> {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", |
| 140 | + "affectsGlobalScope": true, |
| 141 | + "impliedNodeFormat": "CommonJS", |
| 142 | + "original": { |
| 143 | + "version": "8859c12c614ce56ba9a18e58384a198f-/// <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> {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", |
| 144 | + "affectsGlobalScope": true, |
| 145 | + "impliedNodeFormat": 1 |
| 146 | + } |
| 147 | + }, |
| 148 | + { |
| 149 | + "fileName": "./src/main.ts", |
| 150 | + "version": "4447ab8c90027f28bdaff9f2056779ce-const x = 10;", |
| 151 | + "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", |
| 152 | + "affectsGlobalScope": true, |
| 153 | + "impliedNodeFormat": "CommonJS", |
| 154 | + "original": { |
| 155 | + "version": "4447ab8c90027f28bdaff9f2056779ce-const x = 10;", |
| 156 | + "signature": "4be7af7f970696121f4f582a5d074177-declare const x = 10;\n", |
| 157 | + "affectsGlobalScope": true, |
| 158 | + "impliedNodeFormat": 1 |
| 159 | + } |
| 160 | + } |
| 161 | + ], |
| 162 | + "options": { |
| 163 | + "composite": true, |
| 164 | + "module": 5 |
| 165 | + }, |
| 166 | + "latestChangedDtsFile": "./src/main.d.ts", |
| 167 | + "size": 1124 |
| 168 | +} |
| 169 | + |
| 170 | +tsconfig.json:: |
| 171 | +SemanticDiagnostics:: |
| 172 | +Signatures:: |
0 commit comments