From c7e854c833e70ef0f2239f016424869ff15b3371 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Thu, 20 May 2021 16:31:37 -0700 Subject: [PATCH] Make kit a peerDependency of the adapters (#1505) --- .changeset/twelve-onions-burn.md | 10 ++++++++++ packages/adapter-begin/package.json | 3 +++ packages/adapter-cloudflare-workers/package.json | 3 +++ packages/adapter-netlify/package.json | 5 ++++- packages/adapter-node/package.json | 3 +++ packages/adapter-static/package.json | 3 +++ packages/adapter-vercel/package.json | 5 ++++- pnpm-lock.yaml | 4 ++-- 8 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 .changeset/twelve-onions-burn.md diff --git a/.changeset/twelve-onions-burn.md b/.changeset/twelve-onions-burn.md new file mode 100644 index 000000000000..dc4826482b18 --- /dev/null +++ b/.changeset/twelve-onions-burn.md @@ -0,0 +1,10 @@ +--- +'@sveltejs/adapter-begin': patch +'@sveltejs/adapter-cloudflare-workers': patch +'@sveltejs/adapter-netlify': patch +'@sveltejs/adapter-node': patch +'@sveltejs/adapter-static': patch +'@sveltejs/adapter-vercel': patch +--- + +Make kit a peerDependency of the adapters diff --git a/packages/adapter-begin/package.json b/packages/adapter-begin/package.json index 60796ae027f9..41a15c30c09b 100644 --- a/packages/adapter-begin/package.json +++ b/packages/adapter-begin/package.json @@ -18,6 +18,9 @@ "dependencies": { "@architect/parser": "^3.0.1" }, + "peerDependencies": { + "@sveltejs/kit": "workspace:*" + }, "devDependencies": { "@sveltejs/kit": "workspace:*", "rollup": "^2.47.0", diff --git a/packages/adapter-cloudflare-workers/package.json b/packages/adapter-cloudflare-workers/package.json index 0fac268b0bf8..bbc1a1a67c97 100644 --- a/packages/adapter-cloudflare-workers/package.json +++ b/packages/adapter-cloudflare-workers/package.json @@ -22,5 +22,8 @@ }, "devDependencies": { "@sveltejs/kit": "workspace:*" + }, + "peerDependencies": { + "@sveltejs/kit": "workspace:*" } } diff --git a/packages/adapter-netlify/package.json b/packages/adapter-netlify/package.json index a37cc56424c4..6665ea36f488 100644 --- a/packages/adapter-netlify/package.json +++ b/packages/adapter-netlify/package.json @@ -17,11 +17,14 @@ "check-format": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore" }, "dependencies": { - "@sveltejs/kit": "workspace:*", "esbuild": "^0.11.18", "@iarna/toml": "^2.2.5" }, + "peerDependencies": { + "@sveltejs/kit": "workspace:*" + }, "devDependencies": { + "@sveltejs/kit": "workspace:*", "typescript": "^4.2.4" } } diff --git a/packages/adapter-node/package.json b/packages/adapter-node/package.json index 29b7f064ee5f..b7eae8d315d4 100644 --- a/packages/adapter-node/package.json +++ b/packages/adapter-node/package.json @@ -31,5 +31,8 @@ "sirv": "^1.0.11", "typescript": "^4.2.4", "uvu": "^0.5.1" + }, + "peerDependencies": { + "@sveltejs/kit": "workspace:*" } } diff --git a/packages/adapter-static/package.json b/packages/adapter-static/package.json index c462f474c1d5..9b92be8d9c58 100644 --- a/packages/adapter-static/package.json +++ b/packages/adapter-static/package.json @@ -14,6 +14,9 @@ "check-format": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore", "test": "uvu test test.js" }, + "peerDependencies": { + "@sveltejs/kit": "workspace:*" + }, "devDependencies": { "@sveltejs/kit": "workspace:*", "playwright-chromium": "^1.10.0", diff --git a/packages/adapter-vercel/package.json b/packages/adapter-vercel/package.json index 725c2bae62f7..324c87b6a4dd 100644 --- a/packages/adapter-vercel/package.json +++ b/packages/adapter-vercel/package.json @@ -17,10 +17,13 @@ "check-format": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore" }, "dependencies": { - "@sveltejs/kit": "workspace:*", "esbuild": "^0.11.18" }, + "peerDependencies": { + "@sveltejs/kit": "workspace:*" + }, "devDependencies": { + "@sveltejs/kit": "workspace:*", "typescript": "^4.2.4" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a8184936fa0f..7026b60b70fb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -84,9 +84,9 @@ importers: typescript: ^4.2.4 dependencies: '@iarna/toml': 2.2.5 - '@sveltejs/kit': link:../kit esbuild: 0.11.18 devDependencies: + '@sveltejs/kit': link:../kit typescript: 4.2.4 packages/adapter-node: @@ -133,9 +133,9 @@ importers: esbuild: ^0.11.18 typescript: ^4.2.4 dependencies: - '@sveltejs/kit': link:../kit esbuild: 0.11.18 devDependencies: + '@sveltejs/kit': link:../kit typescript: 4.2.4 packages/create-svelte: