diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-01-08 21:36:43 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-01-09 19:53:03 +0100 |
commit | d07e7b834831230b53860d0919a68edc2d36193d (patch) | |
tree | a1f2a021563ddff54f33341c475fc6c6eb787388 /config/buildConstants.js | |
parent | New configurations based on review comments (WIP) (diff) | |
download | sophie-d07e7b834831230b53860d0919a68edc2d36193d.tar.gz sophie-d07e7b834831230b53860d0919a68edc2d36193d.tar.zst sophie-d07e7b834831230b53860d0919a68edc2d36193d.zip |
build: Eslint fixes for multi-module project
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
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} */ |