From ccd4b537f65ae6096964b9b7490507217565e336 Mon Sep 17 00:00:00 2001 From: Simon H <5968653+dummdidumm@users.noreply.github.com> Date: Wed, 14 Dec 2022 11:23:23 +0100 Subject: [PATCH] [chore] add peerDependencies, add more specific next version (#8141) --- .changeset/ninety-cups-prove.md | 13 +++++++++++++ packages/adapter-auto/package.json | 3 +++ packages/adapter-cloudflare-workers/package.json | 3 +++ packages/adapter-cloudflare/package.json | 3 +++ packages/adapter-netlify/package.json | 3 +++ packages/adapter-node/package.json | 3 +++ packages/adapter-static/package.json | 3 +++ packages/adapter-vercel/package.json | 3 +++ packages/amp/package.json | 3 +++ packages/create-svelte/package.json | 1 - .../templates/default/package.template.json | 4 ++-- .../templates/skeleton/package.template.json | 4 ++-- .../templates/skeletonlib/package.template.json | 6 +++--- pnpm-lock.yaml | 2 -- 14 files changed, 44 insertions(+), 10 deletions(-) create mode 100644 .changeset/ninety-cups-prove.md diff --git a/.changeset/ninety-cups-prove.md b/.changeset/ninety-cups-prove.md new file mode 100644 index 000000000000..7be14cbbf4ba --- /dev/null +++ b/.changeset/ninety-cups-prove.md @@ -0,0 +1,13 @@ +--- +'@sveltejs/adapter-auto': patch +'@sveltejs/adapter-cloudflare': patch +'@sveltejs/adapter-cloudflare-workers': patch +'@sveltejs/adapter-netlify': patch +'@sveltejs/adapter-node': patch +'@sveltejs/adapter-static': patch +'@sveltejs/adapter-vercel': patch +'@sveltejs/amp': patch +'create-svelte': patch +--- + +[chore] add peerDependencies, add more specific next version diff --git a/packages/adapter-auto/package.json b/packages/adapter-auto/package.json index 65f5521e2204..e5812b7b82ef 100644 --- a/packages/adapter-auto/package.json +++ b/packages/adapter-auto/package.json @@ -36,5 +36,8 @@ }, "dependencies": { "import-meta-resolve": "^2.2.0" + }, + "peerDependencies": { + "@sveltejs/kit": "^1.0.0-next.587" } } diff --git a/packages/adapter-cloudflare-workers/package.json b/packages/adapter-cloudflare-workers/package.json index 3e788083ea1a..8155ca9bcc28 100644 --- a/packages/adapter-cloudflare-workers/package.json +++ b/packages/adapter-cloudflare-workers/package.json @@ -37,5 +37,8 @@ "@cloudflare/kv-asset-handler": "^0.2.0", "@types/node": "^16.18.6", "typescript": "^4.9.3" + }, + "peerDependencies": { + "@sveltejs/kit": "^1.0.0-next.587" } } diff --git a/packages/adapter-cloudflare/package.json b/packages/adapter-cloudflare/package.json index 3bc322f150f6..7105a137576e 100644 --- a/packages/adapter-cloudflare/package.json +++ b/packages/adapter-cloudflare/package.json @@ -41,6 +41,9 @@ "@types/ws": "^8.5.3", "typescript": "^4.9.3" }, + "peerDependencies": { + "@sveltejs/kit": "^1.0.0-next.587" + }, "publishConfig": { "access": "public" } diff --git a/packages/adapter-netlify/package.json b/packages/adapter-netlify/package.json index a5ef189265dc..2a841de820a8 100644 --- a/packages/adapter-netlify/package.json +++ b/packages/adapter-netlify/package.json @@ -48,5 +48,8 @@ "rollup": "^3.7.0", "typescript": "^4.9.3", "uvu": "^0.5.6" + }, + "peerDependencies": { + "@sveltejs/kit": "^1.0.0-next.587" } } diff --git a/packages/adapter-node/package.json b/packages/adapter-node/package.json index 7e54a67e7099..9f8cc39995d9 100644 --- a/packages/adapter-node/package.json +++ b/packages/adapter-node/package.json @@ -46,5 +46,8 @@ "@rollup/plugin-json": "^5.0.1", "@rollup/plugin-node-resolve": "^15.0.1", "rollup": "^3.7.0" + }, + "peerDependencies": { + "@sveltejs/kit": "^1.0.0-next.587" } } diff --git a/packages/adapter-static/package.json b/packages/adapter-static/package.json index bf3b4740ea69..553e02d943dd 100644 --- a/packages/adapter-static/package.json +++ b/packages/adapter-static/package.json @@ -32,5 +32,8 @@ "typescript": "^4.9.3", "uvu": "^0.5.6", "vite": "^4.0.0" + }, + "peerDependencies": { + "@sveltejs/kit": "^1.0.0-next.587" } } diff --git a/packages/adapter-vercel/package.json b/packages/adapter-vercel/package.json index 57de92622d31..d22ed8842129 100644 --- a/packages/adapter-vercel/package.json +++ b/packages/adapter-vercel/package.json @@ -35,5 +35,8 @@ "@sveltejs/kit": "workspace:*", "@types/node": "^16.18.6", "typescript": "^4.9.3" + }, + "peerDependencies": { + "@sveltejs/kit": "^1.0.0-next.587" } } diff --git a/packages/amp/package.json b/packages/amp/package.json index 1721df610d1e..50a71d2a66a9 100644 --- a/packages/amp/package.json +++ b/packages/amp/package.json @@ -24,5 +24,8 @@ "scripts": { "lint": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore", "format": "pnpm lint --write" + }, + "peerDependencies": { + "@sveltejs/kit": "^1.0.0-next.587" } } diff --git a/packages/create-svelte/package.json b/packages/create-svelte/package.json index 72b6a7017acd..bbaac6683e4c 100644 --- a/packages/create-svelte/package.json +++ b/packages/create-svelte/package.json @@ -16,7 +16,6 @@ }, "devDependencies": { "@playwright/test": "^1.28.1", - "@sveltejs/kit": "workspace:*", "@types/gitignore-parser": "^0.0.0", "@types/prettier": "^2.7.1", "@types/prompts": "^2.4.1", diff --git a/packages/create-svelte/templates/default/package.template.json b/packages/create-svelte/templates/default/package.template.json index 3c8f2677309c..18b5475adae7 100644 --- a/packages/create-svelte/templates/default/package.template.json +++ b/packages/create-svelte/templates/default/package.template.json @@ -9,8 +9,8 @@ "devDependencies": { "@fontsource/fira-mono": "^4.5.10", "@neoconfetti/svelte": "^1.0.0", - "@sveltejs/adapter-auto": "next", - "@sveltejs/kit": "next", + "@sveltejs/adapter-auto": "^1.0.0-next.90", + "@sveltejs/kit": "^1.0.0-next.587", "svelte": "^3.54.0", "vite": "^4.0.0" }, diff --git a/packages/create-svelte/templates/skeleton/package.template.json b/packages/create-svelte/templates/skeleton/package.template.json index 0bb351f72926..f06ea2d46d29 100644 --- a/packages/create-svelte/templates/skeleton/package.template.json +++ b/packages/create-svelte/templates/skeleton/package.template.json @@ -8,8 +8,8 @@ "preview": "vite preview" }, "devDependencies": { - "@sveltejs/adapter-auto": "workspace:*", - "@sveltejs/kit": "workspace:*", + "@sveltejs/adapter-auto": "^1.0.0-next.90", + "@sveltejs/kit": "^1.0.0-next.587", "svelte": "^3.54.0", "vite": "^4.0.0" }, diff --git a/packages/create-svelte/templates/skeletonlib/package.template.json b/packages/create-svelte/templates/skeletonlib/package.template.json index 24ad8a46a598..eeac311dc31c 100644 --- a/packages/create-svelte/templates/skeletonlib/package.template.json +++ b/packages/create-svelte/templates/skeletonlib/package.template.json @@ -7,9 +7,9 @@ "prepublishOnly": "echo 'Did you mean to publish `./package/`, instead of `./`?' && exit 1" }, "devDependencies": { - "@sveltejs/adapter-auto": "workspace:*", - "@sveltejs/kit": "workspace:*", - "@sveltejs/package": "workspace:*", + "@sveltejs/adapter-auto": "^1.0.0-next.90", + "@sveltejs/kit": "^1.0.0-next.587", + "@sveltejs/package": "^1.0.0-next.6", "svelte": "^3.54.0", "tslib": "^2.4.1", "typescript": "^4.9.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b9de9e34f420..dcb9a0030db9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -202,7 +202,6 @@ importers: packages/create-svelte: specifiers: '@playwright/test': ^1.28.1 - '@sveltejs/kit': workspace:* '@types/gitignore-parser': ^0.0.0 '@types/prettier': ^2.7.1 '@types/prompts': ^2.4.1 @@ -220,7 +219,6 @@ importers: prompts: 2.4.2 devDependencies: '@playwright/test': 1.28.1 - '@sveltejs/kit': link:../kit '@types/gitignore-parser': 0.0.0 '@types/prettier': 2.7.1 '@types/prompts': 2.4.1