create-mikstack 0.1.13 → 0.1.15

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/dist/index.js CHANGED
@@ -170,6 +170,10 @@ function scaffold(config, onStatus) {
170
170
  }
171
171
  const svBin = new URL("../bin.mjs", import.meta.resolve("sv")).pathname;
172
172
  execSync(`node ${svBin} create ${target} --template minimal --types ts --add devtools-json --no-install`, { stdio: "pipe" });
173
+ fs.rmSync(path.join(target, "src", "routes"), {
174
+ recursive: true,
175
+ force: true
176
+ });
173
177
  onStatus?.("Applying templates...");
174
178
  const overlay = (dir) => {
175
179
  copyDir(dir, target);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-mikstack",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,7 +13,6 @@
13
13
  import { createForm } from "@mikstack/form";
14
14
  import { dropAllDatabases } from "@rocicorp/zero";
15
15
  import * as v from "valibot";
16
- import { goto } from "$app/navigation";
17
16
  import { resolve } from "$app/paths";
18
17
  import { authClient } from "$lib/auth-client";
19
18
  import { get_z } from "$lib/z.svelte";
@@ -86,7 +85,7 @@
86
85
  async function signOut() {
87
86
  await authClient.signOut();
88
87
  await dropAllDatabases();
89
- await goto(resolve("/sign-in"));
88
+ window.location.href = resolve("/sign-in");
90
89
  }
91
90
  </script>
92
91