Skip to content

Commit e2ec12b

Browse files
committed
add entrypoints
1 parent 837a01a commit e2ec12b

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

packages/tracing/package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@
1212
"main": "build/npm/cjs/index.js",
1313
"module": "build/npm/esm/index.js",
1414
"types": "build/npm/types/index.d.ts",
15+
"exports": {
16+
"./node": {
17+
"import": "./build/npm/esm/node/index.js",
18+
"require": "./build/npm/cjs/node/index.js",
19+
"types": "./build/npm/types/node/index.d.ts"
20+
},
21+
"./browser": {
22+
"import": "./build/npm/esm/browser/index.js",
23+
"require": "./build/npm/cjs/browser/index.js",
24+
"types": "./build/npm/types/browser/index.d.ts"
25+
}
26+
},
1527
"publishConfig": {
1628
"access": "public"
1729
},

packages/tracing/rollup.npm.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { makeBaseNPMConfig, makeNPMConfigVariants } from '../../rollup/index.js'
22

33
export default makeNPMConfigVariants(
44
makeBaseNPMConfig({
5+
entrypoints: ['src/browser/index.ts', 'src/node/index.ts', 'src/index.ts'],
56
// packages with bundles have a different build directory structure
67
hasBundles: true,
78
}),

0 commit comments

Comments
 (0)