Skip to content

Commit 3e11ed3

Browse files
committed
build(packages): add types/node at the root for type resolution
1 parent 1e28884 commit 3e11ed3

3 files changed

Lines changed: 19 additions & 29 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"devDependencies": {
3535
"@types/jest": "^29.2.3",
3636
"@types/lodash": "^4.17.0",
37+
"@types/node": "^25.5.0",
3738
"@typescript-eslint/eslint-plugin": "^7.2.0",
3839
"@typescript-eslint/utils": "^7.2.0",
3940
"eslint": "^8.57.0",

tsconfig.module.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"esModuleInterop": true,
1111
"forceConsistentCasingInFileNames": true,
1212
"skipLibCheck": true,
13-
"resolveJsonModule": true
13+
"resolveJsonModule": true,
14+
"types": ["node"]
1415
}
1516
}

yarn.lock

Lines changed: 16 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3466,6 +3466,13 @@
34663466
dependencies:
34673467
undici-types "~5.26.4"
34683468

3469+
"@types/node@^25.5.0":
3470+
version "25.5.0"
3471+
resolved "https://registry.yarnpkg.com/@types/node/-/node-25.5.0.tgz#5c99f37c443d9ccc4985866913f1ed364217da31"
3472+
integrity sha512-jp2P3tQMSxWugkCUKLRPVUpGaL5MVFwF8RDuSRztfwgN1wmqJeMSbKlnEtQqU8UrhTmzEmZdu2I6v2dpp7XIxw==
3473+
dependencies:
3474+
undici-types "~7.18.0"
3475+
34693476
"@types/normalize-package-data@^2.4.0":
34703477
version "2.4.4"
34713478
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz#56e2cc26c397c038fab0e3a917a12d5c5909e901"
@@ -6012,6 +6019,7 @@ eslint-module-utils@^2.12.0:
60126019

60136020
"eslint-plugin-custom-rules@link:./packages/eslint-plugin-flashlight-eslint-rules/dist":
60146021
version "0.0.0"
6022+
uid ""
60156023

60166024
eslint-plugin-import@^2.26.0:
60176025
version "2.31.0"
@@ -11225,16 +11233,7 @@ string-length@^4.0.1:
1122511233
char-regex "^1.0.2"
1122611234
strip-ansi "^6.0.0"
1122711235

11228-
"string-width-cjs@npm:string-width@^4.2.0":
11229-
version "4.2.3"
11230-
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
11231-
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
11232-
dependencies:
11233-
emoji-regex "^8.0.0"
11234-
is-fullwidth-code-point "^3.0.0"
11235-
strip-ansi "^6.0.1"
11236-
11237-
"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3:
11236+
"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3:
1123811237
version "4.2.3"
1123911238
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
1124011239
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -11329,14 +11328,7 @@ string_decoder@~1.1.1:
1132911328
dependencies:
1133011329
safe-buffer "~5.1.0"
1133111330

11332-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
11333-
version "6.0.1"
11334-
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
11335-
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
11336-
dependencies:
11337-
ansi-regex "^5.0.1"
11338-
11339-
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
11331+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
1134011332
version "6.0.1"
1134111333
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
1134211334
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -11977,6 +11969,11 @@ undici-types@~6.19.8:
1197711969
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.19.8.tgz#35111c9d1437ab83a7cdc0abae2f26d88eda0a02"
1197811970
integrity sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==
1197911971

11972+
undici-types@~7.18.0:
11973+
version "7.18.2"
11974+
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.18.2.tgz#29357a89e7b7ca4aef3bf0fd3fd0cd73884229e9"
11975+
integrity sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==
11976+
1198011977
unique-filename@^3.0.0:
1198111978
version "3.0.0"
1198211979
resolved "https://registry.yarnpkg.com/unique-filename/-/unique-filename-3.0.0.tgz#48ba7a5a16849f5080d26c760c86cf5cf05770ea"
@@ -12307,7 +12304,7 @@ wordwrap@^1.0.0:
1230712304
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
1230812305
integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==
1230912306

12310-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
12307+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
1231112308
version "7.0.0"
1231212309
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
1231312310
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -12325,15 +12322,6 @@ wrap-ansi@^6.0.1, wrap-ansi@^6.2.0:
1232512322
string-width "^4.1.0"
1232612323
strip-ansi "^6.0.0"
1232712324

12328-
wrap-ansi@^7.0.0:
12329-
version "7.0.0"
12330-
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
12331-
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
12332-
dependencies:
12333-
ansi-styles "^4.0.0"
12334-
string-width "^4.1.0"
12335-
strip-ansi "^6.0.0"
12336-
1233712325
wrap-ansi@^8.1.0:
1233812326
version "8.1.0"
1233912327
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"

0 commit comments

Comments
 (0)