Skip to content

Commit 609a391

Browse files
authored
chore(i18n): fix lunaria pre-commit hook with force: true (#2528)
1 parent 5fc9e99 commit 609a391

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lunaria/lunaria.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ if (existsSync('.git/MERGE_HEAD')) {
1111
process.exit(0)
1212
}
1313

14-
const lunaria = await createLunaria()
14+
const lunaria = await createLunaria({
15+
// `force: true` configures lunaria to bypass git caching and always read the latest commit from git history,
16+
// workarounds issue where lunaria caches becomes stale after rebasing or merging, which causes lunaria to crash
17+
// https://github.com/npmx-dev/npmx.dev/issues/2527
18+
force: true,
19+
})
1520
const status = await lunaria.getFullStatus()
1621

1722
// Generate JSON status for the app

0 commit comments

Comments
 (0)