Skip to content
This repository was archived by the owner on May 21, 2026. It is now read-only.

Commit 6bb5b54

Browse files
committed
add: tsconfigs for dual module support
1 parent ec17f63 commit 6bb5b54

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

tsconfig.cjs.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"module": "CommonJS",
55
"moduleResolution": "Node",
66
"outDir": "./dist-cjs",
7-
"esModuleInterop": true,
8-
"allowSyntheticDefaultImports": true
7+
"allowSyntheticDefaultImports": true,
8+
"esModuleInterop": true
99
},
1010
"include": ["index.ts", "src/**/*.ts"],
1111
"exclude": ["examples", "node_modules", "dist", "dist-cjs"]
12-
}
12+
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
"resolveJsonModule": true,
88
"strict": true,
99
"declaration": true,
10+
"declarationDir": "./dist",
1011
"declarationMap": true,
1112
"outDir": "./dist",
12-
"declarationDir": "./dist",
1313
"esModuleInterop": true,
1414
"forceConsistentCasingInFileNames": true,
1515
"skipLibCheck": true

0 commit comments

Comments
 (0)