Merge pull request #1311 from 0xfandom/fix/1022-dockerfile-worktree-gitkeep

app: make build/.gitkeep postbuild step git-worktree friendly
This commit is contained in:
Jamal James 2026-05-22 10:57:48 -05:00 committed by GitHub
commit 41012e4c58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -8,7 +8,7 @@
"start": "BROWSER=none react-scripts start",
"develop": "REACT_APP_USE_SAMPLE_DATA=true yarn start",
"build": "react-scripts build",
"postbuild": "git restore build/.gitkeep",
"postbuild": "git restore build/.gitkeep 2>/dev/null || printf '# Keep directory in git.\\n' > build/.gitkeep",
"test": "react-scripts test --env=jest-environment-jsdom --transformIgnorePatterns \"node_modules/(?!d3)/\"",
"test:ci": "cross-env CI=true yarn test --coverage",
"eject": "react-scripts eject",

View file

@ -16,6 +16,12 @@
### Bug Fixes
* [Fix `dev.Dockerfile` build failure on git
worktree checkouts](https://github.com/lightninglabs/lightning-terminal/pull/1311):
The web UI `postbuild` step no longer aborts when the build context lacks a
reachable git directory, which previously broke `dev.Dockerfile` builds for
contributors using `git worktree`.
* [Restore LNC session setup for mailbox
links](https://github.com/lightninglabs/lightning-terminal/pull/1254):
Mailbox-specific TLS transport credentials now allow mailbox links to proceed