Skip to content

Commit

Permalink
Pick up TS 4.6.1
Browse files Browse the repository at this point in the history
Fixes microsoft#142460

We're picking up the insiders version because TS is holding off on publishing the stable due to current events. However we don't want `insiders` to show in the version string, so patch the version string to look like the stable version
  • Loading branch information
mjbvz committed Feb 28, 2022
1 parent c662fe6 commit d45c89b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion extensions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "MIT",
"description": "Dependencies shared by all extensions",
"dependencies": {
"typescript": "^4.6.1-rc"
"typescript": "^4.6.2-insiders.20220225"
},
"scripts": {
"postinstall": "node ./postinstall"
Expand Down
8 changes: 8 additions & 0 deletions extensions/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,13 @@ function processLib() {
}
}

function patchVersion() {
const packageJsonPath = path.join(root, 'package.json');
const json = JSON.parse(fs.readFileSync(packageJsonPath).toString());
json.version = '4.6.1';
fs.writeFileSync(packageJsonPath, JSON.stringify(json, null, 2));
}

processRoot();
processLib();
patchVersion();
8 changes: 4 additions & 4 deletions extensions/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ [email protected]:
resolved "https://registry.yarnpkg.com/fast-plist/-/fast-plist-0.1.2.tgz#a45aff345196006d406ca6cdcd05f69051ef35b8"
integrity sha1-pFr/NFGWAG1AbKbNzQX2kFHvNbg=

typescript@^4.6.1-rc:
version "4.6.1-rc"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.1-rc.tgz#75baa823a6fca592f358b486acc2039f103ca2af"
integrity sha512-tLPT3GelVfTN9wXPOuPKfY83PkMvgdF3V3gHK/ElNrpQPdLKQ/HMU5cS6+7epYSIF2gne190jzydAW0FLLwU7A==
typescript@^4.6.2-insiders.20220225:
version "4.6.2-insiders.20220225"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.2-insiders.20220225.tgz#e0469f0814bd04b6e276aeabcc481057fb2433a8"
integrity sha512-ugJR+CenSK8o6vFvguSinjCICseeJ/wlo/VqEFyB8mHWrgt01VRIA5Y9GSwUOQ4WuohBBAmx739cWCdBiztR8w==

vscode-grammar-updater@^1.0.3:
version "1.0.3"
Expand Down

0 comments on commit d45c89b

Please sign in to comment.