Skip to content

Commit eb3a982

Browse files
authored
chore: update deps (#501)
Notable changes: - Updates preferred development npm version to 11.8.0 - Replaces usage of `dotenv` with [`loadEnvFile`](https://nodejs.org/docs/latest-v24.x/api/process.html#processloadenvfilepath) (built into Node)
1 parent 5e7d9ba commit eb3a982

File tree

9 files changed

+535
-537
lines changed

9 files changed

+535
-537
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Go to the [Development](./docs/DEVELOPMENT.md) docs to learn about how the proje
77
Make sure you have the preferred versions of tooling installed:
88

99
- [`NodeJS`](https://nodejs.org): [24.11.1](./.nvmrc)
10-
- [`npm`](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm): 11.7.0
10+
- [`npm`](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm): 11.8.0
1111

1212
1. Clone the repo:
1313

forge.config.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { mkdirSync } from 'node:fs'
33
import fs from 'node:fs/promises'
44
import { arch, platform } from 'node:os'
55
import path from 'node:path'
6+
import { loadEnvFile } from 'node:process'
67
import { fileURLToPath } from 'node:url'
78
import { MakerDeb } from '@electron-forge/maker-deb'
89
import { MakerDMG } from '@electron-forge/maker-dmg'
@@ -12,6 +13,11 @@ import { MakerZIP } from '@electron-forge/maker-zip'
1213
import { AutoUnpackNativesPlugin } from '@electron-forge/plugin-auto-unpack-natives'
1314
import { PluginBase } from '@electron-forge/plugin-base'
1415
import { FusesPlugin } from '@electron-forge/plugin-fuses'
16+
import type {
17+
ForgeConfig,
18+
ForgeConfigPlugin,
19+
ForgeHookFn,
20+
} from '@electron-forge/shared-types'
1521
import { FuseV1Options, FuseVersion } from '@electron/fuses'
1622
import { MakerAppImage } from '@reforged/maker-appimage'
1723
import semver from 'semver'
@@ -21,13 +27,11 @@ import { build, createServer, type ViteDevServer } from 'vite'
2127
import packageJSON from './package.json' with { type: 'json' }
2228
import type { AppConfig, AppType } from './src/shared/app.ts'
2329

24-
import 'dotenv/config'
25-
26-
import type {
27-
ForgeConfig,
28-
ForgeConfigPlugin,
29-
ForgeHookFn,
30-
} from '@electron-forge/shared-types'
30+
try {
31+
loadEnvFile()
32+
} catch (err) {
33+
console.warn(`Failed to load .env file: ${err}`)
34+
}
3135

3236
const {
3337
APP_TYPE,

knip.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default {
1414
project: [
1515
'src/**/*.{js,ts,jsx,tsx}!',
1616
'scripts/*.{js,ts}',
17-
'tests-e2e/*.{js,ts}',
17+
'tests-e2e/**/*.{js,ts}',
1818
'*.{js,ts}',
1919
],
2020
ignore: [

0 commit comments

Comments
 (0)