Fix yarn deploy on MacOS

This commit is contained in:
Alexey Safronov 2022-11-07 18:52:57 +03:00
parent a70e2339d9
commit 0f88170316
2 changed files with 487 additions and 480 deletions

View File

@ -10,8 +10,11 @@ const localesDir = join(
"locales"
);
//console.log("localesDir", localesDir);
const getFileList = (dirName) => {
let files = [];
const items = readdirSync(dirName, { withFileTypes: true });
for (const item of items) {
@ -29,6 +32,8 @@ const files = getFileList(localesDir);
files.forEach((filePath) => {
try {
if (filePath.endsWith(".DS_Store")) return;
let content = readFileSync(filePath);
writeFileSync(filePath, minifyJson(content, filePath));
//console.log(`File '${filePath}' minified`);

962
yarn.lock

File diff suppressed because it is too large Load Diff