@lingui/cli 4.8.0-next.0 → 4.8.0-next.1
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/api/extractors/babel.js +4 -10
- package/package.json +8 -8
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.extractFromFileWithBabel = void 0;
|
|
7
7
|
const core_1 = require("@babel/core");
|
|
8
8
|
const babel_plugin_extract_messages_1 = __importDefault(require("@lingui/babel-plugin-extract-messages"));
|
|
9
|
+
const plugin_1 = __importDefault(require("@lingui/macro/plugin"));
|
|
9
10
|
const babelRe = new RegExp("\\.(" +
|
|
10
11
|
[...core_1.DEFAULT_EXTENSIONS, ".ts", ".mts", ".cts", ".tsx"]
|
|
11
12
|
.map((ext) => ext.slice(1))
|
|
@@ -88,17 +89,10 @@ async function extractFromFileWithBabel(filename, code, onMessageExtracted, ctx,
|
|
|
88
89
|
parserOpts,
|
|
89
90
|
plugins: [
|
|
90
91
|
[
|
|
91
|
-
|
|
92
|
+
plugin_1.default,
|
|
92
93
|
{
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
// instead of ./src which makes testing & developing hard.
|
|
96
|
-
// here we override resolve and provide correct path for testing
|
|
97
|
-
resolvePath: (source) => require.resolve(source),
|
|
98
|
-
lingui: {
|
|
99
|
-
extract: true,
|
|
100
|
-
linguiConfig: ctx.linguiConfig,
|
|
101
|
-
},
|
|
94
|
+
extract: true,
|
|
95
|
+
linguiConfig: ctx.linguiConfig,
|
|
102
96
|
},
|
|
103
97
|
],
|
|
104
98
|
[
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lingui/cli",
|
|
3
|
-
"version": "4.8.0-next.
|
|
3
|
+
"version": "4.8.0-next.1",
|
|
4
4
|
"description": "CLI for working wit message catalogs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -53,11 +53,12 @@
|
|
|
53
53
|
"@babel/parser": "^7.21.2",
|
|
54
54
|
"@babel/runtime": "^7.21.0",
|
|
55
55
|
"@babel/types": "^7.21.2",
|
|
56
|
-
"@lingui/babel-plugin-extract-messages": "^4.8.0-next.
|
|
57
|
-
"@lingui/conf": "^4.8.0-next.
|
|
58
|
-
"@lingui/core": "^4.8.0-next.
|
|
59
|
-
"@lingui/format-po": "^4.8.0-next.
|
|
60
|
-
"@lingui/
|
|
56
|
+
"@lingui/babel-plugin-extract-messages": "^4.8.0-next.1",
|
|
57
|
+
"@lingui/conf": "^4.8.0-next.1",
|
|
58
|
+
"@lingui/core": "^4.8.0-next.1",
|
|
59
|
+
"@lingui/format-po": "^4.8.0-next.1",
|
|
60
|
+
"@lingui/macro": "^4.8.0-next.1",
|
|
61
|
+
"@lingui/message-utils": "^4.8.0-next.1",
|
|
61
62
|
"babel-plugin-macros": "^3.0.1",
|
|
62
63
|
"chalk": "^4.1.0",
|
|
63
64
|
"chokidar": "3.5.1",
|
|
@@ -80,7 +81,6 @@
|
|
|
80
81
|
},
|
|
81
82
|
"devDependencies": {
|
|
82
83
|
"@lingui/jest-mocks": "^3.0.3",
|
|
83
|
-
"@lingui/macro": "^4.8.0-next.0",
|
|
84
84
|
"@types/convert-source-map": "^2.0.0",
|
|
85
85
|
"@types/glob": "^8.1.0",
|
|
86
86
|
"@types/micromatch": "^4.0.1",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"mock-fs": "^5.2.0",
|
|
89
89
|
"mockdate": "^3.0.5"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "62a736f74796c6c3e5bfd23d2e95154fc7f3ff42"
|
|
92
92
|
}
|