mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 06:02:32 -05:00
🐛 Fix package.json translation scripts
This commit is contained in:
parent
139dd7d80f
commit
83e51abd35
2 changed files with 8 additions and 6 deletions
|
@ -28,7 +28,7 @@
|
|||
"test:run": "node target/tests.cjs",
|
||||
"test:watch": "clojure -M:dev:shadow-cljs watch test",
|
||||
"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",
|
||||
"compile": "node ./scripts/compile.js",
|
||||
"compile:cljs": "clojure -M:dev:shadow-cljs compile main",
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
const fs = require("fs").promises;
|
||||
const gt = require("gettext-parser");
|
||||
const path = require("path");
|
||||
const util = require("node:util");
|
||||
const execFile = util.promisify(require("node:child_process").execFile);
|
||||
import gt from "gettext-parser";
|
||||
import fs from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import util from "node:util";
|
||||
import { execFile as execFileCb } from "node:child_process";
|
||||
|
||||
const execFile = util.promisify(execFileCb);
|
||||
|
||||
async function processMsgId(msgId) {
|
||||
return execFile("grep", ["-r", "-o", msgId, "./src"]).catch(() => {
|
||||
|
|
Loading…
Add table
Reference in a new issue