build: update some build dependencies (#44070)

* build: update some build dependencies (#43882)

* build: update some build dependencies

* build: fix eslint issues after updating

* build: disable ts check on busted js example

* build: update internal types for stricter event handling

* restore url.parse behavior

* fix typing issues

* sigh

* build: update easy deps

* build: skip woa engines check

* build: s/colors/chalk

* build: node 20 on windows
This commit is contained in:
Samuel Attard 2024-10-01 13:04:53 -07:00 committed by GitHub
parent 2e84985439
commit 2f519a8f2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
50 changed files with 2354 additions and 1343 deletions

View file

@ -15,7 +15,7 @@ module.exports.getElectronVersion = () => {
if (match) {
return match[1];
}
} catch (error) {
} catch {
// Error may happen when trying to get version before running gn, which is a
// valid case and error will be ignored.
}

View file

@ -1,3 +1,4 @@
const chalk = require('chalk');
const { GitProcess } = require('dugite');
const fs = require('node:fs');
const os = require('node:os');
@ -6,10 +7,9 @@ const path = require('node:path');
const ELECTRON_DIR = path.resolve(__dirname, '..', '..');
const SRC_DIR = path.resolve(ELECTRON_DIR, '..');
require('colors');
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const pass = '✓'.green;
const fail = '✗'.red;
const pass = chalk.green('✓');
const fail = chalk.red('✗');
function getElectronExec () {
const OUT_DIR = getOutDir();