@skgo/sveltekit-adapter 0.3.6 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @skgo/sveltekit-adapter
2
2
 
3
- The SvelteKit adapter for [skgo](https://github.com/tylergannon/skgo), a
3
+ The runtime SvelteKit adapter for [skgo](https://github.com/tylergannon/skgo), a
4
4
  SvelteKit application server written in Go.
5
5
 
6
6
  The app stays plain SvelteKit. This adapter builds it into the shape a skgo
@@ -16,10 +16,9 @@ pnpm add -D '@skgo/sveltekit-adapter@<=VERSION'
16
16
  without its `v`: for skgo `v0.3.4`, ask for `<=0.3.4`. A skgo release publishes
17
17
  this package only when the package itself changes, so the newest version at or
18
18
  below yours is the one carrying your skgo's adapter, and skgo refuses to start
19
- with any other. A project made by `skgo new` writes that dependency already,
20
- and lists the package under pnpm's `minimumReleaseAgeExclude`: held to a
21
- minimum release age, pnpm would quietly install an older version for a day
22
- after a release that changes this one.
19
+ with any other. If pnpm's minimum release age is enabled, exclude this package;
20
+ otherwise pnpm may quietly install an older adapter immediately after a release
21
+ that changes it.
23
22
 
24
23
  ```js
25
24
  // vite.config.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skgo/sveltekit-adapter",
3
- "version": "0.3.6",
3
+ "version": "0.5.0",
4
4
  "description": "SvelteKit adapter for skgo: builds a frontend that a Go binary renders and answers",
5
5
  "keywords": [
6
6
  "adapter",
package/skgo-adapter.js CHANGED
@@ -181,6 +181,11 @@ export default function skgo({ out = 'build', precompress = true } = {}) {
181
181
  '\t'
182
182
  )
183
183
  );
184
+ // The generated app tracks this one empty file so its all:build embed
185
+ // pattern matches in a fresh checkout. adapt() clears the output tree,
186
+ // so restore the placeholder rather than making every frontend build
187
+ // appear to delete tracked source.
188
+ write(`${out}/.gitkeep`, '');
184
189
 
185
190
  builder.log.minor(`skgo: wrote ${out}/`);
186
191
  }