diff options
Diffstat (limited to 'config/buildConstants.js')
-rw-r--r-- | config/buildConstants.js | 4 |
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 @@ | |||
1 | import { readFileSync } from 'fs'; | 1 | import { readFileSync } from 'fs'; |
2 | import { join } from 'path'; | 2 | import { join } from 'path'; |
3 | 3 | ||
4 | import { fileURLToDirname } from './utils.js'; | 4 | import fileURLToDirname from './fileURLToDirname.js'; |
5 | 5 | ||
6 | const thisDir = fileURLToDirname(import.meta.url); | 6 | const 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. |
10 | const electronVendorsJson = readFileSync(join(thisDir, '../.electron-vendors.cache.json'), 'utf8'); | 10 | const 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 | ||
12 | const { chrome: chromeVersion, node: nodeVersion } = JSON.parse(electronVendorsJson); | 14 | const { chrome: chromeVersion, node: nodeVersion } = JSON.parse(electronVendorsJson); |
13 | 15 | ||
14 | /** @type {string} */ | 16 | /** @type {string} */ |