Skip to content

Commit

Permalink
feat!: move jsbarcode as dependacy rather than peer
Browse files Browse the repository at this point in the history
  • Loading branch information
iamchathu committed Oct 7, 2021
1 parent ddb7d3c commit 4730d31
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Readme.md
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -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",
Expand All @@ -45,7 +48,6 @@
"typescript": "^4.4.3"
},
"peerDependencies": {
"jsbarcode": "^3.11.5",
"react": "^17.0.2"
},
"keywords": [
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Expand Up @@ -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"
Expand Down

0 comments on commit 4730d31

Please sign in to comment.