Skip to content

Commit bd981cc

Browse files
authored
Fix TS2307 error for v1, v2, logger, and params (#1765)
Explicitly point to /index in typesVersions for v1, v2, logger, and params. This is required for moduleResolution: node to correctly resolve types for directory indexes.
1 parent a8e51ca commit bd981cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,16 +307,16 @@
307307
"typesVersions": {
308308
"*": {
309309
"logger": [
310-
"lib/logger"
310+
"lib/logger/index"
311311
],
312312
"logger/compat": [
313313
"lib/logger/compat"
314314
],
315315
"params": [
316-
"lib/params"
316+
"lib/params/index"
317317
],
318318
"v1": [
319-
"lib/v1"
319+
"lib/v1/index"
320320
],
321321
"v1/analytics": [
322322
"lib/v1/providers/analytics"
@@ -406,7 +406,7 @@
406406
"lib/v2/providers/dataconnect"
407407
],
408408
"v2": [
409-
"lib/v2"
409+
"lib/v2/index"
410410
],
411411
"v2/core": [
412412
"lib/v2/core"

0 commit comments

Comments
 (0)