mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Capture fakes.version instead of the current version string in baselines (#36518)
* Capture CURRENT.VERSION instead of the current version string in baselines * Use fakes.version * Move replacer into patchHostForBuildInfoReadWrite
This commit is contained in:
parent
2fac535158
commit
140fee96d7
@ -534,6 +534,8 @@ ${indentText}${text}`;
|
||||
buildInfo.version = ts.version;
|
||||
return ts.getBuildInfoText(buildInfo);
|
||||
};
|
||||
const originalWrite = sys.write;
|
||||
sys.write = msg => originalWrite.call(sys, msg.replace(ts.version, version));
|
||||
|
||||
if (sys.writeFile) {
|
||||
const originalWriteFile = sys.writeFile;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
//// [/lib/initial-buildOutput.txt]
|
||||
/lib/tsc
|
||||
Version 3.8.0-dev
|
||||
Version FakeTSVersion
|
||||
Syntax: tsc [options] [file...]
|
||||
|
||||
Examples: tsc hello.ts
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user