@lingui/cli 4.3.0 → 4.4.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.
@@ -1,4 +1,27 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
27
  };
@@ -6,6 +29,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
29
  exports.getCatalogDependentFiles = void 0;
7
30
  const getFallbackListForLocale_1 = require("./getFallbackListForLocale");
8
31
  const promises_1 = __importDefault(require("node:fs/promises"));
32
+ const node_path_1 = __importDefault(require("node:path"));
33
+ const process = __importStar(require("process"));
9
34
  const fileExists = async (path) => !!(await promises_1.default.stat(path).catch(() => false));
10
35
  /**
11
36
  * Return all files catalog implicitly depends on.
@@ -19,7 +44,8 @@ async function getCatalogDependentFiles(catalog, locale) {
19
44
  files.add(catalog.getFilename(catalog.config.sourceLocale));
20
45
  }
21
46
  const out = [];
22
- for (const file of files) {
47
+ for (let file of files) {
48
+ file = node_path_1.default.isAbsolute(file) ? file : node_path_1.default.join(process.cwd(), file);
23
49
  if (await fileExists(file)) {
24
50
  out.push(file);
25
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingui/cli",
3
- "version": "4.3.0",
3
+ "version": "4.4.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.3.0",
57
- "@lingui/conf": "4.3.0",
58
- "@lingui/core": "4.3.0",
59
- "@lingui/format-po": "4.3.0",
60
- "@lingui/message-utils": "4.3.0",
56
+ "@lingui/babel-plugin-extract-messages": "4.4.1",
57
+ "@lingui/conf": "4.4.1",
58
+ "@lingui/core": "4.4.1",
59
+ "@lingui/format-po": "4.4.1",
60
+ "@lingui/message-utils": "4.4.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.3.0",
83
+ "@lingui/macro": "4.4.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": "da6c52629e978c24ec83f2a6c22e4dfc910808b4"
91
+ "gitHead": "e7103c9f06a493e5871086e121f037309b0b742c"
92
92
  }