Skip to content

Commit

Permalink
add adapter-auto to template configs (#2885)
Browse files Browse the repository at this point in the history
* add adapter-auto to template configs

* changeset

* lint

* jfc

* fix versions

* and again

* maybe this will make netlify happy

* update the goddamn lockfile

* changeset for adapter-auto

* these should point to the workspace
  • Loading branch information
Rich-Harris authored Nov 24, 2021
1 parent c7c25c0 commit 475b798
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/cool-swans-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-auto': patch
---

Force republish
5 changes: 5 additions & 0 deletions .changeset/young-students-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-svelte': patch
---

Add adapter-auto to template configs
3 changes: 1 addition & 2 deletions packages/adapter-auto/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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))
4 changes: 3 additions & 1 deletion packages/create-svelte/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
/cli/versions.js

/templates/*/.svelte
/templates/*/.svelte-kit
/templates/*/build
/templates/*/.cloudflare
/templates/*/.vercel_build_output
/templates/*/.netlify
/templates/*/dist
/templates/*/dist
/templates/*/package
3 changes: 3 additions & 0 deletions packages/create-svelte/shared/+typescript/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import adapter from '@sveltejs/adapter-auto';
import preprocess from 'svelte-preprocess';

/** @type {import('@sveltejs/kit').Config} */
Expand All @@ -7,6 +8,8 @@ const config = {
preprocess: preprocess(),

kit: {
adapter: adapter(),

// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte'
}
Expand Down
4 changes: 4 additions & 0 deletions packages/create-svelte/shared/-typescript/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import adapter from '@sveltejs/adapter-auto';

/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
adapter: adapter(),

// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte'
}
Expand Down
4 changes: 2 additions & 2 deletions packages/create-svelte/templates/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"devDependencies": {
"@sveltejs/adapter-auto": "workspace:*",
"@sveltejs/kit": "workspace:*",
"svelte": "^3.34.0"
"svelte": "^3.44.0"
},
"type": "module",
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
4 changes: 2 additions & 2 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 475b798

Please sign in to comment.