/
githubmirror
/
strapi
Обзор
Документация
Войти
/
githubmirror
/
strapi
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
scripts/front/reorder-admin-translation-files.js
22 строки
695 B
Ben Irvin
chore(tooling): add admin translation verification (#26960)
10 авг 2026, 17:46
Не верифицирован
10 авг 2026, 17:46
d0e1af7
Код
Авторство
О чём код?
#!/usr/bin/env node 'use strict'; /** * @deprecated Use `yarn verify:translations --fix` instead. * * Invokes the verifier via absolute paths (node + tsx + script) so we do not * resolve executables from PATH (Sonar S4036). */ const { spawnSync } = require('node:child_process'); const path = require('node:path'); const repoRoot = path.resolve(__dirname, '..', '..'); const scriptPath = path.join(__dirname, 'verify-translations', 'index.ts'); const tsxCli = require.resolve('tsx/cli', { paths: [repoRoot] }); const result = spawnSync(process.execPath, [tsxCli, scriptPath, '--fix'], { cwd: repoRoot, stdio: 'inherit', }); process.exit(result.status === null ? 1 : result.status);