We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0475e6f commit 323bb30Copy full SHA for 323bb30
lunaria/lunaria.ts
@@ -1,9 +1,16 @@
1
import { createLunaria } from '@lunariajs/core'
2
-import { mkdirSync, readFileSync, writeFileSync } from 'node:fs'
+import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs'
3
import { Page } from './components.ts'
4
import { lunariaJSONFiles, prepareJsonFiles } from './prepare-json-files.ts'
5
import type { I18nStatus } from '../shared/types/i18n-status.ts'
6
7
+// skip lunaria during git merges as git history may be in an inconsistent state.
8
+if (existsSync('.git/MERGE_HEAD')) {
9
+ // eslint-disable-next-line no-console
10
+ console.log('Skipping lunaria: git merge in progress')
11
+ process.exit(0)
12
+}
13
+
14
await prepareJsonFiles()
15
16
const lunaria = await createLunaria()
0 commit comments