提交 847f78f6 编写于 作者: M Martin Aeschlimann

[typescript] update grammar script improvements

上级 9582aef3
......@@ -141,6 +141,7 @@ function packageTask(platform, arch, opts) {
'!extensions/*/src/**',
'!extensions/*/out/**/test/**',
'!extensions/*/test/**',
'!extensions/*/build/**',
'!extensions/*/{client,server}/src/**',
'!extensions/*/{client,server}/test/**',
'!extensions/*/{client,server}/out/**/test/**',
......
......@@ -13,8 +13,11 @@ Promise.all([
download.toFile(contentBaseLocation + 'TypeScript.tmLanguage', './syntaxes/TypeScript.tmLanguage'),
download.toFile(contentBaseLocation + 'TypeScriptReact.tmLanguage', './syntaxes/TypeScriptReact.tmLanguage'),
download.toString(lastCommit).then(function (content) {
fs.writeFileSync('./syntaxes/grammar-version.txt', JSON.parse(content).object.url);
console.log('Update completed.')
var commitInfo = JSON.parse(content);
fs.writeFileSync('./syntaxes/grammar-version.txt', commitInfo.object.url);
console.log('Update completed.');
console.log('New commit comment:');
console.log('[typescript] update grammar (Microsoft/TypeScript-TmLanguage@' + commitInfo.object.sha.substr(0, 7) + ')');
}, console.error)
]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册