0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-21 14:12:36 -05:00

🐛 Fix package.json translation scripts

This commit is contained in:
AzazelN28 2024-07-02 15:09:31 +02:00
parent 139dd7d80f
commit 83e51abd35
2 changed files with 8 additions and 6 deletions

View file

@ -28,7 +28,7 @@
"test:run": "node target/tests.cjs", "test:run": "node target/tests.cjs",
"test:watch": "clojure -M:dev:shadow-cljs watch test", "test:watch": "clojure -M:dev:shadow-cljs watch test",
"test": "yarn run test:compile && yarn run test:run", "test": "yarn run test:compile && yarn run test:run",
"translations:validate": "node ./scripts/validate-translations.js", "translations": "node ./scripts/translations.js",
"translations:find-unused": "node ./scripts/find-unused-translations.js", "translations:find-unused": "node ./scripts/find-unused-translations.js",
"compile": "node ./scripts/compile.js", "compile": "node ./scripts/compile.js",
"compile:cljs": "clojure -M:dev:shadow-cljs compile main", "compile:cljs": "clojure -M:dev:shadow-cljs compile main",

View file

@ -1,8 +1,10 @@
const fs = require("fs").promises; import gt from "gettext-parser";
const gt = require("gettext-parser"); import fs from "node:fs/promises";
const path = require("path"); import path from "node:path";
const util = require("node:util"); import util from "node:util";
const execFile = util.promisify(require("node:child_process").execFile); import { execFile as execFileCb } from "node:child_process";
const execFile = util.promisify(execFileCb);
async function processMsgId(msgId) { async function processMsgId(msgId) {
return execFile("grep", ["-r", "-o", msgId, "./src"]).catch(() => { return execFile("grep", ["-r", "-o", msgId, "./src"]).catch(() => {