Skip to content

Commit e43c7e5

Browse files
committed
add typesVersions to make package.json work
1 parent e2ec12b commit e43c7e5

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

packages/tracing/package.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
"module": "build/npm/esm/index.js",
1414
"types": "build/npm/types/index.d.ts",
1515
"exports": {
16+
".": {
17+
"import": "./build/npm/esm/index.js",
18+
"require": "./build/npm/cjs/index.js",
19+
"types": "./build/npm/types/index.d.ts"
20+
},
1621
"./node": {
1722
"import": "./build/npm/esm/node/index.js",
1823
"require": "./build/npm/cjs/node/index.js",
@@ -24,6 +29,19 @@
2429
"types": "./build/npm/types/browser/index.d.ts"
2530
}
2631
},
32+
"typesVersions": {
33+
"*": {
34+
"*": [
35+
"build/npm/types/index.d.ts"
36+
],
37+
"node": [
38+
"./build/npm/types/node/index.d.ts"
39+
],
40+
"browser": [
41+
"./build/npm/types/browser/index.d.ts"
42+
]
43+
}
44+
},
2745
"publishConfig": {
2846
"access": "public"
2947
},

0 commit comments

Comments
 (0)