Skip to content

Commit 0fed335

Browse files
committed
updated file extensions to be named
1 parent ebd2992 commit 0fed335

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
],
3131
"private": false,
3232
"type": "module",
33-
"main": "dist/cjs/index.js",
33+
"main": "dist/cjs/index.cjs",
3434
"module": "dist/esm/index.js",
3535
"types": "dist/cjs/index.d.ts",
3636
"files": [

package-react/rollup.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ export default {
1111
input: 'src/index.tsx', // Main TypeScript file of our package
1212
output: [
1313
{
14-
file: 'dist/cjs/index.js', // CommonJS format
14+
file: 'dist/cjs/index.cjs', // CommonJS format
1515
format: 'cjs',
16-
sourcemap: true
16+
sourcemap: true,
17+
exports: "named"
1718
},
1819
{
1920
file: 'dist/esm/index.js', // ES Module format

0 commit comments

Comments
 (0)