@lingui/cli 5.3.1 → 5.3.2
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/dist/api/catalog.js +4 -2
- package/dist/lingui-compile.js +4 -1
- package/package.json +8 -8
package/dist/api/catalog.js
CHANGED
|
@@ -155,7 +155,8 @@ class Catalog {
|
|
|
155
155
|
return await this.format.read(filename, undefined);
|
|
156
156
|
}
|
|
157
157
|
get sourcePaths() {
|
|
158
|
-
const includeGlobs = this.include
|
|
158
|
+
const includeGlobs = this.include
|
|
159
|
+
.map((includePath) => {
|
|
159
160
|
const isDir = (0, utils_1.isDirectory)(includePath);
|
|
160
161
|
/**
|
|
161
162
|
* glob library results from absolute patterns such as /foo/* are mounted onto the root setting using path.join.
|
|
@@ -164,7 +165,8 @@ class Catalog {
|
|
|
164
165
|
return isDir
|
|
165
166
|
? (0, normalize_path_1.default)(path_1.default.resolve(process.cwd(), includePath === "/" ? "" : includePath, "**/*.*"))
|
|
166
167
|
: includePath;
|
|
167
|
-
})
|
|
168
|
+
})
|
|
169
|
+
.map(utils_1.makePathRegexSafe);
|
|
168
170
|
return (0, glob_1.globSync)(includeGlobs, { ignore: this.exclude, mark: true });
|
|
169
171
|
}
|
|
170
172
|
get localeDir() {
|
package/dist/lingui-compile.js
CHANGED
|
@@ -55,7 +55,10 @@ async function command(config, options) {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
if (doMerge) {
|
|
58
|
-
|
|
58
|
+
const result = await compileAndWrite(locale, config, options, await (0, getCatalogs_1.getCatalogForMerge)(config), mergedCatalogs);
|
|
59
|
+
if (!result) {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
59
62
|
}
|
|
60
63
|
}
|
|
61
64
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lingui/cli",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.2",
|
|
4
4
|
"description": "CLI for working wit message catalogs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
"@babel/parser": "^7.22.0",
|
|
58
58
|
"@babel/runtime": "^7.21.0",
|
|
59
59
|
"@babel/types": "^7.21.2",
|
|
60
|
-
"@lingui/babel-plugin-extract-messages": "5.3.
|
|
61
|
-
"@lingui/babel-plugin-lingui-macro": "5.3.
|
|
62
|
-
"@lingui/conf": "5.3.
|
|
63
|
-
"@lingui/core": "5.3.
|
|
64
|
-
"@lingui/format-po": "5.3.
|
|
65
|
-
"@lingui/message-utils": "5.3.
|
|
60
|
+
"@lingui/babel-plugin-extract-messages": "5.3.2",
|
|
61
|
+
"@lingui/babel-plugin-lingui-macro": "5.3.2",
|
|
62
|
+
"@lingui/conf": "5.3.2",
|
|
63
|
+
"@lingui/core": "5.3.2",
|
|
64
|
+
"@lingui/format-po": "5.3.2",
|
|
65
|
+
"@lingui/message-utils": "5.3.2",
|
|
66
66
|
"babel-plugin-macros": "^3.0.1",
|
|
67
67
|
"chalk": "^4.1.0",
|
|
68
68
|
"chokidar": "3.5.1",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"mock-fs": "^5.2.0",
|
|
91
91
|
"mockdate": "^3.0.5"
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "37f40ec18928b357c07a228947b2bf071e92449e"
|
|
94
94
|
}
|