@tanda/translation-io 0.3.10 → 0.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/sync.js +2 -4
- package/package.json +1 -1
package/lib/sync.js
CHANGED
|
@@ -9,7 +9,7 @@ var _path = require("path");
|
|
|
9
9
|
|
|
10
10
|
var _sarcastic = _interopRequireDefault(require("sarcastic"));
|
|
11
11
|
|
|
12
|
-
var _mkdirp =
|
|
12
|
+
var _mkdirp = require("mkdirp");
|
|
13
13
|
|
|
14
14
|
var _extract = require("./extract");
|
|
15
15
|
|
|
@@ -60,9 +60,7 @@ var _default = async () => {
|
|
|
60
60
|
const translations = (0, _extract.load)(config.messages());
|
|
61
61
|
log.info('Translations loaded.');
|
|
62
62
|
log.info('Ensuring that the output directory exists...');
|
|
63
|
-
|
|
64
|
-
_mkdirp.default.sync(config.output());
|
|
65
|
-
|
|
63
|
+
(0, _mkdirp.sync)(config.output());
|
|
66
64
|
log.info('Output directory exists.');
|
|
67
65
|
log.info('Writing translation file for source locale.');
|
|
68
66
|
util.write((0, _path.join)(config.output(), `translation.${config.sourceLocale()}.json`), JSON.stringify(translations, null, 2));
|