@lingui/cli 5.3.0 → 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.
@@ -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.map((includePath) => {
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() {
@@ -55,7 +55,10 @@ async function command(config, options) {
55
55
  }
56
56
  }
57
57
  if (doMerge) {
58
- return await compileAndWrite(locale, config, options, await (0, getCatalogs_1.getCatalogForMerge)(config), mergedCatalogs);
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.0",
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.0",
61
- "@lingui/babel-plugin-lingui-macro": "5.3.0",
62
- "@lingui/conf": "5.3.0",
63
- "@lingui/core": "5.3.0",
64
- "@lingui/format-po": "5.3.0",
65
- "@lingui/message-utils": "5.3.0",
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",
@@ -70,7 +70,7 @@
70
70
  "commander": "^10.0.0",
71
71
  "convert-source-map": "^2.0.0",
72
72
  "date-fns": "^3.6.0",
73
- "esbuild": "^0.21.5",
73
+ "esbuild": "^0.25.1",
74
74
  "glob": "^11.0.0",
75
75
  "inquirer": "^7.3.3",
76
76
  "micromatch": "^4.0.7",
@@ -90,5 +90,5 @@
90
90
  "mock-fs": "^5.2.0",
91
91
  "mockdate": "^3.0.5"
92
92
  },
93
- "gitHead": "ed491cce7e5209378922327e0e7b802fb7b5873d"
93
+ "gitHead": "37f40ec18928b357c07a228947b2bf071e92449e"
94
94
  }