Skip to content

Commit ed7209f

Browse files
committed
fix module type
1 parent 44bc4bc commit ed7209f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

shared/utils/package-analysis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function analyzeExports(exports: PackageExports, depth = 0): ExportsAnalysis {
124124

125125
if (typeof exports === 'string') {
126126
// Check file extension for format hints
127-
if (exports.endsWith('.mjs') || exports.endsWith('.mts')) {
127+
if (exports.endsWith('.mjs') || exports.endsWith('.mts') || exports.endsWith('.json')) {
128128
result.hasImport = true
129129
} else if (exports.endsWith('.cjs') || exports.endsWith('.cts')) {
130130
result.hasRequire = true

0 commit comments

Comments
 (0)