Skip to content

Commit 3924d79

Browse files
docs: add typescript to next example dependencies (#829)
1 parent 69a80e2 commit 3924d79

3 files changed

Lines changed: 92 additions & 67 deletions

File tree

examples/next-js/lingui.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
catalogs: [
55
{
66
path: "<rootDir>/locale/{locale}/messages",
7-
include: ["<rootDir>"],
7+
include: ["<rootDir>/"],
88
exclude: ["**/node_modules/**"],
99
},
1010
],

examples/next-js/package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,19 @@
88
"start": "next start"
99
},
1010
"dependencies": {
11-
"@lingui/core": "^3.0.0",
12-
"@lingui/react": "^3.0.0",
11+
"@lingui/core": "^3.0.3",
12+
"@lingui/react": "^3.0.3",
1313
"classnames": "^2.2.6",
14-
"next": "10.0.0",
14+
"next": "10.0.1",
1515
"react": "17.0.1",
1616
"react-dom": "17.0.1"
1717
},
1818
"devDependencies": {
19-
"@lingui/cli": "^3.0.0",
20-
"@lingui/loader": "^3.0.0",
21-
"@lingui/macro": "^3.0.0",
22-
"babel-plugin-macros": "^2.8.0"
19+
"@lingui/cli": "^3.0.3",
20+
"@lingui/loader": "^3.0.3",
21+
"@lingui/macro": "^3.0.3",
22+
"@types/react": "^16.9.56",
23+
"babel-plugin-macros": "^2.8.0",
24+
"typescript": "^4.0.5"
2325
}
2426
}

examples/next-js/yarn.lock

Lines changed: 82 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,28 +1107,28 @@
11071107
"@types/yargs" "^15.0.0"
11081108
chalk "^4.0.0"
11091109

1110-
"@lingui/babel-plugin-extract-messages@3.0.0":
1111-
version "3.0.0"
1112-
resolved "https://registry.yarnpkg.com/@lingui/babel-plugin-extract-messages/-/babel-plugin-extract-messages-3.0.0.tgz#5bc2c08ccde0ebbe736d5ee22cd0b61bc837f7f1"
1113-
integrity sha512-atjb6sQbDP8ZLZu5fJdAMK+CJWGs/hyn52JxZi3tPgirORFDAOa/FfDP5Sfnv+3wgEQzFA2igEmSKpyTuyZHBg==
1110+
"@lingui/babel-plugin-extract-messages@3.0.3":
1111+
version "3.0.3"
1112+
resolved "https://registry.yarnpkg.com/@lingui/babel-plugin-extract-messages/-/babel-plugin-extract-messages-3.0.3.tgz#8c7bcb9e13e0621b006ee6c47dac0002ee02198b"
1113+
integrity sha512-3RVx9qharfHGDrxyRMp0jWRG5vzYHyTYiamqFejcmDVCBDHOS1SqFkgyDayFZp3f4CnyRT9W+0ARAeTFjpfuaw==
11141114
dependencies:
11151115
"@babel/generator" "^7.11.6"
11161116
"@babel/runtime" "^7.11.2"
1117-
"@lingui/conf" "3.0.0"
1117+
"@lingui/conf" "3.0.3"
11181118
mkdirp "^1.0.4"
11191119

1120-
"@lingui/cli@3.0.0", "@lingui/cli@^3.0.0":
1121-
version "3.0.0"
1122-
resolved "https://registry.yarnpkg.com/@lingui/cli/-/cli-3.0.0.tgz#128ce8289d2fbc66cc6a122e1ccc76ff890b8ac7"
1123-
integrity sha512-ysega+gLQA46i6I9fkW1eQNhx2bYzRTaN0NfFtFxVu4WEIBP0+r+oHGTILys4zFjSj5v0iSJ/2/iroJKI11NeA==
1120+
"@lingui/cli@3.0.3", "@lingui/cli@^3.0.3":
1121+
version "3.0.3"
1122+
resolved "https://registry.yarnpkg.com/@lingui/cli/-/cli-3.0.3.tgz#17108a2a87251d6f2583e4b5d883760c8fdd8cdc"
1123+
integrity sha512-LCjiLZz8ODB9cGARmxGrHDMe02GWdoHPlhcZjjQ1KFD5SWYsgJd4FkcRt5MIK+027vr6Iu5sjs/THht0NillLA==
11241124
dependencies:
11251125
"@babel/generator" "^7.11.6"
11261126
"@babel/parser" "^7.11.5"
11271127
"@babel/plugin-syntax-jsx" "^7.10.4"
11281128
"@babel/runtime" "^7.11.2"
11291129
"@babel/types" "^7.11.5"
1130-
"@lingui/babel-plugin-extract-messages" "3.0.0"
1131-
"@lingui/conf" "3.0.0"
1130+
"@lingui/babel-plugin-extract-messages" "3.0.3"
1131+
"@lingui/conf" "3.0.3"
11321132
babel-plugin-macros "^2.8.0"
11331133
bcp-47 "^1.0.7"
11341134
chalk "^4.1.0"
@@ -1150,67 +1150,67 @@
11501150
pseudolocale "^1.1.0"
11511151
ramda "^0.27.1"
11521152

1153-
"@lingui/conf@3.0.0":
1154-
version "3.0.0"
1155-
resolved "https://registry.yarnpkg.com/@lingui/conf/-/conf-3.0.0.tgz#8a3ea64e7a7c43d12c20aa910d6aeb65911d889b"
1156-
integrity sha512-oPPU6hdyA2fMlQRB7GoYWApzR2tTXPqN8bGTo3ZFXBOgazAHYgIED/ZrnXEWTKRdGRtxMYkU+xDQ+6BLdgieug==
1153+
"@lingui/conf@3.0.3":
1154+
version "3.0.3"
1155+
resolved "https://registry.yarnpkg.com/@lingui/conf/-/conf-3.0.3.tgz#3448d9ffd062daa7f2b5253343beba5599cd1cd2"
1156+
integrity sha512-LjpKne/DduH3Ovq+2K/u160LIM6eHVpWbufQYn9li6zM9RrRMkZ833Xsb2r5FrKN9uhtDYlrSZgOapLN3IC93Q==
11571157
dependencies:
11581158
"@babel/runtime" "^7.11.2"
11591159
chalk "^4.1.0"
11601160
cosmiconfig "^7.0.0"
11611161
jest-validate "^26.5.2"
11621162

1163-
"@lingui/core@3.0.0", "@lingui/core@^3.0.0":
1164-
version "3.0.0"
1165-
resolved "https://registry.yarnpkg.com/@lingui/core/-/core-3.0.0.tgz#5591658ea4edaf0e5fc359eef5b70fe292a22265"
1166-
integrity sha512-Jtwau0dV10SaL/mJmhR+h5Pyos3MTijWvNnPeIiaKfVtXskhopspuKjux0Q2BeDipmGXMxcF6JAuVJvTFxJ47w==
1163+
"@lingui/core@3.0.3", "@lingui/core@^3.0.3":
1164+
version "3.0.3"
1165+
resolved "https://registry.yarnpkg.com/@lingui/core/-/core-3.0.3.tgz#d3791f6e54943d2481d127b6bed015d515e16bb1"
1166+
integrity sha512-lfDkhgChJ+6f+qlGFFJmHAF28ZZTc/dgxVcT4zpLx4Gqf0MsIsx701MBGLXI1X/Gn2PMkDnhZVP0XkpDma6fxQ==
11671167
dependencies:
11681168
"@babel/runtime" "^7.11.2"
11691169
make-plural "^6.2.2"
11701170
messageformat-parser "^4.1.3"
11711171

1172-
"@lingui/loader@^3.0.0":
1173-
version "3.0.0"
1174-
resolved "https://registry.yarnpkg.com/@lingui/loader/-/loader-3.0.0.tgz#90906e1d8babcaf798ea804b8bb53629ae2a4e99"
1175-
integrity sha512-8q0KmW3HjhxPP1rOZAUUbm2JYMyZIZHqDs2a5pGbcZOcUOYh/WzDEL+GDhxGN6E8vGMvg5c+iPU/1ZiIbpAYzA==
1172+
"@lingui/loader@^3.0.3":
1173+
version "3.0.3"
1174+
resolved "https://registry.yarnpkg.com/@lingui/loader/-/loader-3.0.3.tgz#cf1016d3f3f6b3d6a8447d51068916c4a8bd3b47"
1175+
integrity sha512-yOYeDVrOAC6YYA46WKkAlgR87m0cAXxtsbTLwWZIAKhv6F1wMGv2hvyONdzLh0pGbi0WGtr3uqzKOftrDGz47w==
11761176
dependencies:
11771177
"@babel/runtime" "^7.11.2"
1178-
"@lingui/cli" "3.0.0"
1179-
"@lingui/conf" "3.0.0"
1178+
"@lingui/cli" "3.0.3"
1179+
"@lingui/conf" "3.0.3"
11801180
loader-utils "^2.0.0"
11811181
ramda "^0.27.1"
11821182

1183-
"@lingui/macro@^3.0.0":
1184-
version "3.0.0"
1185-
resolved "https://registry.yarnpkg.com/@lingui/macro/-/macro-3.0.0.tgz#afdc4890251e38b657e7c1b4bb357e5a36bf6637"
1186-
integrity sha512-Gugk8u1tlFEsaQnfzMidDdsbq/OFs3VYZ8H8XfEvygyNtWMZgKjbe1bPpwHEf4+fS3YJHWg/0GfHwIfzbJMP5g==
1183+
"@lingui/macro@^3.0.3":
1184+
version "3.0.3"
1185+
resolved "https://registry.yarnpkg.com/@lingui/macro/-/macro-3.0.3.tgz#8c19b7bd128d76bbe9ba15726b225ccd3f764da1"
1186+
integrity sha512-nGvEo5hg+6kKAOAw72zu8xDhBbh0ujlJNOHXNmf3h9T0mI5BlHqcUOJH29meZgn4x19rFyiBJty19gcD4IHTHg==
11871187
dependencies:
11881188
"@babel/runtime" "^7.11.2"
1189-
"@lingui/conf" "3.0.0"
1189+
"@lingui/conf" "3.0.3"
11901190
ramda "^0.27.1"
11911191

1192-
"@lingui/react@^3.0.0":
1193-
version "3.0.0"
1194-
resolved "https://registry.yarnpkg.com/@lingui/react/-/react-3.0.0.tgz#100bd9fd30d8fdf3b4ce128bab2c1da3488a8aa7"
1195-
integrity sha512-PAL0UfEnZXK8uahyh5ZuXNoYettDq61fg8OWt+Mf79lxdllX3QBJCM7BKp8J8JGZi+KSDS0jGwfvrq/W6MJ9bA==
1192+
"@lingui/react@^3.0.3":
1193+
version "3.0.3"
1194+
resolved "https://registry.yarnpkg.com/@lingui/react/-/react-3.0.3.tgz#4e8ac823a9b97f86d62951c0242070dc31658189"
1195+
integrity sha512-ws+g1ZG7QAmA/pUb3wrRtFbu665VbnGps3y7olQ7F+LqyeqiVpOBukRxiThBwc51apM5v9/zVbyrtjJtWsdRYg==
11961196
dependencies:
11971197
"@babel/runtime" "^7.11.2"
1198-
"@lingui/core" "3.0.0"
1198+
"@lingui/core" "3.0.3"
11991199

1200-
"@next/env@10.0.0":
1201-
version "10.0.0"
1202-
resolved "https://registry.yarnpkg.com/@next/env/-/env-10.0.0.tgz#eb0239062226a9c8b604d58d4a4204e26c22eb16"
1203-
integrity sha512-59+6BnOxPoMY64Qy2crDGHtvQgHwIL1SIkWeNiEud1V6ASs59SM9oDGN+Bo/EswII1nn+wQRpMvax0IIN2j+VQ==
1200+
"@next/env@10.0.1":
1201+
version "10.0.1"
1202+
resolved "https://registry.yarnpkg.com/@next/env/-/env-10.0.1.tgz#5f49329fcc4fe8948737aeb8108c9d7d75155f93"
1203+
integrity sha512-6dwx5YXKG88IR9Q1aai+pprF7WKcmtl0ShQy/iENj5yMWMzsQCem6hxe198u9j7z1IsWyGDXZPsaLEJEatOpeQ==
12041204

1205-
"@next/polyfill-module@10.0.0":
1206-
version "10.0.0"
1207-
resolved "https://registry.yarnpkg.com/@next/polyfill-module/-/polyfill-module-10.0.0.tgz#17f59cb7325a03f23b66b979fccc56d133411b0a"
1208-
integrity sha512-FLSwwWQaP/sXjlS7w4YFu+oottbo/bjoh+L+YED7dblsaRJT89ifV+h8zvLvh1hCL7FJUYVar4rehvj/VO5T9w==
1205+
"@next/polyfill-module@10.0.1":
1206+
version "10.0.1"
1207+
resolved "https://registry.yarnpkg.com/@next/polyfill-module/-/polyfill-module-10.0.1.tgz#483c8f8692d842800f6badb59f8de74b540580a9"
1208+
integrity sha512-Vf8HYy74jx8aQgv/ftFXQtD/udJY4/OXYiiBepqrxC0T3PPl4cns1cbrr5f15xjPELMfcqulxwMYEurioBmv+w==
12091209

1210-
"@next/react-dev-overlay@10.0.0":
1211-
version "10.0.0"
1212-
resolved "https://registry.yarnpkg.com/@next/react-dev-overlay/-/react-dev-overlay-10.0.0.tgz#ba1acc79bc9d874f1801a0b312e6a45de74bf425"
1213-
integrity sha512-HJ44TJXtaGfGxVtljPECZvqw+GctVvBr60Rsedo5A+wU2GIiycJ8n5yUSdc9UiYTnPuxfJFicJec6kgR6GSWKA==
1210+
"@next/react-dev-overlay@10.0.1":
1211+
version "10.0.1"
1212+
resolved "https://registry.yarnpkg.com/@next/react-dev-overlay/-/react-dev-overlay-10.0.1.tgz#38f99f78316e9e7fa61a95e1d883e90d6d1fa4d0"
1213+
integrity sha512-VYwwGBtV9hqpqYoVABvZEFHBt3oL6PMpiLrDmnHaOwsPDQ+kQsiWd1L8tsYvAC2dgu/x/a/TG0D81FGF77Tohw==
12141214
dependencies:
12151215
"@babel/code-frame" "7.10.4"
12161216
ally.js "1.4.1"
@@ -1223,10 +1223,10 @@
12231223
stacktrace-parser "0.1.10"
12241224
strip-ansi "6.0.0"
12251225

1226-
"@next/react-refresh-utils@10.0.0":
1227-
version "10.0.0"
1228-
resolved "https://registry.yarnpkg.com/@next/react-refresh-utils/-/react-refresh-utils-10.0.0.tgz#45cdd1ad3b55ac442f8431cdc43ff53c3dc44d16"
1229-
integrity sha512-V1/oiDWb2C1Do0eZONsKX1aqGNkqCUqxUahIiCjwKFu9c3bps+Ygg4JjtaCd9oycv0KzYImUZnU+nqveFUjxUw==
1226+
"@next/react-refresh-utils@10.0.1":
1227+
version "10.0.1"
1228+
resolved "https://registry.yarnpkg.com/@next/react-refresh-utils/-/react-refresh-utils-10.0.1.tgz#ea6f808a9a6242d2da85138edee5562f17c0243a"
1229+
integrity sha512-K3thGrgD0uic/x4PZh9oRK/+LWTsn6zmDSHoEXgdft1gtlOjQIVGz7yuPMvuEB9oXDl+giuvRbU+JRlhtSf/eQ==
12301230

12311231
"@npmcli/move-file@^1.0.1":
12321232
version "1.0.1"
@@ -1269,6 +1269,19 @@
12691269
resolved "https://registry.yarnpkg.com/@types%2fparse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0"
12701270
integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==
12711271

1272+
"@types/prop-types@*":
1273+
version "15.7.3"
1274+
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.3.tgz#2ab0d5da2e5815f94b0b9d4b95d1e5f243ab2ca7"
1275+
integrity sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw==
1276+
1277+
"@types/react@^16.9.56":
1278+
version "16.9.56"
1279+
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.56.tgz#ea25847b53c5bec064933095fc366b1462e2adf0"
1280+
integrity sha512-gIkl4J44G/qxbuC6r2Xh+D3CGZpJ+NdWTItAPmZbR5mUS+JQ8Zvzpl0ea5qT/ZT3ZNTUcDKUVqV3xBE8wv/DyQ==
1281+
dependencies:
1282+
"@types/prop-types" "*"
1283+
csstype "^3.0.2"
1284+
12721285
"@types/yargs-parser@*":
12731286
version "15.0.0"
12741287
resolved "https://registry.yarnpkg.com/@types%2fyargs-parser/-/yargs-parser-15.0.0.tgz#cb3f9f741869e20cce330ffbeb9271590483882d"
@@ -2438,6 +2451,11 @@ cssnano-simple@1.2.0:
24382451
cssnano-preset-simple "1.2.0"
24392452
postcss "^7.0.32"
24402453

2454+
csstype@^3.0.2:
2455+
version "3.0.4"
2456+
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.0.4.tgz#b156d7be03b84ff425c9a0a4b1e5f4da9c5ca888"
2457+
integrity sha512-xc8DUsCLmjvCfoD7LTGE0ou2MIWLx0K9RCZwSHMOdynqRsP4MtUcLeqh1HcQ2dInwDTqn+3CE0/FZh1et+p4jA==
2458+
24412459
cyclist@^1.0.1:
24422460
version "1.0.1"
24432461
resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-1.0.1.tgz#596e9698fd0c80e12038c2b82d6eb1b35b6224d9"
@@ -4097,10 +4115,10 @@ next-tick@~1.0.0:
40974115
resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c"
40984116
integrity sha1-yobR/ogoFpsBICCOPchCS524NCw=
40994117

4100-
next@10.0.0:
4101-
version "10.0.0"
4102-
resolved "https://registry.yarnpkg.com/next/-/next-10.0.0.tgz#fbc82fa69f05bf82fb5c4e160151f38fb9615e99"
4103-
integrity sha512-hpJkikt6tqwj7DfD5Mizwc1kDsaaS73TQK6lJL+++Ht8QXIEs+KUqTZULgdMk80mDV2Zhzo9/JYMEranWwAFLA==
4118+
next@10.0.1:
4119+
version "10.0.1"
4120+
resolved "https://registry.yarnpkg.com/next/-/next-10.0.1.tgz#e1366b41b8547dfc7e9a14d1f7dd8a8584dcf0b2"
4121+
integrity sha512-EFlcWe82CQc1QkeIhNogcdC25KBz4CBwjyzfRHhig+wp28GW1O2P/mX+2a7EG1wXg69GyW1JYXOkKk2/VjIwVg==
41044122
dependencies:
41054123
"@ampproject/toolbox-optimizer" "2.7.0-alpha.1"
41064124
"@babel/code-frame" "7.10.4"
@@ -4121,10 +4139,10 @@ next@10.0.0:
41214139
"@babel/runtime" "7.11.2"
41224140
"@babel/types" "7.11.5"
41234141
"@hapi/accept" "5.0.1"
4124-
"@next/env" "10.0.0"
4125-
"@next/polyfill-module" "10.0.0"
4126-
"@next/react-dev-overlay" "10.0.0"
4127-
"@next/react-refresh-utils" "10.0.0"
4142+
"@next/env" "10.0.1"
4143+
"@next/polyfill-module" "10.0.1"
4144+
"@next/react-dev-overlay" "10.0.1"
4145+
"@next/react-refresh-utils" "10.0.1"
41284146
ast-types "0.13.2"
41294147
babel-plugin-transform-define "2.0.0"
41304148
babel-plugin-transform-react-remove-prop-types "0.4.24"
@@ -5702,6 +5720,11 @@ typedarray@^0.0.6:
57025720
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
57035721
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
57045722

5723+
typescript@^4.0.5:
5724+
version "4.0.5"
5725+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.5.tgz#ae9dddfd1069f1cb5beb3ef3b2170dd7c1332389"
5726+
integrity sha512-ywmr/VrTVCmNTJ6iV2LwIrfG1P+lv6luD8sUJs+2eI9NLGigaN+nUQc13iHqisq7bra9lnmUSYqbJvegraBOPQ==
5727+
57055728
unicode-canonical-property-names-ecmascript@^1.0.4:
57065729
version "1.0.4"
57075730
resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz#2619800c4c825800efdd8343af7dd9933cbe2818"

0 commit comments

Comments
 (0)