From 4730d3167ae6c2fff2451b7083862069bbd674a6 Mon Sep 17 00:00:00 2001 From: Chathu Vishwajith <4evercreations@gmail.com> Date: Thu, 7 Oct 2021 18:58:25 +0530 Subject: [PATCH] feat!: move jsbarcode as dependacy rather than peer --- Readme.md | 6 +++--- package.json | 4 +++- yarn.lock | 5 +++++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Readme.md b/Readme.md index 754afab..1b72fec 100644 --- a/Readme.md +++ b/Readme.md @@ -9,20 +9,20 @@ ## About -This is a [React](https://reactjs.org) component wrapping up [jsbarcode](<[https://](https://github.com/lindell/JsBarcode)>): +This is a [React](https://reactjs.org) component wrapping up [jsbarcode](<[https://](https://github.com/lindell/JsBarcode)>). Written as a React functional component using React hooks. ## Installation using NPM ```bash -npm i react-jsbarcode jsbarcode +npm i react-jsbarcode ``` using yarn ```bash -yarn add react-jsbarcode jsbarcode +yarn add react-jsbarcode ``` ## Usage diff --git a/package.json b/package.json index 819e439..8eacc11 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,9 @@ "prepublishOnly": "yarn clean && yarn build", "release": "standard-version" }, + "dependencies": { + "jsbarcode": "^3.11.5" + }, "devDependencies": { "@commitlint/cli": "^13.2.0", "@commitlint/config-conventional": "^13.2.0", @@ -45,7 +48,6 @@ "typescript": "^4.4.3" }, "peerDependencies": { - "jsbarcode": "^3.11.5", "react": "^17.0.2" }, "keywords": [ diff --git a/yarn.lock b/yarn.lock index cb65604..ed8994f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1899,6 +1899,11 @@ js-yaml@^3.13.1: argparse "^1.0.7" esprima "^4.0.0" +jsbarcode@^3.11.5: + version "3.11.5" + resolved "https://registry.yarnpkg.com/jsbarcode/-/jsbarcode-3.11.5.tgz#390b3efd0271f35b9d68c7b8af6e972445969014" + integrity sha512-zv3KsH51zD00I/LrFzFSM6dst7rDn0vIMzaiZFL7qusTjPZiPtxg3zxetp0RR7obmjTw4f6NyGgbdkBCgZUIrA== + json-parse-better-errors@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9"