i18next-cli 1.67.5 → 1.67.6

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/cjs/cli.js CHANGED
@@ -37,7 +37,7 @@ const program = new commander.Command();
37
37
  program
38
38
  .name('i18next-cli')
39
39
  .description('A unified, high-performance i18next CLI.')
40
- .version('1.67.5'); // This string is replaced with the actual version at build time by rollup
40
+ .version('1.67.6'); // This string is replaced with the actual version at build time by rollup
41
41
  // new: global config override option
42
42
  program.option('-c, --config <path>', 'Path to i18next-cli config file (overrides detection)');
43
43
  program
@@ -135,6 +135,8 @@ async function processSourceFiles(config) {
135
135
  // Combine default ignore patterns with user-configured ones
136
136
  ignore: [...defaultIgnore, ...userIgnore],
137
137
  cwd: process.cwd(),
138
+ // A directory named e.g. `abc.tsx` matches the input globs
139
+ nodir: true,
138
140
  });
139
141
  }
140
142
 
@@ -1344,7 +1344,9 @@ async function getSourceFilesForInstrumentation(config) {
1344
1344
  : config.extract.ignore ? [config.extract.ignore] : [];
1345
1345
  return await glob.glob(config.extract.input, {
1346
1346
  ignore: [...defaultIgnore, ...userIgnore],
1347
- cwd: process.cwd()
1347
+ cwd: process.cwd(),
1348
+ // A directory named e.g. `abc.tsx` matches the input globs
1349
+ nodir: true
1348
1350
  });
1349
1351
  }
1350
1352
  /**
@@ -524,7 +524,9 @@ class Linter extends node_events.EventEmitter {
524
524
  ? config.lint.ignore
525
525
  : config.lint?.ignore ? [config.lint.ignore] : [];
526
526
  const sourceFiles = await glob.glob(config.extract.input, {
527
- ignore: [...defaultIgnore, ...extractIgnore, ...lintIgnore]
527
+ ignore: [...defaultIgnore, ...extractIgnore, ...lintIgnore],
528
+ // A directory named e.g. `abc.tsx` matches the input globs; reading it throws EISDIR
529
+ nodir: true
528
530
  });
529
531
  this.emit('progress', { message: `Analyzing ${sourceFiles.length} source files...` });
530
532
  // Load translation values once so the interpolation linter can resolve lookup keys
package/dist/esm/cli.js CHANGED
@@ -31,7 +31,7 @@ const program = new Command();
31
31
  program
32
32
  .name('i18next-cli')
33
33
  .description('A unified, high-performance i18next CLI.')
34
- .version('1.67.5'); // This string is replaced with the actual version at build time by rollup
34
+ .version('1.67.6'); // This string is replaced with the actual version at build time by rollup
35
35
  // new: global config override option
36
36
  program.option('-c, --config <path>', 'Path to i18next-cli config file (overrides detection)');
37
37
  program
@@ -133,6 +133,8 @@ async function processSourceFiles(config) {
133
133
  // Combine default ignore patterns with user-configured ones
134
134
  ignore: [...defaultIgnore, ...userIgnore],
135
135
  cwd: process.cwd(),
136
+ // A directory named e.g. `abc.tsx` matches the input globs
137
+ nodir: true,
136
138
  });
137
139
  }
138
140
 
@@ -1338,7 +1338,9 @@ async function getSourceFilesForInstrumentation(config) {
1338
1338
  : config.extract.ignore ? [config.extract.ignore] : [];
1339
1339
  return await glob(config.extract.input, {
1340
1340
  ignore: [...defaultIgnore, ...userIgnore],
1341
- cwd: process.cwd()
1341
+ cwd: process.cwd(),
1342
+ // A directory named e.g. `abc.tsx` matches the input globs
1343
+ nodir: true
1342
1344
  });
1343
1345
  }
1344
1346
  /**
@@ -522,7 +522,9 @@ class Linter extends EventEmitter {
522
522
  ? config.lint.ignore
523
523
  : config.lint?.ignore ? [config.lint.ignore] : [];
524
524
  const sourceFiles = await glob(config.extract.input, {
525
- ignore: [...defaultIgnore, ...extractIgnore, ...lintIgnore]
525
+ ignore: [...defaultIgnore, ...extractIgnore, ...lintIgnore],
526
+ // A directory named e.g. `abc.tsx` matches the input globs; reading it throws EISDIR
527
+ nodir: true
526
528
  });
527
529
  this.emit('progress', { message: `Analyzing ${sourceFiles.length} source files...` });
528
530
  // Load translation values once so the interpolation linter can resolve lookup keys
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "i18next-cli",
3
- "version": "1.67.5",
3
+ "version": "1.67.6",
4
4
  "description": "A unified, high-performance i18next CLI.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1 +1 @@
1
- {"version":3,"file":"instrumenter.d.ts","sourceRoot":"","sources":["../../../src/instrumenter/core/instrumenter.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,MAAM,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,eAAe,EAA6B,sBAAsB,EAAiE,MAAM,gBAAgB,CAAA;AAU1N;;;;;;;;GAQG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,oBAAoB,EAC5B,OAAO,EAAE,mBAAmB,EAC5B,MAAM,GAAE,MAA4B,GACnC,OAAO,CAAC,sBAAsB,CAAC,CAoNjC;AAyuCD;;GAEG;AACH,wBAAsB,mBAAmB,IAAK,OAAO,CAAC,OAAO,CAAC,CAU7D;AAID,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,aAAa,GAAG,MAAM,GAAG,SAAS,CAAA;AA6B/E;;;;;;;;;GASG;AACH,wBAAsB,wBAAwB,IAAK,OAAO,CAAC,kBAAkB,CAAC,CA8B7E;AAED;;GAEG;AACH,wBAAsB,wBAAwB,IAAK,OAAO,CAAC,OAAO,CAAC,CAOlE;AAwBD;;;;;;GAMG;AACH,wBAAsB,wBAAwB,IAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAWxE;AAmYD;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,UAAU,EAAE,eAAe,EAAE,EAC7B,MAAM,EAAE,oBAAoB,EAC5B,SAAS,CAAC,EAAE,MAAM,EAClB,MAAM,GAAE,MAA4B,GACnC,OAAO,CAAC,IAAI,CAAC,CAoDf"}
1
+ {"version":3,"file":"instrumenter.d.ts","sourceRoot":"","sources":["../../../src/instrumenter/core/instrumenter.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,MAAM,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,eAAe,EAA6B,sBAAsB,EAAiE,MAAM,gBAAgB,CAAA;AAU1N;;;;;;;;GAQG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,oBAAoB,EAC5B,OAAO,EAAE,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