@lingui/cli 4.1.2 → 4.2.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.
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.getCatalogDependentFiles = void 0;
7
7
  const getFallbackListForLocale_1 = require("./getFallbackListForLocale");
8
- const pathe_1 = __importDefault(require("pathe"));
9
8
  const promises_1 = __importDefault(require("node:fs/promises"));
10
9
  const fileExists = async (path) => !!(await promises_1.default.stat(path).catch(() => false));
11
10
  /**
@@ -21,9 +20,8 @@ async function getCatalogDependentFiles(catalog, locale) {
21
20
  }
22
21
  const out = [];
23
22
  for (const file of files) {
24
- const filePath = pathe_1.default.join(catalog.config.rootDir, file);
25
- if (await fileExists(filePath)) {
26
- out.push(filePath);
23
+ if (await fileExists(file)) {
24
+ out.push(file);
27
25
  }
28
26
  }
29
27
  return out;
@@ -35,7 +35,7 @@ const extractor = {
35
35
  parserPlugins.push("flow");
36
36
  }
37
37
  }
38
- if ([/\.jsx$/, /\.tsx$/].some((r) => filename.match(r))) {
38
+ if ([/\.js$/, /\.jsx$/, /\.tsx$/].some((r) => filename.match(r))) {
39
39
  parserPlugins.push("jsx");
40
40
  }
41
41
  let sourceMapsConsumer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingui/cli",
3
- "version": "4.1.2",
3
+ "version": "4.2.1",
4
4
  "description": "CLI for working wit message catalogs",
5
5
  "keywords": [
6
6
  "cli",
@@ -53,11 +53,11 @@
53
53
  "@babel/parser": "^7.21.2",
54
54
  "@babel/runtime": "^7.21.0",
55
55
  "@babel/types": "^7.21.2",
56
- "@lingui/babel-plugin-extract-messages": "4.1.2",
57
- "@lingui/conf": "4.1.2",
58
- "@lingui/core": "4.1.2",
59
- "@lingui/format-po": "4.1.2",
60
- "@lingui/message-utils": "4.1.2",
56
+ "@lingui/babel-plugin-extract-messages": "4.2.1",
57
+ "@lingui/conf": "4.2.1",
58
+ "@lingui/core": "4.2.1",
59
+ "@lingui/format-po": "4.2.1",
60
+ "@lingui/message-utils": "4.2.1",
61
61
  "babel-plugin-macros": "^3.0.1",
62
62
  "chalk": "^4.1.0",
63
63
  "chokidar": "3.5.1",
@@ -80,7 +80,7 @@
80
80
  },
81
81
  "devDependencies": {
82
82
  "@lingui/jest-mocks": "*",
83
- "@lingui/macro": "4.1.2",
83
+ "@lingui/macro": "4.2.1",
84
84
  "@types/convert-source-map": "^2.0.0",
85
85
  "@types/glob": "^8.1.0",
86
86
  "@types/micromatch": "^4.0.1",
@@ -88,5 +88,5 @@
88
88
  "mock-fs": "^5.2.0",
89
89
  "mockdate": "^3.0.5"
90
90
  },
91
- "gitHead": "0cec936f2cbc190fdf8fe0581fe808e6c8fe3d20"
91
+ "gitHead": "9e0cd185ec372aab1d2df937e02cec2b31e73c10"
92
92
  }