fix: Remove npm warnings in collect-i18n script

Replace npx with direct playwright binary call to avoid npm v11 warnings
about unknown env configs (verify-deps-before-run and _jsr-registry).
These configs are passed from pnpm environment but not recognized by npm.

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
snomiao
2025-09-12 06:05:34 +00:00
parent 4ec6223189
commit d1e668abb9

View File

@@ -32,7 +32,7 @@
"knip": "knip --cache",
"knip:no-cache": "knip",
"locale": "lobe-i18n locale",
"collect-i18n": "npx playwright test --config=playwright.i18n.config.ts",
"collect-i18n": "pnpx playwright test --config=playwright.i18n.config.ts",
"json-schema": "tsx scripts/generate-json-schema.ts",
"storybook": "nx storybook -p 6006",
"build-storybook": "storybook build"