mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-05 18:20:39 -08:00
chore: upgrade deps
This commit is contained in:
parent
09937f3bfb
commit
ccaf76a4d4
3 changed files with 1740 additions and 1337 deletions
|
|
@ -83,6 +83,20 @@ Some library doesn't fit electron usage, we move their code to this repo and mod
|
|||
- When not installed in package.json, when make release, forge will throw error `An unhandled rejection has occurred inside Forge: Error: ENOENT: no such file or directory, stat '/Users/linonetwo/Desktop/repo/TiddlyGit-Desktop/node_modules/app-path/main'`
|
||||
- [externalApp](https://github.com/desktop/desktop/blob/742b4c44c39d64d01048f1e85364d395432e3413/app/src/lib/editors/lookup.ts): This was used by [Github Desktop](https://github.com/desktop/desktop) to lookup the location of editors like VSCode, we use it in context menu to "open in default text editor"
|
||||
|
||||
## Don't upgrade these dependency
|
||||
|
||||
### pure ESM
|
||||
|
||||
Electron forge webpack don't support pure ESM yet
|
||||
|
||||
- default-gateway
|
||||
- electron-unhandled
|
||||
- date-fns
|
||||
|
||||
### Use electron forge's recommended version
|
||||
|
||||
- @vercel/webpack-asset-relocator-loader
|
||||
|
||||
## Code Tour
|
||||
|
||||
[FileProtocol](./features/FileProtocol.md)
|
||||
|
|
@ -94,3 +108,18 @@ TBD
|
|||
### `Uncaught ReferenceError: require is not defined`
|
||||
|
||||
`pnpm run clean:cache` can fix this.
|
||||
|
||||
### Electron download slow
|
||||
|
||||
Add `.npmrc` on this project (sometimes the one at home folder is not working).
|
||||
|
||||
```npmrc
|
||||
electron-mirror=https://registry.npmmirror.com/-/binary/electron/
|
||||
electron_custom_dir={{ version }}
|
||||
```
|
||||
|
||||
and run `node node_modules/electron/install.js` manually.
|
||||
|
||||
### Preparing native dependencies `Error: ENOENT: no such file or directory, stat 'xxx/node_modules/.pnpm/node_modules/@types/lodash-es'`
|
||||
|
||||
run `rm 'xxx/node_modules/.pnpm/node_modules/@types/lodash-es'` fixes it. Maybe pnpm install gets interrupted, and make a file-like symlink, get recognized as binary file. Remove it will work.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue