aboutsummaryrefslogtreecommitdiffstats
path: root/config/buildConstants.js
diff options
context:
space:
mode:
Diffstat (limited to 'config/buildConstants.js')
-rw-r--r--config/buildConstants.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/buildConstants.js b/config/buildConstants.js
index 627c895..9083d78 100644
--- a/config/buildConstants.js
+++ b/config/buildConstants.js
@@ -1,7 +1,7 @@
1import { readFileSync } from 'fs'; 1import { readFileSync } from 'fs';
2import { join } from 'path'; 2import { join } from 'path';
3 3
4import { fileURLToDirname } from './utils.js'; 4import fileURLToDirname from './fileURLToDirname.js';
5 5
6const thisDir = fileURLToDirname(import.meta.url); 6const thisDir = fileURLToDirname(import.meta.url);
7 7
@@ -9,6 +9,8 @@ const thisDir = fileURLToDirname(import.meta.url);
9// so we have to use the synchronous filesystem API. 9// so we have to use the synchronous filesystem API.
10const electronVendorsJson = readFileSync(join(thisDir, '../.electron-vendors.cache.json'), 'utf8'); 10const electronVendorsJson = readFileSync(join(thisDir, '../.electron-vendors.cache.json'), 'utf8');
11 11
12/** @type {{ chrome: number; node: number; }} */
13// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
12const { chrome: chromeVersion, node: nodeVersion } = JSON.parse(electronVendorsJson); 14const { chrome: chromeVersion, node: nodeVersion } = JSON.parse(electronVendorsJson);
13 15
14/** @type {string} */ 16/** @type {string} */