@formatjs/cli 6.5.0 → 6.6.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.
- package/bin/formatjs +4 -6
- package/package.json +2 -2
package/bin/formatjs
CHANGED
|
@@ -228139,10 +228139,6 @@ See https://github.com/webpack/loader-utils#interpolatename for sample patterns`
|
|
|
228139
228139
|
extracted. If \`true\`, then \`file\`, \`start\`, and \`end\` fields will exist for each
|
|
228140
228140
|
extracted message descriptors.`,
|
|
228141
228141
|
false
|
|
228142
|
-
).option(
|
|
228143
|
-
"--remove-default-message",
|
|
228144
|
-
"Remove `defaultMessage` field in generated js after extraction",
|
|
228145
|
-
false
|
|
228146
228142
|
).option(
|
|
228147
228143
|
"--additional-component-names <comma-separated-names>",
|
|
228148
228144
|
`Additional component names to extract messages from, e.g: \`'FormattedFooBarMessage'\`.
|
|
@@ -228276,7 +228272,7 @@ This is especially useful to convert from a TMS-specific format back to react-in
|
|
|
228276
228272
|
`The source locale of the translation files.
|
|
228277
228273
|
There must be a file named <sourceLocale>.json in the list of translation files.
|
|
228278
228274
|
This is used as source to verify other translations against.`
|
|
228279
|
-
).option(
|
|
228275
|
+
).option("--ignore <files...>", "List of glob paths to ignore").option(
|
|
228280
228276
|
"--missing-keys",
|
|
228281
228277
|
`Whether to check for missing keys in target locale compared to source locale.
|
|
228282
228278
|
This basically guarantees that no messages are untranslated.`
|
|
@@ -228287,7 +228283,9 @@ This is especially useful to convert from a TMS-specific format back to react-in
|
|
|
228287
228283
|
).action(async (filePatterns, opts) => {
|
|
228288
228284
|
debug("File pattern:", filePatterns);
|
|
228289
228285
|
debug("Options:", opts);
|
|
228290
|
-
const files = (0, import_fast_glob.sync)(filePatterns
|
|
228286
|
+
const files = (0, import_fast_glob.sync)(filePatterns, {
|
|
228287
|
+
ignore: opts.ignore
|
|
228288
|
+
});
|
|
228291
228289
|
if (!files.length) {
|
|
228292
228290
|
throw new Error(`No input file found with pattern ${filePatterns}`);
|
|
228293
228291
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formatjs/cli",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.6.0",
|
|
4
4
|
"description": "A CLI for formatjs.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"intl",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"url": "https://github.com/formatjs/formatjs/issues"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@formatjs/cli-lib": "7.
|
|
36
|
+
"@formatjs/cli-lib": "7.3.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@glimmer/env": "^0.1.7",
|