cli: get builds in order

This commit is contained in:
Connor Peet
2022-09-20 09:15:01 -07:00
parent 5e2ce13287
commit 9bcc88eafe
29 changed files with 603 additions and 164 deletions

View File

@@ -14,7 +14,8 @@ import * as _rimraf from 'rimraf';
import * as VinylFile from 'vinyl';
import { ThroughStream } from 'through';
import * as sm from 'source-map';
import * as git from './git';
export { getVersion } from './getVersion';
const root = path.dirname(path.dirname(__dirname));
@@ -317,16 +318,6 @@ export function ensureDir(dirPath: string): void {
fs.mkdirSync(dirPath);
}
export function getVersion(root: string): string | undefined {
let version = process.env['VSCODE_DISTRO_COMMIT'] || process.env['BUILD_SOURCEVERSION'];
if (!version || !/^[0-9a-f]{40}$/i.test(version.trim())) {
version = git.getVersion(root);
}
return version;
}
export function rebase(count: number): NodeJS.ReadWriteStream {
return rename(f => {
const parts = f.dirname ? f.dirname.split(/[\/\\]/) : [];