@lingui/cli 6.0.0 → 6.1.0

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,5 +1,6 @@
1
1
  import { ParserOptions } from "@babel/core";
2
2
  import { ExtractorType, ExtractedMessage, ExtractorCtx } from "@lingui/conf";
3
+ import { ParserPlugin } from "@babel/parser";
3
4
  export declare const babelRe: RegExp;
4
5
  /**
5
6
  * @public
@@ -27,7 +28,7 @@ export declare const babelRe: RegExp;
27
28
  * ```
28
29
  */
29
30
  export declare function extractFromFileWithBabel(filename: string, code: string, onMessageExtracted: (msg: ExtractedMessage) => void, ctx: ExtractorCtx, parserOpts: ParserOptions, skipMacroPlugin?: boolean): Promise<void>;
30
- export declare function getBabelParserOptions(filename: string, parserOptions: BabelExtractorOptions["parserOptions"]): (import("@babel/parser").ParserPluginWithOptions | ("decimal" | "asyncDoExpressions" | "asyncGenerators" | "bigInt" | "classPrivateMethods" | "classPrivateProperties" | "classProperties" | "classStaticBlock" | "decorators-legacy" | "deferredImportEvaluation" | "decoratorAutoAccessors" | "destructuringPrivate" | "doExpressions" | "dynamicImport" | "explicitResourceManagement" | "exportDefaultFrom" | "exportNamespaceFrom" | "flow" | "flowComments" | "functionBind" | "functionSent" | "importMeta" | "jsx" | "logicalAssignment" | "importAssertions" | "importReflection" | "moduleBlocks" | "moduleStringNames" | "nullishCoalescingOperator" | "numericSeparator" | "objectRestSpread" | "optionalCatchBinding" | "optionalChaining" | "partialApplication" | "placeholders" | "privateIn" | "regexpUnicodeSets" | "sourcePhaseImports" | "throwExpressions" | "topLevelAwait" | "v8intrinsic" | "decorators" | "estree" | "importAttributes" | "moduleAttributes" | "optionalChainingAssign" | "pipelineOperator" | "recordAndTuple" | "typescript"))[];
31
+ export declare function getBabelParserOptions(filename: string, parserOptions: BabelExtractorOptions["parserOptions"]): ParserPlugin[];
31
32
  export type BabelExtractorOptions = {
32
33
  parserOptions?: {
33
34
  /**
@@ -103,6 +103,7 @@ if (import.meta.main) {
103
103
  .option("--debounce <delay>", "Debounces extraction for given amount of milliseconds")
104
104
  .option("--verbose", "Verbose output")
105
105
  .option("--watch", "Enables Watch Mode")
106
+ .argument("[files...]", "Filter source paths to extract messages only from specific files")
106
107
  .parse(process.argv);
107
108
  const options = program.opts();
108
109
  const config = getConfig({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingui/cli",
3
- "version": "6.0.0",
3
+ "version": "6.1.0",
4
4
  "description": "Lingui CLI to extract messages, compile catalogs, and manage translation workflows",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -52,12 +52,12 @@
52
52
  "@babel/generator": "^7.28.5",
53
53
  "@babel/parser": "^7.22.0",
54
54
  "@babel/types": "^7.21.2",
55
- "@lingui/babel-plugin-extract-messages": "6.0.0",
56
- "@lingui/babel-plugin-lingui-macro": "6.0.0",
57
- "@lingui/conf": "6.0.0",
58
- "@lingui/core": "6.0.0",
59
- "@lingui/format-po": "6.0.0",
60
- "@lingui/message-utils": "6.0.0",
55
+ "@lingui/babel-plugin-extract-messages": "6.1.0",
56
+ "@lingui/babel-plugin-lingui-macro": "6.1.0",
57
+ "@lingui/conf": "6.1.0",
58
+ "@lingui/core": "6.1.0",
59
+ "@lingui/format-po": "6.1.0",
60
+ "@lingui/message-utils": "6.1.0",
61
61
  "chokidar": "5.0.0",
62
62
  "cli-table3": "^0.6.5",
63
63
  "commander": "^14.0.2",
@@ -79,7 +79,7 @@
79
79
  "@types/normalize-path": "^3.0.0",
80
80
  "mock-fs": "^5.2.0",
81
81
  "msw": "^2.12.7",
82
- "vitest": "4.0.18"
82
+ "vitest": "catalog:"
83
83
  },
84
- "gitHead": "a194ab486dd979c42b39d90c80e5c3e2283bf8c7"
84
+ "gitHead": "46a340af0dbfc8e4ac483cc607c2b24ac48ab56b"
85
85
  }