diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/updateElectronVendors.js | 2 | ||||
-rw-r--r-- | scripts/watch.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/updateElectronVendors.js b/scripts/updateElectronVendors.js index 5e8ab36..2bbcec3 100644 --- a/scripts/updateElectronVendors.js +++ b/scripts/updateElectronVendors.js | |||
@@ -20,7 +20,7 @@ function getVendors() { | |||
20 | `${electronPath.toString()} -p "JSON.stringify(process.versions)"`, | 20 | `${electronPath.toString()} -p "JSON.stringify(process.versions)"`, |
21 | { | 21 | { |
22 | env: { ELECTRON_RUN_AS_NODE: '1' }, | 22 | env: { ELECTRON_RUN_AS_NODE: '1' }, |
23 | encoding: 'utf-8', | 23 | encoding: 'utf8', |
24 | }, | 24 | }, |
25 | ); | 25 | ); |
26 | 26 | ||
diff --git a/scripts/watch.js b/scripts/watch.js index 91f3583..8ea5f29 100644 --- a/scripts/watch.js +++ b/scripts/watch.js | |||
@@ -181,7 +181,7 @@ function setupMainPackageWatcher(viteDevServer) { | |||
181 | }); | 181 | }); |
182 | 182 | ||
183 | spawnProcess.stderr.on('data', (/** @type {Buffer} */ data) => { | 183 | spawnProcess.stderr.on('data', (/** @type {Buffer} */ data) => { |
184 | const stderrString = data.toString('utf-8').trimEnd(); | 184 | const stderrString = data.toString('utf8').trimEnd(); |
185 | if (!stderrIgnorePatterns.some((r) => r.test(stderrString))) { | 185 | if (!stderrIgnorePatterns.some((r) => r.test(stderrString))) { |
186 | console.error(stderrString); | 186 | console.error(stderrString); |
187 | } | 187 | } |