Skip to content

Commit

Permalink
fix: fix incorrect CJS / ESM distribution (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobJingleheimer authored Jan 16, 2022
1 parent 3dc2804 commit 048c4ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"version": "1.1.0",
"author": "Greg Bergé <[email protected]>",
"license": "MIT",
"main": "dist/index.js",
"module": "dist/react-merge-refs.esm.js",
"typings": "dist/index.d.ts",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"typings": "./dist/index.d.ts",
"repository": "github:gregberge/react-merge-refs",
"funding": {
"type": "github",
Expand All @@ -22,7 +22,7 @@
"release": "standard-version && conventional-github-releaser --preset angular",
"start": "tsdx watch",
"test": "tsdx test",
"build": "tsdx build"
"build": "tsdx build --format cjs"
},
"devDependencies": {
"@testing-library/react": "^11.2.5",
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as React from "react";
import type * as React from "react";

export default function mergeRefs<T = any>(
refs: Array<React.MutableRefObject<T> | React.LegacyRef<T>>
Expand Down

0 comments on commit 048c4ea

Please sign in to comment.