From cc8e0aacbe9fe92b9066598aaf6cd3c8534b9ecb Mon Sep 17 00:00:00 2001 From: Guilherme Carreiro Date: Tue, 14 Jul 2026 16:42:28 +0200 Subject: [PATCH] Configure liquid-html-parser package Assisted-By: devx/bf1b845f-ea09-4e31-9686-5c3b1cb5ebc6 --- packages/liquid-html-parser/.gitignore | 9 ++++++--- packages/liquid-html-parser/package.json | 7 +++---- packages/liquid-html-parser/tsconfig.json | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/packages/liquid-html-parser/.gitignore b/packages/liquid-html-parser/.gitignore index 02a8b6d42..3a0374528 100644 --- a/packages/liquid-html-parser/.gitignore +++ b/packages/liquid-html-parser/.gitignore @@ -4,9 +4,12 @@ pnpm-debug.log* .DS_Store dawn TODO -grammar/liquid-html.ohm.js -standalone.js -standalone.js.LICENSE.txt **/actual.liquid coverage .nyc_output + +# Generated parser fixtures (goldens + downloaded themes) — regenerated by scripts/setup-fixtures.ts +fixtures/golden-html-ast/ +fixtures/golden-liquid-ast/ +fixtures/theme/ +fixtures/theme-bundle.ts diff --git a/packages/liquid-html-parser/package.json b/packages/liquid-html-parser/package.json index e052b1b57..aba6395a9 100644 --- a/packages/liquid-html-parser/package.json +++ b/packages/liquid-html-parser/package.json @@ -20,7 +20,6 @@ "@shopify:registry": "https://registry.npmjs.org" }, "files": [ - "grammar/*", "dist/**/*.js", "dist/**/*.ts" ], @@ -28,11 +27,11 @@ "build": "pnpm build:ts", "build:ci": "pnpm build", "build:ts": "tsc -p tsconfig.build.json", - "type-check": "tsc --noEmit" + "type-check": "tsc --noEmit", + "test": "vitest --root ../.. --run src/**/*.test.ts" }, "dependencies": { - "line-column": "^1.0.2", - "ohm-js": "^17.0.0" + "line-column": "^1.0.2" }, "devDependencies": { "@types/line-column": "^1.0.0", diff --git a/packages/liquid-html-parser/tsconfig.json b/packages/liquid-html-parser/tsconfig.json index f1f831c96..601fa06fc 100644 --- a/packages/liquid-html-parser/tsconfig.json +++ b/packages/liquid-html-parser/tsconfig.json @@ -1,7 +1,7 @@ { "extends": "../../tsconfig.json", "include": ["./src/**/*.ts", "./src/**/*.json"], - "exclude": ["./dist"], + "exclude": ["./dist", "src/parser.bench.ts"], "compilerOptions": { "outDir": "dist", "rootDir": "src",