aboutsummaryrefslogtreecommitdiffstats
path: root/config/buildConstants.js
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-01-08 21:36:43 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-01-09 19:53:03 +0100
commitd07e7b834831230b53860d0919a68edc2d36193d (patch)
treea1f2a021563ddff54f33341c475fc6c6eb787388 /config/buildConstants.js
parentNew configurations based on review comments (WIP) (diff)
downloadsophie-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.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} */