Skip to content

Commit

Permalink
Add Astro as a peerDependency (#5806)
Browse files Browse the repository at this point in the history
* Add Astro as a peerDependency

* Add changeset

* Update .changeset/thin-seahorses-worry.md

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
  • Loading branch information
matthewp and bluwy committed Jan 9, 2023
1 parent 32b0795 commit 7572f74
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 7 deletions.
16 changes: 16 additions & 0 deletions .changeset/thin-seahorses-worry.md
@@ -0,0 +1,16 @@
---
'@astrojs/cloudflare': major
'@astrojs/deno': major
'@astrojs/netlify': major
'@astrojs/node': major
'@astrojs/svelte': major
'@astrojs/tailwind': major
'@astrojs/vercel': major
'@astrojs/vue': major
'@astrojs/markdown-remark': major
'@astrojs/image': minor
---

Make astro a peerDependency of integrations

This marks `astro` as a peerDependency of several packages that are already getting `major` version bumps. This is so we can more properly track the dependency between them and what version of Astro they are being used with.
2 changes: 1 addition & 1 deletion packages/integrations/cloudflare/package.json
Expand Up @@ -38,7 +38,7 @@
"tiny-glob": "^0.2.9"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"
"astro": "workspace:^2.0.0-beta.0"
},
"devDependencies": {
"astro": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/deno/package.json
Expand Up @@ -32,7 +32,7 @@
"esbuild": "^0.15.18"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"
"astro": "workspace:^2.0.0-beta.0"
},
"devDependencies": {
"astro": "workspace:*",
Expand Down
3 changes: 2 additions & 1 deletion packages/integrations/image/package.json
Expand Up @@ -65,7 +65,8 @@
"vite": "^4.0.3"
},
"peerDependencies": {
"sharp": ">=0.31.0"
"sharp": ">=0.31.0",
"astro": "workspace:^2.0.0-beta.0"
},
"peerDependenciesMeta": {
"sharp": {
Expand Down
3 changes: 3 additions & 0 deletions packages/integrations/netlify/package.json
Expand Up @@ -37,6 +37,9 @@
"@astrojs/webapi": "^1.1.1",
"esbuild": "^0.15.18"
},
"peerDependencies": {
"astro": "workspace:^2.0.0-beta.0"
},
"devDependencies": {
"@netlify/edge-handler-types": "^0.34.1",
"@netlify/functions": "^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/node/package.json
Expand Up @@ -34,7 +34,7 @@
"send": "^0.18.0"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"
"astro": "workspace:^2.0.0-beta.0"
},
"devDependencies": {
"@types/node-fetch": "^2.6.2",
Expand Down
3 changes: 2 additions & 1 deletion packages/integrations/svelte/package.json
Expand Up @@ -43,7 +43,8 @@
"vite": "^4.0.3"
},
"peerDependencies": {
"svelte": "^3.54.0"
"svelte": "^3.54.0",
"astro": "workspace:^2.0.0-beta.0"
},
"engines": {
"node": "^14.18.0 || >=16.12.0"
Expand Down
3 changes: 2 additions & 1 deletion packages/integrations/tailwind/package.json
Expand Up @@ -38,7 +38,8 @@
"tailwindcss": "^3.0.24"
},
"peerDependencies": {
"tailwindcss": "^3.0.24"
"tailwindcss": "^3.0.24",
"astro": "workspace:^2.0.0-beta.0"
},
"pnpm": {
"peerDependencyRules": {
Expand Down
3 changes: 3 additions & 0 deletions packages/integrations/vercel/package.json
Expand Up @@ -49,6 +49,9 @@
"fast-glob": "^3.2.11",
"set-cookie-parser": "^2.5.1"
},
"peerDependencies": {
"astro": "workspace:^2.0.0-beta.0"
},
"devDependencies": {
"@types/set-cookie-parser": "^2.4.2",
"astro": "workspace:*",
Expand Down
3 changes: 2 additions & 1 deletion packages/integrations/vue/package.json
Expand Up @@ -50,7 +50,8 @@
"vue": "^3.2.37"
},
"peerDependencies": {
"vue": "^3.2.30"
"vue": "^3.2.30",
"astro": "workspace:^2.0.0-beta.0"
},
"engines": {
"node": "^14.18.0 || >=16.12.0"
Expand Down
3 changes: 3 additions & 0 deletions packages/markdown/remark/package.json
Expand Up @@ -24,6 +24,9 @@
"dev": "astro-scripts dev \"src/**/*.ts\"",
"test": "mocha --exit --timeout 20000"
},
"peerDependencies": {
"astro": "workspace:^2.0.0"
},
"dependencies": {
"@astrojs/prism": "^1.0.0",
"acorn": "^8.7.1",
Expand Down

0 comments on commit 7572f74

Please sign in to comment.