Skip to content

Commit

Permalink
build(common): modify peer dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
mirari committed Jan 3, 2024
1 parent 77577c9 commit 14052bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Image viewer component for vue, supports rotation, scale, zoom and so on, based
Install from NPM

```bash
npm install v-viewer@next viewerjs
npm install v-viewer viewerjs
```

## Usage
Expand Down Expand Up @@ -113,9 +113,9 @@ app.mount('#app')

```html
<link href="//unpkg.com/viewerjs/dist/viewer.css" rel="stylesheet">
<script src="//unpkg.com/vue@next"></script>
<script src="//unpkg.com/vue"></script>
<script src="//unpkg.com/viewerjs/dist/viewer.js"></script>
<script src="//unpkg.com/v-viewer@next/dist/index.umd.js"></script>
<script src="//unpkg.com/v-viewer/dist/index.umd.js"></script>
<script>
app.use(VueViewer.default)
</script>
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,15 @@
"preview:build": "vite build example --config example/vite.config.ts",
"preview:serve": "vite preview example --config example/vite.config.ts",
"release": "standard-version",
"publish": "npm run build && npm publish",
"publish:next": "npm run build && npm publish --tag next"
},
"peerDependencies": {
"vue": "^3.0.0"
"vue": "^3.0.0",
"viewerjs": "^1.11.0"
},
"dependencies": {
"lodash": "^4.17.21",
"viewerjs": "^1.11.0"
"lodash": "^4.17.21"
},
"devDependencies": {
"@antfu/eslint-config": "^0.27.0",
Expand Down

0 comments on commit 14052bb

Please sign in to comment.