diff --git a/.changeset/cool-swans-sleep.md b/.changeset/cool-swans-sleep.md
new file mode 100644
index 000000000000..59ab6b30b729
--- /dev/null
+++ b/.changeset/cool-swans-sleep.md
@@ -0,0 +1,5 @@
+---
+'@sveltejs/adapter-auto': patch
+---
+
+Force republish
diff --git a/.changeset/young-students-chew.md b/.changeset/young-students-chew.md
new file mode 100644
index 000000000000..ece9d6fd9615
--- /dev/null
+++ b/.changeset/young-students-chew.md
@@ -0,0 +1,5 @@
+---
+'create-svelte': patch
+---
+
+Add adapter-auto to template configs
diff --git a/packages/adapter-auto/CHANGELOG.md b/packages/adapter-auto/CHANGELOG.md
index a4669ba7257c..273e8d53f56a 100644
--- a/packages/adapter-auto/CHANGELOG.md
+++ b/packages/adapter-auto/CHANGELOG.md
@@ -1,8 +1,7 @@
# @sveltejs/adapter-auto
## 1.0.0-next.0
-### Patch Changes
-
+### Patch Changes
- Add adapter-auto ([#2867](https://github.com/sveltejs/kit/pull/2867))
diff --git a/packages/create-svelte/.gitignore b/packages/create-svelte/.gitignore
index fd2ebcbc22da..7b3c2953aa47 100644
--- a/packages/create-svelte/.gitignore
+++ b/packages/create-svelte/.gitignore
@@ -4,8 +4,10 @@
/cli/versions.js
/templates/*/.svelte
+/templates/*/.svelte-kit
/templates/*/build
/templates/*/.cloudflare
/templates/*/.vercel_build_output
/templates/*/.netlify
-/templates/*/dist
\ No newline at end of file
+/templates/*/dist
+/templates/*/package
\ No newline at end of file
diff --git a/packages/create-svelte/shared/+typescript/svelte.config.js b/packages/create-svelte/shared/+typescript/svelte.config.js
index 5eb051a07d70..aa85d10b3262 100644
--- a/packages/create-svelte/shared/+typescript/svelte.config.js
+++ b/packages/create-svelte/shared/+typescript/svelte.config.js
@@ -1,3 +1,4 @@
+import adapter from '@sveltejs/adapter-auto';
import preprocess from 'svelte-preprocess';
/** @type {import('@sveltejs/kit').Config} */
@@ -7,6 +8,8 @@ const config = {
preprocess: preprocess(),
kit: {
+ adapter: adapter(),
+
// hydrate the
element in src/app.html
target: '#svelte'
}
diff --git a/packages/create-svelte/shared/-typescript/svelte.config.js b/packages/create-svelte/shared/-typescript/svelte.config.js
index b879536152cc..6ccba57115f1 100644
--- a/packages/create-svelte/shared/-typescript/svelte.config.js
+++ b/packages/create-svelte/shared/-typescript/svelte.config.js
@@ -1,6 +1,10 @@
+import adapter from '@sveltejs/adapter-auto';
+
/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
+ adapter: adapter(),
+
// hydrate the
element in src/app.html
target: '#svelte'
}
diff --git a/packages/create-svelte/templates/default/package.json b/packages/create-svelte/templates/default/package.json
index a83bc7d46b44..4ea063e9529a 100644
--- a/packages/create-svelte/templates/default/package.json
+++ b/packages/create-svelte/templates/default/package.json
@@ -7,8 +7,8 @@
"start": "svelte-kit start"
},
"devDependencies": {
- "@sveltejs/adapter-auto": "workspace:*",
- "@sveltejs/kit": "workspace:*",
+ "@sveltejs/adapter-auto": "next",
+ "@sveltejs/kit": "next",
"svelte": "^3.44.0",
"svelte-preprocess": "^4.9.8",
"typescript": "^4.4.3"
diff --git a/packages/create-svelte/templates/default/package.template.json b/packages/create-svelte/templates/default/package.template.json
index 242ce530d433..5f2fe096acf1 100644
--- a/packages/create-svelte/templates/default/package.template.json
+++ b/packages/create-svelte/templates/default/package.template.json
@@ -10,7 +10,7 @@
"devDependencies": {
"@sveltejs/adapter-auto": "workspace:*",
"@sveltejs/kit": "workspace:*",
- "svelte": "^3.34.0"
+ "svelte": "^3.44.0"
},
"type": "module",
"dependencies": {
diff --git a/packages/create-svelte/templates/skeleton/package.template.json b/packages/create-svelte/templates/skeleton/package.template.json
index abb5def0663c..f163debb2f00 100644
--- a/packages/create-svelte/templates/skeleton/package.template.json
+++ b/packages/create-svelte/templates/skeleton/package.template.json
@@ -8,8 +8,9 @@
"preview": "svelte-kit preview"
},
"devDependencies": {
+ "@sveltejs/adapter-auto": "workspace:*",
"@sveltejs/kit": "workspace:*",
- "svelte": "^3.42.6"
+ "svelte": "^3.44.0"
},
"type": "module"
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 1e56bf9ae68b..801d2467ca67 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -196,8 +196,8 @@ importers:
specifiers:
'@fontsource/fira-mono': ^4.5.0
'@lukeed/uuid': ^2.0.0
- '@sveltejs/adapter-auto': workspace:*
- '@sveltejs/kit': workspace:*
+ '@sveltejs/adapter-auto': next
+ '@sveltejs/kit': next
cookie: ^0.4.1
svelte: ^3.44.0
svelte-preprocess: ^4.9.8