Skip to content

Commit

Permalink
Merge pull request #150 from i18next/bugfix/mkdir-sync
Browse files Browse the repository at this point in the history
Fix mkdir call
  • Loading branch information
perrin4869 committed Feb 17, 2022
2 parents adc0ecc + ce2431d commit 12c4ca3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import path from 'path';
import { program } from 'commander';
import {
mkdir, existsSync, readFileSync, promises as fsp,
mkdirSync, existsSync, readFileSync, promises as fsp,
} from 'fs'; // node 12 does not support fs/promises
import { createRequire } from 'module';
import {
Expand Down Expand Up @@ -154,7 +154,7 @@ function processFile(locale, source, target, options) {
}

if (!existsSync(targetDir)) {
mkdir(targetDir, { recursive: true });
mkdirSync(targetDir, { recursive: true });
}

return converter(locale, body, options);
Expand Down

0 comments on commit 12c4ca3

Please sign in to comment.