diff options
Diffstat (limited to 'config/buildConstants.js')
-rw-r--r-- | config/buildConstants.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/config/buildConstants.js b/config/buildConstants.js index 9083d78..3c55500 100644 --- a/config/buildConstants.js +++ b/config/buildConstants.js | |||
@@ -7,11 +7,15 @@ const thisDir = fileURLToDirname(import.meta.url); | |||
7 | 7 | ||
8 | // We import this from a vite config, where top-level await is not available (es2021), | 8 | // We import this from a vite config, where top-level await is not available (es2021), |
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( |
11 | join(thisDir, '../.electron-vendors.cache.json'), | ||
12 | 'utf8', | ||
13 | ); | ||
11 | 14 | ||
12 | /** @type {{ chrome: number; node: number; }} */ | 15 | /** @type {{ chrome: number; node: number; }} */ |
13 | // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment | 16 | // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment |
14 | const { chrome: chromeVersion, node: nodeVersion } = JSON.parse(electronVendorsJson); | 17 | const { chrome: chromeVersion, node: nodeVersion } = |
18 | JSON.parse(electronVendorsJson); | ||
15 | 19 | ||
16 | /** @type {string} */ | 20 | /** @type {string} */ |
17 | export const banner = `/*! | 21 | export const banner = `/*! |