fix(typst): commit compiled grammar so CI always uses current parser
Build and Deploy Verso / deploy (push) Successful in 13m45s

The webpack plugin that compiles typst.grammar may silently skip
recompilation when file mtimes are ambiguous in Docker BuildKit layers.
Committing typst.mjs and typst.terms.mjs guarantees the build always
ships the correct parser without depending on build-time generation.

To regenerate after grammar changes:
  node -e "const {buildParserFile}=require('/tmp/lezertest/...'); ..."
  (or: yarn run lezer-latex:generate from services/web)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
claude
2026-06-09 19:02:16 +00:00
parent e9a34a5bd8
commit 7c0ec9dd39
3 changed files with 65 additions and 3 deletions
+2 -3
View File
@@ -26,13 +26,12 @@ cypress/results/
# Ace themes for conversion
frontend/js/features/source-editor/themes/ace/
# Compiled parser files
# Compiled parser files (latex/bibtex are generated by webpack plugin at build time)
frontend/js/features/source-editor/lezer-latex/latex.mjs
frontend/js/features/source-editor/lezer-latex/latex.terms.mjs
frontend/js/features/source-editor/lezer-bibtex/bibtex.mjs
frontend/js/features/source-editor/lezer-bibtex/bibtex.terms.mjs
frontend/js/features/source-editor/lezer-typst/typst.mjs
frontend/js/features/source-editor/lezer-typst/typst.terms.mjs
# typst compiled files are committed (generated via node scripts/lezer-latex/generate.mjs)
!**/fixtures/**/*.log
File diff suppressed because one or more lines are too long
@@ -0,0 +1,46 @@
// This file was generated by lezer-generator. You probably shouldn't edit it.
export const
HeadingMark = 1,
HeadingTitle = 2,
RawBlockOpen = 3,
RawBlockBody = 4,
RawBlockClose = 5,
RawInlineContent = 6,
CodeBlockBody = 7,
BlockCommentBody = 8,
LineCommentContent = 9,
MathContent = 10,
CodeKeyword = 11,
CodeIdent = 12,
CodeArgKey = 13,
StrongBody = 14,
EmphBody = 15,
Document = 16,
Heading = 17,
LineComment = 18,
BlockComment = 19,
RawBlock = 20,
RawInline = 21,
CodeExpr = 22,
KeywordExpr = 23,
CallExpr = 24,
CodeArgs = 25,
CodeString = 26,
CodeNumber = 27,
CodeBool = 28,
FuncExpr = 29,
ContentBlock = 30,
CodeBlock = 31,
InlineMath = 32,
AtomExpr = 33,
Strong = 34,
Emphasis = 35,
Label = 36,
LabelName = 37,
Ref = 38,
RefName = 39,
Escape = 40,
EscapeChar = 41,
URL = 42,
MarkupContent = 43,
ClosingSquare = 44