From 86de4d857116b3303a7d92793c25ea818e74398d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DOUIN?= Date: Thu, 26 May 2022 14:23:07 +0200 Subject: [PATCH] add default export, reword package description --- flake.nix | 2 +- package.json | 18 +++++++++--------- src/index.ts | 2 ++ 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/flake.nix b/flake.nix index 905bf0a..823c66f 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,5 @@ { - description = "React hook for managing effects within reducers."; + description = "React hook for managing effects from reducers."; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-21.11"; diff --git a/package.json b/package.json index cbc53a5..fa7efee 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,17 @@ { "name": "react-use-bireducer", "author": "soywod ", - "description": "React hook for managing effects within reducers.", - "version": "1.0.1", + "description": "React hook for managing effects from reducers.", + "version": "1.0.2", "license": "MIT", - "source": "./src/index.ts", - "exports": "./dist/index.mjs", - "main": "./dist/index.js", - "module": "./dist/index.esm.js", - "unpkg": "./dist/index.umd.js", - "typings": "./dist/index.d.ts", + "source": "src/index.ts", + "exports": "dist/index.mjs", + "main": "dist/index.js", + "module": "dist/index.esm.js", + "unpkg": "dist/index.umd.js", + "typings": "dist/index.d.ts", "files": [ - "./dist" + "dist" ], "devDependencies": { "@jest/types": "^28.1.0", diff --git a/src/index.ts b/src/index.ts index 1fd87d6..7a5fb1a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -41,3 +41,5 @@ export function useBireducer( return useReducer(reducer, defaultState); } + +export default {useBireducer};