@lingui/conf 5.0.0-next.2 → 5.0.0-next.4
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/README.md +1 -10
- package/dist/index.cjs +0 -11
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +0 -11
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -14,16 +14,7 @@ Package finds nearest package.json starting from current directory, reads `lingu
|
|
|
14
14
|
|
|
15
15
|
## Usage
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
const getConfig = require("@lingui/conf")
|
|
19
|
-
|
|
20
|
-
const config = getConfig()
|
|
21
|
-
// When package.json is located in '/app/package.json'
|
|
22
|
-
// config.rootDir === '/app'
|
|
23
|
-
// config.localeDir === '/app/locale'
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
See the [reference][reference] documentation of `lingui-cli` for all options.
|
|
17
|
+
See the [reference][reference] documentation.
|
|
27
18
|
|
|
28
19
|
## License
|
|
29
20
|
|
package/dist/index.cjs
CHANGED
|
@@ -348,19 +348,8 @@ const exampleConfig = {
|
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
};
|
|
351
|
-
const extractBabelOptionsDeprecations = {
|
|
352
|
-
extractBabelOptions: () => ` Option ${chalk__default.bold("extractBabelOptions")} was removed.
|
|
353
|
-
|
|
354
|
-
Please remove it from your config file.
|
|
355
|
-
|
|
356
|
-
You can find more information here: https://lingui.dev/releases/migration-4
|
|
357
|
-
`
|
|
358
|
-
};
|
|
359
351
|
const configValidation = {
|
|
360
352
|
exampleConfig,
|
|
361
|
-
deprecatedConfig: {
|
|
362
|
-
...extractBabelOptionsDeprecations
|
|
363
|
-
},
|
|
364
353
|
comment: "Documentation: https://lingui.dev/ref/conf"
|
|
365
354
|
};
|
|
366
355
|
function validateLocales(config) {
|
package/dist/index.d.cts
CHANGED
|
@@ -171,7 +171,7 @@ type LinguiConfig = {
|
|
|
171
171
|
};
|
|
172
172
|
compilerBabelOptions?: any;
|
|
173
173
|
fallbackLocales?: FallbackLocales | false;
|
|
174
|
-
extractors?:
|
|
174
|
+
extractors?: ExtractorType[];
|
|
175
175
|
prevFormat?: CatalogFormat;
|
|
176
176
|
localeDir?: string;
|
|
177
177
|
format?: CatalogFormat | CatalogFormatter;
|
package/dist/index.d.mts
CHANGED
|
@@ -171,7 +171,7 @@ type LinguiConfig = {
|
|
|
171
171
|
};
|
|
172
172
|
compilerBabelOptions?: any;
|
|
173
173
|
fallbackLocales?: FallbackLocales | false;
|
|
174
|
-
extractors?:
|
|
174
|
+
extractors?: ExtractorType[];
|
|
175
175
|
prevFormat?: CatalogFormat;
|
|
176
176
|
localeDir?: string;
|
|
177
177
|
format?: CatalogFormat | CatalogFormatter;
|
package/dist/index.d.ts
CHANGED
|
@@ -171,7 +171,7 @@ type LinguiConfig = {
|
|
|
171
171
|
};
|
|
172
172
|
compilerBabelOptions?: any;
|
|
173
173
|
fallbackLocales?: FallbackLocales | false;
|
|
174
|
-
extractors?:
|
|
174
|
+
extractors?: ExtractorType[];
|
|
175
175
|
prevFormat?: CatalogFormat;
|
|
176
176
|
localeDir?: string;
|
|
177
177
|
format?: CatalogFormat | CatalogFormatter;
|
package/dist/index.mjs
CHANGED
|
@@ -340,19 +340,8 @@ const exampleConfig = {
|
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
};
|
|
343
|
-
const extractBabelOptionsDeprecations = {
|
|
344
|
-
extractBabelOptions: () => ` Option ${chalk.bold("extractBabelOptions")} was removed.
|
|
345
|
-
|
|
346
|
-
Please remove it from your config file.
|
|
347
|
-
|
|
348
|
-
You can find more information here: https://lingui.dev/releases/migration-4
|
|
349
|
-
`
|
|
350
|
-
};
|
|
351
343
|
const configValidation = {
|
|
352
344
|
exampleConfig,
|
|
353
|
-
deprecatedConfig: {
|
|
354
|
-
...extractBabelOptionsDeprecations
|
|
355
|
-
},
|
|
356
345
|
comment: "Documentation: https://lingui.dev/ref/conf"
|
|
357
346
|
};
|
|
358
347
|
function validateLocales(config) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lingui/conf",
|
|
3
|
-
"version": "5.0.0-next.
|
|
3
|
+
"version": "5.0.0-next.4",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "Get lingui configuration from package.json",
|
|
6
6
|
"keywords": [
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"tsd": "^0.26.1",
|
|
43
43
|
"unbuild": "^2.0.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "7b9ca5b479be4acd58ed95bff841e89efba06279"
|
|
46
46
|
}
|