Skip to content

Commit db7b726

Browse files
logaretmclaude
andcommitted
chore(nitro): drop cjs build and clean up package exports
Nitro 3 is ESM-only, so the cjs output was shipping dead code. Also removes a broken typesVersions entry pointing at build/types/plugins.d.ts (file never existed, no consumer imports @sentry/nitro/plugins). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d652c49 commit db7b726

2 files changed

Lines changed: 2 additions & 11 deletions

File tree

packages/nitro/package.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,13 @@
1212
"files": [
1313
"/build"
1414
],
15-
"main": "build/esm/index.js",
1615
"module": "build/esm/index.js",
1716
"types": "build/types/index.d.ts",
18-
"typesVersions": {
19-
"*": {
20-
"plugins": [
21-
"build/types/plugins.d.ts"
22-
]
23-
}
24-
},
2517
"exports": {
2618
"./package.json": "./package.json",
2719
".": {
2820
"types": "./build/types/index.d.ts",
29-
"node": {
30-
"import": "./build/esm/index.js"
31-
}
21+
"default": "./build/esm/index.js"
3222
}
3323
},
3424
"publishConfig": {

packages/nitro/rollup.npm.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ export default [
88
external: [/^nitro/, /^h3/, /^srvx/, /^@sentry\/opentelemetry/, '@sentry/bundler-plugin-core'],
99
},
1010
}),
11+
{ emitCjs: false },
1112
),
1213
];

0 commit comments

Comments
 (0)