Convert build scripts to JavaScript.

This commit is contained in:
Henning Dieterichs 2022-02-03 14:56:52 +01:00
parent 84665761ff
commit 4bf3b49c41
No known key found for this signature in database
GPG key ID: 771381EFFDB9EC06
14 changed files with 231 additions and 233 deletions

20
build/npm/removeAll.ts Normal file
View file

@ -0,0 +1,20 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import glob from 'glob';
import path from 'path';
import fs from 'fs';
import { REPO_ROOT } from '../utils';
const files = glob.sync('**/package-lock.json', {
cwd: REPO_ROOT,
ignore: ['**/node_modules/**', '**/out/**', '**/release/**']
});
for (const file of files) {
const filePath = path.join(REPO_ROOT, file);
console.log(`Deleting ${file}...`);
fs.unlinkSync(filePath);
}