Commit a45c45a
authored
Leverage fs.stat to ensure it works by Electron package (#1375)
This pull request updates file system operations to improve compatibility with Electron's ASAR packaging system by replacing `fs.access()` with `fs.stat()` for existence checks. This is important since the project explicitly targets Electron (as seen in `package.json` with `--target electron@23.0.0`).
**Changes:**
- Replaced `fs.access()` with `fs.stat()` in the `findPackagesInDirectory` function
- Replaced `fsPromises.access()` with `fsPromises.stat()` in the `pathExists` utility function
Fix: #13751 parent 7767051 commit a45c45a
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| |||
0 commit comments