@skgo/sveltekit-adapter 0.3.6 → 0.3.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/skgo-adapter.js +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skgo/sveltekit-adapter",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
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
  }