Add support for skipping monaco-editor-core

This commit is contained in:
Alex Dima 2021-12-10 21:51:49 +01:00
parent 7e010114fe
commit f1fc190711
No known key found for this signature in database
GPG key ID: 39563C1504FDD0C9
2 changed files with 46 additions and 10 deletions

17
.github/workflows/publish/setVersion.js vendored Normal file
View file

@ -0,0 +1,17 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
//@ts-check
const fs = require('fs');
if (process.argv.length !== 4) {
console.error(`usage: node setVersion.js <PATH_TO_PACKAGE_JSON_FILE> <VERSION>`);
process.exit(1);
}
const packagejson = JSON.parse(fs.readFileSync(process.argv[2]).toString());
packagejson.version = process.argv[3];
fs.writeFileSync(process.argv[2], JSON.stringify(packagejson, null, '\t') + '\n');