mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-30 02:02:41 +01:00
* chore: bump electron@42.9.3 * chore: update build * chore: remove electron dependency Dependency was only needed for types, binary download happens elsewhere. With the 7-day quarantine the dependency adds unnecessary delay on runtime update. * fix: monaco type dependency Locking to node 24.12.4 instead of 24.x to avoid quarantine delay. Can be bumped again in followup. * chore: bump distro * fix: license check for types/node
17 lines
756 B
TypeScript
17 lines
756 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import fs from 'fs';
|
|
import path from 'path';
|
|
|
|
const root = path.dirname(path.dirname(import.meta.dirname));
|
|
|
|
export function getElectronVersion(): Record<string, string> {
|
|
const npmrc = fs.readFileSync(path.join(root, '.npmrc'), 'utf8');
|
|
const electronVersion = /^target="(.*)"$/m.exec(npmrc)![1];
|
|
const msBuildId = /^ms_build_id="(.*)"$/m.exec(npmrc)![1];
|
|
return { electronVersion, msBuildId };
|
|
}
|