Skip to content

Commit 1ab44d1

Browse files
committed
Update new baselines
1 parent 198c386 commit 1ab44d1

File tree

3 files changed

+20
-68
lines changed

3 files changed

+20
-68
lines changed

tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-command-line-incremental-flag-changes-between-non-dts-changes-discrepancies.js

Lines changed: 8 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,10 @@ CleanBuild:
99
IncrementalBuild:
1010
{
1111
"fileInfos": {
12-
"../../../../lib/lib.d.ts": {
13-
"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; };",
14-
"impliedFormat": "commonjs"
15-
},
16-
"../../../first/bin/first-output.d.ts": {
17-
"version": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n",
18-
"impliedFormat": "commonjs"
19-
},
20-
"../../../2/second-output.d.ts": {
21-
"version": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n",
22-
"impliedFormat": "commonjs"
23-
},
24-
"../../third_part1.ts": {
25-
"version": "7305100057-var c = new C();\nc.doSomething();\n",
26-
"impliedFormat": "commonjs"
27-
}
12+
"../../../../lib/lib.d.ts": "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; };",
13+
"../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n",
14+
"../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n",
15+
"../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n"
2816
},
2917
"root": [
3018
[
@@ -49,36 +37,8 @@ CleanBuild:
4937

5038
IncrementalBuild:
5139
{
52-
"../../../../lib/lib.d.ts": {
53-
"original": {
54-
"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; };",
55-
"impliedFormat": 1
56-
},
57-
"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; };",
58-
"impliedFormat": "commonjs"
59-
},
60-
"../../../first/bin/first-output.d.ts": {
61-
"original": {
62-
"version": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n",
63-
"impliedFormat": 1
64-
},
65-
"version": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n",
66-
"impliedFormat": "commonjs"
67-
},
68-
"../../../2/second-output.d.ts": {
69-
"original": {
70-
"version": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n",
71-
"impliedFormat": 1
72-
},
73-
"version": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n",
74-
"impliedFormat": "commonjs"
75-
},
76-
"../../third_part1.ts": {
77-
"original": {
78-
"version": "7305100057-var c = new C();\nc.doSomething();\n",
79-
"impliedFormat": 1
80-
},
81-
"version": "7305100057-var c = new C();\nc.doSomething();\n",
82-
"impliedFormat": "commonjs"
83-
}
40+
"../../../../lib/lib.d.ts": "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; };",
41+
"../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n",
42+
"../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n",
43+
"../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n"
8444
}

tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file-without-incremental-with-tsc.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ exports.Other = 0;
8888

8989

9090
//// [/src/dist/tsconfig.tsbuildinfo]
91-
{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"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; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4254247902-export const Other = 0;\n","signature":"-10003600206-export declare const Other = 0;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./other.d.ts","version":"FakeTSVersion"}
91+
{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"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; };","affectsGlobalScope":true},{"version":"-4254247902-export const Other = 0;\n","signature":"-10003600206-export declare const Other = 0;\n"}],"root":[2],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./other.d.ts","version":"FakeTSVersion"}
9292

9393
//// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt]
9494
{
@@ -100,23 +100,19 @@ exports.Other = 0;
100100
"../../lib/lib.d.ts": {
101101
"original": {
102102
"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; };",
103-
"affectsGlobalScope": true,
104-
"impliedFormat": 1
103+
"affectsGlobalScope": true
105104
},
106105
"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; };",
107106
"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-
"impliedFormat": "commonjs"
107+
"affectsGlobalScope": true
110108
},
111109
"../src/other/other.ts": {
112110
"original": {
113111
"version": "-4254247902-export const Other = 0;\n",
114-
"signature": "-10003600206-export declare const Other = 0;\n",
115-
"impliedFormat": 1
112+
"signature": "-10003600206-export declare const Other = 0;\n"
116113
},
117114
"version": "-4254247902-export const Other = 0;\n",
118-
"signature": "-10003600206-export declare const Other = 0;\n",
119-
"impliedFormat": "commonjs"
115+
"signature": "-10003600206-export declare const Other = 0;\n"
120116
}
121117
},
122118
"root": [
@@ -131,7 +127,7 @@ exports.Other = 0;
131127
},
132128
"latestChangedDtsFile": "./other.d.ts",
133129
"version": "FakeTSVersion",
134-
"size": 820
130+
"size": 784
135131
}
136132

137133

tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file-without-incremental.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ exports.Other = 0;
105105

106106

107107
//// [/src/dist/tsconfig.tsbuildinfo]
108-
{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"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; };","affectsGlobalScope":true,"impliedFormat":1},{"version":"-4254247902-export const Other = 0;\n","signature":"-10003600206-export declare const Other = 0;\n","impliedFormat":1}],"root":[2],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./other.d.ts","version":"FakeTSVersion"}
108+
{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"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; };","affectsGlobalScope":true},{"version":"-4254247902-export const Other = 0;\n","signature":"-10003600206-export declare const Other = 0;\n"}],"root":[2],"options":{"composite":true,"outDir":"./"},"latestChangedDtsFile":"./other.d.ts","version":"FakeTSVersion"}
109109

110110
//// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt]
111111
{
@@ -117,23 +117,19 @@ exports.Other = 0;
117117
"../../lib/lib.d.ts": {
118118
"original": {
119119
"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; };",
120-
"affectsGlobalScope": true,
121-
"impliedFormat": 1
120+
"affectsGlobalScope": true
122121
},
123122
"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; };",
124123
"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; };",
125-
"affectsGlobalScope": true,
126-
"impliedFormat": "commonjs"
124+
"affectsGlobalScope": true
127125
},
128126
"../src/other/other.ts": {
129127
"original": {
130128
"version": "-4254247902-export const Other = 0;\n",
131-
"signature": "-10003600206-export declare const Other = 0;\n",
132-
"impliedFormat": 1
129+
"signature": "-10003600206-export declare const Other = 0;\n"
133130
},
134131
"version": "-4254247902-export const Other = 0;\n",
135-
"signature": "-10003600206-export declare const Other = 0;\n",
136-
"impliedFormat": "commonjs"
132+
"signature": "-10003600206-export declare const Other = 0;\n"
137133
}
138134
},
139135
"root": [
@@ -148,6 +144,6 @@ exports.Other = 0;
148144
},
149145
"latestChangedDtsFile": "./other.d.ts",
150146
"version": "FakeTSVersion",
151-
"size": 820
147+
"size": 784
152148
}
153149

0 commit comments

Comments
 (0)