mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 23:59:45 +00:00
fix(dev): rebuild dist after HEAD changes (#56510)
This commit is contained in:
parent
840b806c2f
commit
54313a8730
2 changed files with 23 additions and 2 deletions
|
|
@ -211,10 +211,10 @@ const shouldBuild = (deps) => {
|
|||
|
||||
const currentHead = resolveGitHead(deps);
|
||||
if (currentHead && !stamp.head) {
|
||||
return hasSourceMtimeChanged(stamp.mtime, deps);
|
||||
return true;
|
||||
}
|
||||
if (currentHead && stamp.head && currentHead !== stamp.head) {
|
||||
return hasSourceMtimeChanged(stamp.mtime, deps);
|
||||
return true;
|
||||
}
|
||||
if (currentHead) {
|
||||
const dirty = hasDirtySourceTree(deps);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue