Skip to content

Commit

Permalink
chore: make vue and @internationalized/date peer dependencies (un…
Browse files Browse the repository at this point in the history
…ovue#784)

* chore: move vue and @internationalized/date to peer dependencies

* chore: remove @internationalized/date from peer deps

* chore: just forgot it

* chore: update lockfile

* chore: remove unused dependencies

* chore: make @internationalized/date optional peer dependency

* chore: update lockfile

* chore: remove unnecessary perrDependencyMeta for vue

* chore(docs): update install snippets for @internationalized/date to not be dev dependency
  • Loading branch information
MellKam authored Mar 25, 2024
1 parent 12965aa commit c2e5c1c
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 105 deletions.
2 changes: 1 addition & 1 deletion docs/content/components/calendar.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ We highly recommend reading through the documentation for the package to get a s
Install the date package.

```bash
npm install -D @internationalized/date
npm install @internationalized/date
```

Install the component from your command line.
Expand Down
2 changes: 1 addition & 1 deletion docs/content/components/date-field.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ We highly recommend reading through the documentation for the package to get a s
Install the date package.

```bash
npm install -D @internationalized/date
npm install @internationalized/date
```

Install the component from your command line.
Expand Down
2 changes: 1 addition & 1 deletion docs/content/components/date-picker.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ We highly recommend reading through the documentation for the package to get a s
Install the date package.

```bash
npm install -D @internationalized/date
npm install @internationalized/date
```

Install the component from your command line.
Expand Down
2 changes: 1 addition & 1 deletion docs/content/components/date-range-field.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ We highly recommend reading through the documentation for the package to get a s
Install the date package.

```bash
npm install -D @internationalized/date
npm install @internationalized/date
```

Install the component from your command line.
Expand Down
2 changes: 1 addition & 1 deletion docs/content/components/date-range-picker.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ We highly recommend reading through the documentation for the package to get a s
Install the date package.

```bash
npm install -D @internationalized/date
npm install @internationalized/date
```

Install the component from your command line.
Expand Down
2 changes: 1 addition & 1 deletion docs/content/components/range-calendar.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ We highly recommend reading through the documentation for the package to get a s
Install the date package.

```bash
npm install -D @internationalized/date
npm install @internationalized/date
```

Install the component from your command line.
Expand Down
2 changes: 1 addition & 1 deletion docs/content/guides/dates.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ works, and you'll need to install it in your project to use the date-related com


```bash
npm install -D @internationalized/date
npm install @internationalized/date
```


Expand Down
21 changes: 14 additions & 7 deletions packages/radix-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,28 @@
"test": "vitest",
"pub:release": "pnpm publish --access public"
},
"peerDependencies": {
"@internationalized/date": "^3.5.2",
"vue": ">= 3.2.0"
},
"peerDependenciesMeta": {
"@internationalized/date": {
"optional": true
}
},
"dependencies": {
"@floating-ui/dom": "^1.5.4",
"@floating-ui/vue": "^1.0.4",
"@internationalized/date": "^3.5.2",
"@vueuse/core": "^10.5.0",
"@vueuse/shared": "^10.5.0",
"aria-hidden": "^1.2.3",
"defu": "^6.1.4",
"fast-deep-equal": "^3.1.3",
"nanoid": "^5.0.6"
},
"devDependencies": {
"@iconify/vue": "^4.1.1",
"@internationalized/date": "^3.5.2",
"@testing-library/dom": "^9.3.3",
"@testing-library/jest-dom": "^6.2.0",
"@testing-library/user-event": "^14.5.1",
Expand All @@ -77,12 +90,6 @@
"@vue/shared": "^3.4.6",
"@vue/test-utils": "^2.4.1",
"@vue/tsconfig": "^0.4.0",
"@vueuse/components": "^10.5.0",
"@vueuse/core": "^10.5.0",
"@vueuse/shared": "^10.5.0",
"aria-hidden": "^1.2.3",
"defu": "^6.1.4",
"dts-bundle": "^0.7.3",
"jsdom": "^23.2.0",
"typescript": "^5.3.3",
"vite": "^4.5.2",
Expand Down
120 changes: 29 additions & 91 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c2e5c1c

Please sign in to comment.