@lingual/i18n-check 0.8.12 → 0.8.14

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.
Files changed (2) hide show
  1. package/dist/bin/index.js +3 -2
  2. package/package.json +13 -15
package/dist/bin/index.js CHANGED
@@ -155,8 +155,9 @@ const main = async () => {
155
155
  if ((options.checks.includes('missingKeys') ||
156
156
  options.checks.includes('invalidKeys')) &&
157
157
  targetFiles.length === 0) {
158
- console.log(chalk_1.default.red('Locale file(s) not found. Please provide valid locale file(s), i.e. --locales translations/'));
159
- (0, node_process_1.exit)(1);
158
+ // Remove missingKeys and invalidKeys from checks since they require multiple files
159
+ options.checks = options.checks.filter(check => check !== 'missingKeys' && check !== 'invalidKeys');
160
+ console.log(chalk_1.default.yellow('\nOnly one locale file found. Skipping missingKeys and invalidKeys checks.\n'));
160
161
  }
161
162
  try {
162
163
  const result = (0, __1.checkTranslations)(srcFiles, targetFiles, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingual/i18n-check",
3
- "version": "0.8.12",
3
+ "version": "0.8.14",
4
4
  "description": "i18n translation messages check",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -15,8 +15,8 @@
15
15
  "lint": "eslint src",
16
16
  "lint:fix": "eslint src --fix ",
17
17
  "check-format": "prettier --check './{src,translations}/**/*.{js,jsx,ts,tsx,json,html,css}'",
18
- "test": "jest src/ --testPathIgnorePatterns src/bin/*",
19
- "test:cli": "tsc && jest src/bin/index.test.ts"
18
+ "test": "vitest run",
19
+ "test:cli": "pnpm build && vitest --config vitest.bin.config.ts run src/bin/index.test.ts"
20
20
  },
21
21
  "files": [
22
22
  "dist/",
@@ -24,27 +24,25 @@
24
24
  ],
25
25
  "dependencies": {
26
26
  "@formatjs/cli-lib": "^6.6.6",
27
- "@formatjs/icu-messageformat-parser": "^2.11.2",
27
+ "@formatjs/icu-messageformat-parser": "^2.11.4",
28
28
  "chalk": "^4.1.2",
29
29
  "commander": "^12.1.0",
30
- "glob": "11.0.2",
30
+ "glob": "12.0.0",
31
31
  "i18next-parser": "^9.3.0",
32
- "js-yaml": "^4.1.0",
33
- "typescript": "^5.9.2"
32
+ "js-yaml": "^4.1.1",
33
+ "typescript": "^5.9.3"
34
34
  },
35
35
  "devDependencies": {
36
- "@eslint/js": "^9.34.0",
37
- "@types/jest": "^29.5.14",
36
+ "@eslint/js": "^9.39.1",
38
37
  "@types/js-yaml": "^4.0.9",
39
- "@types/node": "^22.17.2",
38
+ "@types/node": "^22.19.1",
40
39
  "@types/vinyl": "^2.0.12",
41
40
  "braces": "^3.0.3",
42
- "eslint": "^9.34.0",
43
- "globals": "^16.3.0",
44
- "jest": "^29.7.0",
41
+ "eslint": "^9.39.1",
42
+ "globals": "^16.5.0",
45
43
  "prettier": "^3.6.2",
46
- "ts-jest": "^29.4.1",
47
- "typescript-eslint": "^8.40.0"
44
+ "typescript-eslint": "^8.47.0",
45
+ "vitest": "^4.0.10"
48
46
  },
49
47
  "repository": {
50
48
  "type": "git",