@lingui/cli 3.13.0 → 3.13.1
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/lingui-extract.js +4 -3
- package/package.json +3 -3
package/lingui-extract.js
CHANGED
|
@@ -53,7 +53,7 @@ function command(_x, _x2) {
|
|
|
53
53
|
|
|
54
54
|
function _command() {
|
|
55
55
|
_command = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(config, options) {
|
|
56
|
-
var catalogs, catalogStats, _iterator, _step, catalog;
|
|
56
|
+
var catalogs, catalogStats, _iterator, _step, catalog, moduleName;
|
|
57
57
|
|
|
58
58
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
59
59
|
while (1) {
|
|
@@ -133,12 +133,13 @@ function _command() {
|
|
|
133
133
|
|
|
134
134
|
|
|
135
135
|
if ((0, _typeof2.default)(config.service) === 'object' && config.service.name && config.service.name.length) {
|
|
136
|
-
|
|
136
|
+
moduleName = config.service.name.charAt(0).toLowerCase() + config.service.name.slice(1);
|
|
137
|
+
Promise.resolve("./services/".concat(moduleName)).then(function (s) {
|
|
137
138
|
return (0, _interopRequireWildcard2.default)(require(s));
|
|
138
139
|
}).then(function (module) {
|
|
139
140
|
return module.default(config, options);
|
|
140
141
|
}).catch(function (err) {
|
|
141
|
-
return console.error("Can't load service module ".concat(
|
|
142
|
+
return console.error("Can't load service module ".concat(moduleName), err);
|
|
142
143
|
});
|
|
143
144
|
}
|
|
144
145
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lingui/cli",
|
|
3
|
-
"version": "3.13.
|
|
3
|
+
"version": "3.13.1",
|
|
4
4
|
"description": "CLI for working wit message catalogs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"@babel/plugin-syntax-jsx": "^7.10.4",
|
|
40
40
|
"@babel/runtime": "^7.11.2",
|
|
41
41
|
"@babel/types": "^7.11.5",
|
|
42
|
-
"@lingui/babel-plugin-extract-messages": "^3.13.
|
|
43
|
-
"@lingui/conf": "^3.13.
|
|
42
|
+
"@lingui/babel-plugin-extract-messages": "^3.13.1",
|
|
43
|
+
"@lingui/conf": "^3.13.1",
|
|
44
44
|
"babel-plugin-macros": "^3.0.1",
|
|
45
45
|
"bcp-47": "^1.0.7",
|
|
46
46
|
"chalk": "^4.1.0",
|