Skip to content

Rust cli compile command does not work with glob patterns in the input directory #6173

@miguelgv-taxfix

Description

@miguelgv-taxfix

Which package?

formatjs rust cli, compile command

Describe the bug

formatjs compile "node_modules/**/dist/lang/en.json" --out-file src/assets/lang/en.json

This command outputs an error. It cannot match any input files. Error: No translation files found matching the patterns

This is a bug because I do have matching files and the same command works correctly with nodejs cli.

Expected behavior

formatjs compile "node_modules/**/dist/lang/en.json" --out-file src/assets/lang/en.json

This command should match files correcly when using glob patterns.

Desktop (please complete the following information):

  • OS: apple silicon
  • Version: formatjs rust cli v1.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions