mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +00:00
[fix] Bypass Nx for i18n collection to fix TypeScript compilation (#5278)
Change collect-i18n command from 'nx e2e' to 'npx playwright test' to use Playwright's native TypeScript compilation instead of Nx's pipeline. Nx's compilation pipeline doesn't properly handle TypeScript 'declare' fields in LiteGraph source files, causing babel transform errors. Playwright's native compilation handles these correctly. This addresses the TypeScript compilation error: 'declare fields must first be transformed by @babel/plugin-transform-typescript' Fixes remaining issue after previous workflow fixes.
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
"knip": "knip --cache",
|
||||
"knip:no-cache": "knip",
|
||||
"locale": "lobe-i18n locale",
|
||||
"collect-i18n": "nx e2e --config=playwright.i18n.config.ts",
|
||||
"collect-i18n": "npx playwright test --config=playwright.i18n.config.ts",
|
||||
"json-schema": "tsx scripts/generate-json-schema.ts",
|
||||
"storybook": "nx storybook -p 6006",
|
||||
"build-storybook": "nx build-storybook"
|
||||
|
||||
Reference in New Issue
Block a user